all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* prexix argument of Info-copy-current-node-name
@ 2006-10-25 16:06 Reiner Steib
  2006-10-25 20:43 ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: Reiner Steib @ 2006-10-25 16:06 UTC (permalink / raw)
  Cc: Juri Linkov

Hi,

`Info-copy-current-node-name' requires a _zero_ prefix argument to
copy the strings like ``(info "(emacs)Top")'' into the kill ring:

,----[ <f1> f Info-copy-current-node-name RET ]
| Info-copy-current-node-name is an interactive compiled Lisp function
| in `info'.  (Info-copy-current-node-name &optional ARG)
| 
| Put the name of the current Info node into the kill ring.
| The name of the Info file is prepended to the node name in parentheses.
| With a zero prefix arg, put the name inside a function call to `info'.
`----

>From Juri's suggestion on emacs-devel [1] I understand that `M-0 w'
(or `C-u 0 w') was because of the analogy to
`dired-copy-filename-as-kill' [2].  But wouldn't it make more sense to
allow _any_ prefix argument in `Info-copy-current-node-name'?

Bye, Reiner.

[1] http://thread.gmane.org/gmane.emacs.devel/23888/

[2]
,----[ <f1> f dired-copy-filename-as-kill RET ]
| dired-copy-filename-as-kill is an interactive compiled Lisp function
| in `dired'.  (dired-copy-filename-as-kill &optional ARG)
| 
| Copy names of marked (or next ARG) files into the kill ring.
| The names are separated by a space.
| With a zero prefix arg, use the absolute file name of each marked file.
| With C-u, use the file name relative to the dired buffer's
| `default-directory'.  [...]
`----
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: prexix argument of Info-copy-current-node-name
  2006-10-25 16:06 prexix argument of Info-copy-current-node-name Reiner Steib
@ 2006-10-25 20:43 ` Juri Linkov
  2006-10-30 15:13   ` Reiner Steib
  0 siblings, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2006-10-25 20:43 UTC (permalink / raw)


> From Juri's suggestion on emacs-devel [1] I understand that `M-0 w'
> (or `C-u 0 w') was because of the analogy to
> `dired-copy-filename-as-kill' [2].  But wouldn't it make more sense to
> allow _any_ prefix argument in `Info-copy-current-node-name'?

I intended to reserve other possible values of the prefix key to allow
more output formats besides the current two.

We could add now only a new prefix `C-u w' (i.e. the most often used prefix)
in addition to `M-0 w', and leave room for more formats.

-- 
Juri Linkov
http://www.jurta.org/emacs/

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

* Re: prexix argument of Info-copy-current-node-name
  2006-10-25 20:43 ` Juri Linkov
@ 2006-10-30 15:13   ` Reiner Steib
  2006-10-31  0:18     ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Reiner Steib @ 2006-10-30 15:13 UTC (permalink / raw)
  Cc: emacs-devel

On Wed, Oct 25 2006, Juri Linkov wrote:

>> From Juri's suggestion on emacs-devel [1] I understand that `M-0 w'
>> (or `C-u 0 w') was because of the analogy to
>> `dired-copy-filename-as-kill' [2].  But wouldn't it make more sense to
>> allow _any_ prefix argument in `Info-copy-current-node-name'?
>
> I intended to reserve other possible values of the prefix key to allow
> more output formats besides the current two.

In my info add-on package `rs-info.el'[1], I do it the other way
round: The command `rs-info-insert-current-node' inserts suitable
output formats depending on the major mode (`rs-info-style-alist').
Or more precisely, the default format which may be overridden
interactively depends on the major mode.

> We could add now only a new prefix `C-u w' (i.e. the most often used prefix)
> in addition to `M-0 w', and leave room for more formats.

Fine with me.  Any objection against installing such a change now?

Bye, Reiner.

[1]
;; rs-info.el -- Some info related functions
[...]
;; X-URL: http://theotp1.physik.uni-ulm.de/~ste/comp/emacs/misc/rs-info.el
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: prexix argument of Info-copy-current-node-name
  2006-10-30 15:13   ` Reiner Steib
@ 2006-10-31  0:18     ` Richard Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2006-10-31  0:18 UTC (permalink / raw)
  Cc: juri, emacs-devel

It appears to me that the question of what to do here calls for more
thought.  So please defer this to after the release.

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

end of thread, other threads:[~2006-10-31  0:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-25 16:06 prexix argument of Info-copy-current-node-name Reiner Steib
2006-10-25 20:43 ` Juri Linkov
2006-10-30 15:13   ` Reiner Steib
2006-10-31  0:18     ` Richard Stallman

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.