emacs-devel
[Top][All Lists]
Advanced

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

Re: Pushing the mark from a primitive like goto-char


From: Daniel Martín
Subject: Re: Pushing the mark from a primitive like goto-char
Date: Fri, 08 Jan 2021 20:30:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin)

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Tue, 05 Jan 2021 20:06:28 +0100
>> Cc: Philipp Stephani <p.stephani2@gmail.com>,
>>  Emacs developers <emacs-devel@gnu.org>, Stefan Kangas 
>> <stefankangas@gmail.com>,
>>  Juri Linkov <juri@linkov.net>
>> From: Daniel Martín via "Emacs development discussions." 
>> <emacs-devel@gnu.org>
>> 
>> - Create a 'goto-char-command' command in ELisp.
>> 
>> - Move the interactive spec that is in 'goto-char' to this new command
>>   and make it push the mark smartly (e.g. be careful when a region is
>>   active).  Then call 'goto-char'.
>> 
>> - Rebind 'M-g c' to 'goto-char-command'.
>
> You mean, it will be impossible to invoke "M-x goto-char"?

Yes, what'd happen is that "M-x goto-char" RET will produce
"goto-char-", and the user would need to press another TAB to get
"goto-char-command", which may be inconvenient.

Having both "M-x goto-char" and "M-x goto-char-command" could be
confusing as well.  I'll give a try to implementing this as a side
effect in the interactive spec.


reply via email to

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