all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: Filename of buffer into kill-ring functionality
Date: Thu, 31 Aug 2006 21:08:19 +0200	[thread overview]
Message-ID: <v9ejuwrae4.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: ed704c$lpb$1@sea.gmane.org

On Thu, Aug 31 2006, Kevin Rodgers wrote:

> (defun kill-new-string-variable (variable)
>   "Make the string value of VARIABLE the latest kill in the kill ring."
>   (interactive (let ((current-buffer (current-buffer)))
> 		 (intern (completing-read "Variable: " obarray
> 					  (lambda (symbol)
> 					    (with-current-buffer current-buffer
> 					      (and (boundp symbol)
> 						   (stringp
> 						    (symbol-value symbol)))))

Is there a reason why you use (boundp symbol) inside
(with-current-buffer ...)?  In other words: Is there any difference
between these variants?

(with-current-buffer current-buffer
  (and (boundp symbol)
       (stringp	(symbol-value symbol))))

(and (boundp symbol)
     (with-current-buffer current-buffer
       (stringp (symbol-value symbol))))

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

  reply	other threads:[~2006-08-31 19:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-31 10:04 Filename of buffer into kill-ring functionality Marco Wahl
2006-08-31 12:40 ` Reiner Steib
2006-08-31 15:43   ` Kevin Rodgers
2006-08-31 19:08     ` Reiner Steib [this message]
2006-08-31 20:40       ` Kevin Rodgers
     [not found]   ` <mailman.6092.1157039301.9609.help-gnu-emacs@gnu.org>
2006-09-01  7:38     ` Marco Wahl
2006-09-01  8:58 ` Eli Zaretskii

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=v9ejuwrae4.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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.