all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Dan Elliott" <dan_elliott_at_cox_dot_net@noSpam.org>
Subject: Re: elisp: set-register
Date: Tue, 16 Nov 2004 12:07:42 -0600	[thread overview]
Message-ID: <9lrmd.6$mg1.5@dfw-service2.ext.ray.com> (raw)
In-Reply-To: 2vsqi7F2puu99U1@uni-berlin.de

This did it, thank you.

"Kevin Rodgers" <ihs_4664@yahoo.com> wrote in message
news:2vsqi7F2puu99U1@uni-berlin.de...
> Dan Elliott wrote:
>  > "Kevin Rodgers" <ihs_4664@yahoo.com> wrote in message
>  > news:2vsd2fF2p4vs9U1@uni-berlin.de...
>  >>,----[ C-h k C-x r w ]
>  >>| C-x r w runs the command window-configuration-to-register
>  >>|    which is an interactive compiled Lisp function in `register'.
>  >>| (window-configuration-to-register REGISTER &optional ARG)
>  >>|
>  >>| Store the window configuration of the selected frame in register
> REGISTER.
>  >>| Use C-x r j to restore the configuration.
>  >>| Argument is a character, naming the register.
>  >>`----
>  >
>  > I apologize for being so ignorant, but how does one read the line:
>  > (window-configuration-to-register REGISTER &optional ARG)?
>
> It means the function takes 1 required argument (REGISTER) and 1
> optional argument (ARG).
>
>  > This is quite confusing to me to have both REGISTER and ARG.  Does
> ARG stand
>  > for an input the method and REGISTER is the name of that input as used
in
>  > the function?
>
> Indeed, the doc string does not explain ARG, nor do the Emacs and Emacs
> Lisp manuals.  But if you follow the link to the source, you can see
> that it is bound to the raw prefix argument when called interactively
> and then ignored.
>
> So you probably just want: (window-configuration-to-register ?p)
>
> -- 
> Kevin Rodgers

  reply	other threads:[~2004-11-16 18:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-15 18:09 elisp: set-register Dan Elliott
2004-11-15 19:06 ` Kevin Rodgers
2004-11-15 19:51   ` Dan Elliott
2004-11-15 22:57     ` Kevin Rodgers
2004-11-16 18:07       ` Dan Elliott [this message]
2004-11-15 23:13 ` V. L. Simpson
  -- strict thread matches above, loose matches on Subject: below --
2004-11-16  5:58 Joe Corneli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='9lrmd.6$mg1.5@dfw-service2.ext.ray.com' \
    --to=dan_elliott_at_cox_dot_net@nospam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.