unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19164: 24.3; Feature request: describe-key-briefly with prefix argument
@ 2014-11-24 16:16 Marcin Borkowski
  2019-07-05 13:44 ` Stefan Kangas
  0 siblings, 1 reply; 5+ messages in thread
From: Marcin Borkowski @ 2014-11-24 16:16 UTC (permalink / raw)
  To: 19164

This is really a feature request.  If I press

C-u C-h c C-h c,

this is what appears at point:

C-h c runs the command describe-key-briefly

(and this behavior is well-documented in the docstring for
describe-key-briefly).  I would suggest that only the command name
should be inserted, and the present behavior (if really needed) be
reserved for e.g. C-u C-u C-h c.  The rationale is that when
e.g. emailing about some Emacs feature, I'd like to be able to insert
some command name conveniently; OTOH, it is difficult for me to come up
with a scenario when the present behavior is needed.

Best regards,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#19164: 24.3; Feature request: describe-key-briefly with prefix argument
  2014-11-24 16:16 bug#19164: 24.3; Feature request: describe-key-briefly with prefix argument Marcin Borkowski
@ 2019-07-05 13:44 ` Stefan Kangas
  2019-07-05 13:58   ` Noam Postavsky
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2019-07-05 13:44 UTC (permalink / raw)
  To: 19164

Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:

> C-u C-h c C-h c,
>
> this is what appears at point:
>
> C-h c runs the command describe-key-briefly
> C-h c runs the command gnus-article-describe-key-briefly
> (and this behavior is well-documented in the docstring for
> describe-key-briefly).  I would suggest that only the command name
> should be inserted, and the present behavior (if really needed) be
> reserved for e.g. C-u C-u C-h c.  The rationale is that when
> e.g. emailing about some Emacs feature, I'd like to be able to insert
> some command name conveniently; OTOH, it is difficult for me to come up
> with a scenario when the present behavior is needed.

Hi Marcin,

I think that it makes more sense to display help as the default behaviour rather
than inserting the help at point.  The use case for this behaviour is when the
user wants to know what a command does in a brief way without showing the
help buffer.

Therefore I'm against making this change.

To get your preferred behaviour, you could advice
describe-key-briefly, for example like this:

(defun my-flip-second-arg (orig-fun &rest args)
  (apply orig-fun (list (car args) (not (cadr args)))))
(add-function :around (symbol-function 'describe-key-briefly)
#'my-flip-second-arg)

If I don't hear any protests, I will close this bug report as wontfix.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#19164: 24.3; Feature request: describe-key-briefly with prefix argument
  2019-07-05 13:44 ` Stefan Kangas
@ 2019-07-05 13:58   ` Noam Postavsky
  2019-07-05 14:10     ` Stefan Kangas
  0 siblings, 1 reply; 5+ messages in thread
From: Noam Postavsky @ 2019-07-05 13:58 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 19164

Stefan Kangas <stefan@marxist.se> writes:

> I think that it makes more sense to display help as the default behaviour rather
> than inserting the help at point.  The use case for this behaviour is when the
> user wants to know what a command does in a brief way without showing the
> help buffer.

I think you've misunderstood the request.  It's about the behaviour when
describe-key-briefly gets a prefix argument.  *Currently* it inserts
'<key> runs the command <command-name>'.  The request is to insert just
'<command-name>'.

> Therefore I'm against making this change.

That said, I'm not really keen on this request either.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#19164: 24.3; Feature request: describe-key-briefly with prefix argument
  2019-07-05 13:58   ` Noam Postavsky
@ 2019-07-05 14:10     ` Stefan Kangas
  2019-08-02 14:09       ` Stefan Kangas
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2019-07-05 14:10 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: 19164

Noam Postavsky <npostavs@gmail.com> writes:
>
> Stefan Kangas <stefan@marxist.se> writes:
>
> > I think that it makes more sense to display help as the default behaviour rather
> > than inserting the help at point.  The use case for this behaviour is when the
> > user wants to know what a command does in a brief way without showing the
> > help buffer.
>
> I think you've misunderstood the request.  It's about the behaviour when
> describe-key-briefly gets a prefix argument.  *Currently* it inserts
> '<key> runs the command <command-name>'.  The request is to insert just
> '<command-name>'.

I see.  That makes a bit more sense, to be honest.

> > Therefore I'm against making this change.
>
> That said, I'm not really keen on this request either.

Me neither.  Anyone else?

Thanks,
Stefan Kangas





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#19164: 24.3; Feature request: describe-key-briefly with prefix argument
  2019-07-05 14:10     ` Stefan Kangas
@ 2019-08-02 14:09       ` Stefan Kangas
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Kangas @ 2019-08-02 14:09 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: 19164

tags 19164 + wontfix
close 19164
quit

Stefan Kangas <stefan@marxist.se> writes:
> Noam Postavsky <npostavs@gmail.com> writes:
> > I think you've misunderstood the request.  It's about the behaviour when
> > describe-key-briefly gets a prefix argument.  *Currently* it inserts
> > '<key> runs the command <command-name>'.  The request is to insert just
> > '<command-name>'.
[...]
> > That said, I'm not really keen on this request either.
>
> Me neither.  Anyone else?

It would seem that there is not much enthusiasm for this change.
Therefore, I'm closing this as wontfix.

Thanks,
Stefan Kangas





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-02 14:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 16:16 bug#19164: 24.3; Feature request: describe-key-briefly with prefix argument Marcin Borkowski
2019-07-05 13:44 ` Stefan Kangas
2019-07-05 13:58   ` Noam Postavsky
2019-07-05 14:10     ` Stefan Kangas
2019-08-02 14:09       ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).