emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Major mode and implementation of expected editing facilities


From: Daniele Nicolodi
Subject: Re: Major mode and implementation of expected editing facilities
Date: Mon, 27 May 2019 22:40:15 -0600
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 27/05/2019 22:20, Eli Zaretskii wrote:
> On May 28, 2019 5:47:31 AM GMT+03:00, Daniele Nicolodi <address@hidden> wrote:
>> On 27/05/2019 20:43, Eli Zaretskii wrote:
>>>> From: Daniele Nicolodi <address@hidden>
>>>> Date: Mon, 27 May 2019 16:14:33 -0600
>>>>
>>>> is there somewhere an annotated list of the standard editing
>> facilities
>>>> that a major mode is expected to implement or that it may be useful
>> to
>>>> implement?
>>>
>>> Did you read the corresponding node of the ELisp manual?
>>
>> I don't understand to which ELisp manual node you are referring too,
>> so
>> most likely I have missed it. Can you provide me a more precise
>> pointer?
> 
> I meant the section whose name is "Major Modes" and its subsections, mainly 
> the first one.

I did read that and I didn't find anything there relevant to my question
other than

  A major mode can also rebind the keys M-n, M-p and M-s. The bindings
  for M-n and M-p should normally be some kind of moving forward and
  backward, but this does not necessarily mean cursor motion.

  It is legitimate for a major mode to rebind a standard key sequence if
  it provides a command that does the same job in a way better suited to
  the text this mode is used for. For example, a major mode for editing
  a programming language might redefine C-M-a to move to the beginning
  of a function in a way that works better for that language.

in "Major Mode Conventions", which describes exactly what I want to do,
but does not give any pointer which key sequences it makes sense and it
is most common to rebind. For example I don't fins mention of M-q
(fill-paragraph) which was in my original example.

Am I overlooking something?

Cheers,
Dan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]