From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "V. L. Simpson" Newsgroups: gmane.emacs.help Subject: Re: elisp: set-register Date: 15 Nov 2004 17:13:58 -0600 Organization: Monster Island Message-ID: <87r7muemdl.fsf@ghidra.localhost> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1100560882 6194 80.91.229.6 (15 Nov 2004 23:21:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Nov 2004 23:21:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 16 00:21:17 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CTq9t-0002Od-00 for ; Tue, 16 Nov 2004 00:21:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CTqIc-00009R-GK for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Nov 2004 18:30:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!prodigy.com!in.100proofnews.com!in.100proofnews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!spooler2.hal-mli.net!news.hal-pc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 24 Original-NNTP-Posting-Host: 206.180.152.29.adsl.hal-pc.org Original-X-Trace: 1100560438 news.hal-pc.org 451 206.180.152.29:4191 Original-X-Complaints-To: abuse@hal-pc.org Original-Xref: shelby.stanford.edu gnu.emacs.help:126637 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22032 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22032 >>>>> "Dan" == Dan Elliott writes: > Hello, I am having difficulty understanding the > set-register function. When I try: (set-register ?p > (current-window-configuration)) > in a function run by my .emacs file, it does not appear to > work, nor does it appear to cause an error. After playing around I came up with this: (set-register ?p (list (current-window-configuration) (point))) 'set-register' wants a list: the window config and a buffer position 'C-h v register-alist' for some other values you can pass along to set-register. Good question. I've been wanting to do something with set-register myself but never futzed with it until now. vls