* how do I visit a file in info mode? @ 2010-03-02 0:12 Bruce Korb 2010-03-02 0:27 ` Thien-Thi Nguyen 2010-03-02 0:28 ` Drew Adams 0 siblings, 2 replies; 8+ messages in thread From: Bruce Korb @ 2010-03-02 0:12 UTC (permalink / raw) To: help-gnu-emacs It used to be the case that I only had to put a non-zero prefix on the "info" command. e.g. Esc-2 Ctl-h i and I was queried as to which .info file to visit. I cannot figure out how to do that any more. Google doesn't get me there. I do not want to install the thing before I've viewed it. What can I do? Thank you. Regards, Bruce ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how do I visit a file in info mode? 2010-03-02 0:12 how do I visit a file in info mode? Bruce Korb @ 2010-03-02 0:27 ` Thien-Thi Nguyen 2010-03-02 0:28 ` Drew Adams 1 sibling, 0 replies; 8+ messages in thread From: Thien-Thi Nguyen @ 2010-03-02 0:27 UTC (permalink / raw) To: help-gnu-emacs () Bruce Korb <bruce.korb@gmail.com> () Mon, 01 Mar 2010 16:12:51 -0800 Google doesn't get me there. That's a relief! What can I do? Well, `C-h i' is a keybinding to a command, so it is succeptible to doing `C-h k' first, i.e., `C-h k C-h i'. Have you tried that? thi ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: how do I visit a file in info mode? 2010-03-02 0:12 how do I visit a file in info mode? Bruce Korb 2010-03-02 0:27 ` Thien-Thi Nguyen @ 2010-03-02 0:28 ` Drew Adams 2010-03-02 0:52 ` Bruce Korb 1 sibling, 1 reply; 8+ messages in thread From: Drew Adams @ 2010-03-02 0:28 UTC (permalink / raw) To: 'Bruce Korb', help-gnu-emacs > It used to be the case that I only had to put a non-zero prefix > on the "info" command. e.g. Esc-2 Ctl-h i > and I was queried as to which .info file to visit. > I cannot figure out how to do that any more. > Google doesn't get me there. > I do not want to install the thing before I've viewed it. > What can I do? Thank you. Regards, Bruce You don't mention your Emacs version. In Emacs prior to version 22, any prefix arg gave the behavior you're looking for. Starting with Emacs 22, you need to use a non-numeric prefix arg to get that behavior. So try `C-u C-h i' instead of `M-2 C-h i'. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how do I visit a file in info mode? 2010-03-02 0:28 ` Drew Adams @ 2010-03-02 0:52 ` Bruce Korb 2010-03-02 1:03 ` Drew Adams 0 siblings, 1 reply; 8+ messages in thread From: Bruce Korb @ 2010-03-02 0:52 UTC (permalink / raw) To: Drew Adams; +Cc: help-gnu-emacs Hi Drew, On Mon, Mar 1, 2010 at 4:28 PM, Drew Adams <drew.adams@oracle.com> wrote: > You don't mention your Emacs version. > > In Emacs prior to version 22, any prefix arg gave the behavior you're looking > for. Starting with Emacs 22, you need to use a non-numeric prefix arg to get > that behavior. > > So try `C-u C-h i' instead of `M-2 C-h i'. That was it. Thank you!! Completely unclear why it was necessary to change it, though. Regards, Bruce ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: how do I visit a file in info mode? 2010-03-02 0:52 ` Bruce Korb @ 2010-03-02 1:03 ` Drew Adams 2010-03-02 1:21 ` Bruce Korb 0 siblings, 1 reply; 8+ messages in thread From: Drew Adams @ 2010-03-02 1:03 UTC (permalink / raw) To: 'Bruce Korb'; +Cc: help-gnu-emacs > > So try `C-u C-h i' instead of `M-2 C-h i'. > > That was it. Thank you!! > Completely unclear why it was necessary to change it, though. Most changes are not strictly necessary. ;-) The more common use of a prefix arg is as `C-u'. A numeric prefix arg sometimes serves, like here, to provide a numeric value (or to provide some other alternative behavior). In this case, from the doc string (`C-h k C-h i'): "In interactive use, a non-numeric prefix argument directs this command to read a file name from the minibuffer. A numeric prefix argument selects an Info buffer with the prefix number appended to the Info buffer name." ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how do I visit a file in info mode? 2010-03-02 1:03 ` Drew Adams @ 2010-03-02 1:21 ` Bruce Korb 2010-03-02 3:54 ` Kevin Rodgers 2010-03-02 4:17 ` Eli Zaretskii 0 siblings, 2 replies; 8+ messages in thread From: Bruce Korb @ 2010-03-02 1:21 UTC (permalink / raw) To: Drew Adams; +Cc: help-gnu-emacs Hi Drew, Thanks. On Mon, Mar 1, 2010 at 5:03 PM, Drew Adams <drew.adams@oracle.com> wrote: >> > So try `C-u C-h i' instead of `M-2 C-h i'. >> >> That was it. Thank you!! >> Completely unclear why it was necessary to change it, though. > > Most changes are not strictly necessary. ;-) Yeah, I know. As a developer, I am acutely sensitive to both sides of the issue. The result: never change things unless there's a real reason, and when there is a real reason, leave around some bread crumbs so nobody has to go Googling to figure things out. Here, the new code just quietly ignores the numeric prefix (a technique I've been using for 30 years now). It left me grumpy. :) Thank you. I will now retrain my fingers to prefix this particular command with Ctl-u. Ick. :( "non-numeric prefix" is a new feature that must have cropped up in the last 20 years. :-D > The more common use of a prefix arg is as `C-u'. A numeric prefix arg sometimes > serves, like here, to provide a numeric value (or to provide some other > alternative behavior). > > In this case, from the doc string (`C-h k C-h i'): > > "In interactive use, a non-numeric prefix argument directs > this command to read a file name from the minibuffer. > A numeric prefix argument selects an Info buffer with the > prefix number appended to the Info buffer name." I know the stuff is always documented somewhere. The problem is finding it. Thank you again. Regards, Bruce ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how do I visit a file in info mode? 2010-03-02 1:21 ` Bruce Korb @ 2010-03-02 3:54 ` Kevin Rodgers 2010-03-02 4:17 ` Eli Zaretskii 1 sibling, 0 replies; 8+ messages in thread From: Kevin Rodgers @ 2010-03-02 3:54 UTC (permalink / raw) To: help-gnu-emacs Bruce Korb wrote: > I know the stuff is always documented somewhere. The problem is > finding it. Thank you again. Regards, Bruce When you install a new version of Emacs, `C-h n' is the first thing to try: * Changes in Specialized Modes and Packages in Emacs 22.1: ... ** Info mode changes ... *** A numeric prefix argument of `info' selects an Info buffer with the number appended to the `*info*' buffer name (e.g. "*info*<2>"). -- Kevin Rodgers Denver, Colorado, USA ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how do I visit a file in info mode? 2010-03-02 1:21 ` Bruce Korb 2010-03-02 3:54 ` Kevin Rodgers @ 2010-03-02 4:17 ` Eli Zaretskii 1 sibling, 0 replies; 8+ messages in thread From: Eli Zaretskii @ 2010-03-02 4:17 UTC (permalink / raw) To: help-gnu-emacs > From: Bruce Korb <bruce.korb@gmail.com> > Date: Mon, 1 Mar 2010 17:21:55 -0800 > Cc: help-gnu-emacs@gnu.org > > Here, the new code just quietly ignores the numeric prefix ??? How do you mean ``ignore''? If I type "C-u 100 C-h i", I get a buffer "*info*<100>" with the Info main directory. > "non-numeric prefix" is a new feature that must have cropped up in the > last 20 years. :-D It's been in Emacs since day one, actually. Maybe you are just unfamiliar with the term, which means "there is an argument, but it is not a number". > > In this case, from the doc string (`C-h k C-h i'): > > > > "In interactive use, a non-numeric prefix argument directs > > this command to read a file name from the minibuffer. > > A numeric prefix argument selects an Info buffer with the > > prefix number appended to the Info buffer name." > > I know the stuff is always documented somewhere. The problem is > finding it. The doc string of the command is not ``somewhere''. It's generally the first place to look. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-03-02 4:17 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-03-02 0:12 how do I visit a file in info mode? Bruce Korb 2010-03-02 0:27 ` Thien-Thi Nguyen 2010-03-02 0:28 ` Drew Adams 2010-03-02 0:52 ` Bruce Korb 2010-03-02 1:03 ` Drew Adams 2010-03-02 1:21 ` Bruce Korb 2010-03-02 3:54 ` Kevin Rodgers 2010-03-02 4:17 ` Eli Zaretskii
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).