* bug#23236: 25.0.90; Document command remapping in Emacs manual, not just Elisp manual @ 2016-04-07 15:04 Drew Adams 2016-04-07 15:30 ` Eli Zaretskii 0 siblings, 1 reply; 5+ messages in thread From: Drew Adams @ 2016-04-07 15:04 UTC (permalink / raw) To: 23236 Search the Emacs manual for "remap". You will find nothing about command remapping. (global-set-key [remap foo] 'bar) is something that _users_ do. Likewise (define-key some-map [remap foo] 'bar). This is not something that is only for Elisp code. In GNU Emacs 25.0.90.4 (i686-w64-mingw32) of 2016-03-20 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --host=i686-w64-mingw32 --without-dbus --without-compress-install CFLAGS=-static' ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#23236: 25.0.90; Document command remapping in Emacs manual, not just Elisp manual 2016-04-07 15:04 bug#23236: 25.0.90; Document command remapping in Emacs manual, not just Elisp manual Drew Adams @ 2016-04-07 15:30 ` Eli Zaretskii 2016-04-30 23:10 ` Lars Ingebrigtsen 0 siblings, 1 reply; 5+ messages in thread From: Eli Zaretskii @ 2016-04-07 15:30 UTC (permalink / raw) To: Drew Adams; +Cc: 23236 > Date: Thu, 7 Apr 2016 08:04:19 -0700 (PDT) > From: Drew Adams <drew.adams@oracle.com> > > Search the Emacs manual for "remap". You will find nothing about > command remapping. Because it's not a user-level feature. > (global-set-key [remap foo] 'bar) is something that _users_ do. > Likewise (define-key some-map [remap foo] 'bar). It doesn't matter who does it. What matters is that these are Lisp expressions, and those are usually documented in the ELisp manuals. global-set-key is only documented in the user manual as a command, not as a function. We only show a few examples of using it as a function. > This is not something that is only for Elisp code. I think it is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#23236: 25.0.90; Document command remapping in Emacs manual, not just Elisp manual 2016-04-07 15:30 ` Eli Zaretskii @ 2016-04-30 23:10 ` Lars Ingebrigtsen 0 siblings, 0 replies; 5+ messages in thread From: Lars Ingebrigtsen @ 2016-04-30 23:10 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 23236 Eli Zaretskii <eliz@gnu.org> writes: >> Search the Emacs manual for "remap". You will find nothing about >> command remapping. > > Because it's not a user-level feature. I agree. Closing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <<24ddcbf0-337e-401f-a539-4d957030236b@default>]
[parent not found: <<83h9fdl9m9.fsf@gnu.org>]
* bug#23236: 25.0.90; Document command remapping in Emacs manual, not just Elisp manual [not found] ` <<83h9fdl9m9.fsf@gnu.org> @ 2016-04-07 15:58 ` Drew Adams 2016-04-07 16:49 ` Eli Zaretskii 0 siblings, 1 reply; 5+ messages in thread From: Drew Adams @ 2016-04-07 15:58 UTC (permalink / raw) To: Eli Zaretskii, Drew Adams; +Cc: 23236 > > Search the Emacs manual for "remap". You will find nothing about > > command remapping. > > Because it's not a user-level feature. I disagree. Why do you say it is not? Are users not supposed to remap commands? If they are, then what could you possibly mean by saying that doing so is not "user-level"? Until Emacs provides an easy Customize interface for customizing key bindings, users will use `define-key' and `global-set-key' to customize key bindings. They always have, and they still must. > > (global-set-key [remap foo] 'bar) is something that _users_ do. > > Likewise (define-key some-map [remap foo] 'bar). > > It doesn't matter who does it. What matters is that these are Lisp > expressions, and those are usually documented in the ELisp manuals. I have no problem with them being documented in the Elisp manual. This bug does not request that they be removed from the Elisp manual. I think they - at least their existence - should also be documented in the Emacs manual. It may be enough to point users (from the Emacs manual) to the Elisp manual. But certainly users reading the Emacs manual should be able to find the answers to questions about _how to customize_ key bindings. And that includes command remapping. Binding keys is an extremely common end-user task. (Yes, it is. It is 100% "user-level", in addition to being something that is done in non-user files.) Not pointing end users, in the Emacs manual, to the information about _how they do this_ is a cop-out, I think. They will find that pointer only by googling etc. The Emacs manual should be their friend in this regard, by pointing them to the info they need to get the job done, whether or not the details of that info might be in the Elisp manual. If users need to use Lisp to customize key bindings, then so be it. And if they therefore need to read some of the Elisp manual, to learn how to do that, so be it. But the _fact_ that they _can_ do it, and the _fact_ that info about _how_ to do it is in the Elisp manual, should be in the Emacs manual. At a minimum. * You can bind keys to commands of your choosing. See (elisp) XXXX. * You can remap a command A to another command B's key bindings, so that using any of those keys invokes command A instead of command B. See (elisp) YYYY. > global-set-key is only documented in the user manual as a command, not > as a function. We only show a few examples of using it as a function. > > > This is not something that is only for Elisp code. > > I think it is. It is not something that is only for Lisp libraries. Is that clearer for you? It is something that is in thousands of end-user init files, including users who otherwise know little or nothing about Lisp. If you really think that using `define-key' and `global-set-key' in an end-user init file is inappropriate then please provide a Customize replacement for `define-key' and `global-set-key' immediately, and then update the Emacs manual to tell users how to customize key bindings using Customize. Until then, users have only `define-key' and `global-set-key' for key customization. The Emacs manual should help them in this regard. It should not be silent on command remapping. ^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#23236: 25.0.90; Document command remapping in Emacs manual, not just Elisp manual 2016-04-07 15:58 ` Drew Adams @ 2016-04-07 16:49 ` Eli Zaretskii 0 siblings, 0 replies; 5+ messages in thread From: Eli Zaretskii @ 2016-04-07 16:49 UTC (permalink / raw) To: Drew Adams; +Cc: 23236 > Date: Thu, 7 Apr 2016 08:58:24 -0700 (PDT) > From: Drew Adams <drew.adams@oracle.com> > Cc: 23236@debbugs.gnu.org > > > > Search the Emacs manual for "remap". You will find nothing about > > > command remapping. > > > > Because it's not a user-level feature. > > I disagree. Why do you say it is not? Are users not supposed to > remap commands? Users that code in Lisp are. Users that don't aren't. > If they are, then what could you possibly mean > by saying that doing so is not "user-level"? It's not for users who don't write Lisp code. > Binding keys is an extremely common end-user task. (Yes, it is. > It is 100% "user-level", in addition to being something that is > done in non-user files.) And it is virtually impossible without writing Lisp. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-04-30 23:10 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-04-07 15:04 bug#23236: 25.0.90; Document command remapping in Emacs manual, not just Elisp manual Drew Adams 2016-04-07 15:30 ` Eli Zaretskii 2016-04-30 23:10 ` Lars Ingebrigtsen [not found] <<24ddcbf0-337e-401f-a539-4d957030236b@default> [not found] ` <<83h9fdl9m9.fsf@gnu.org> 2016-04-07 15:58 ` Drew Adams 2016-04-07 16:49 ` Eli Zaretskii
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.