From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: Filename of buffer into kill-ring functionality Date: Thu, 31 Aug 2006 21:08:19 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <9ofyfdql0b.fsf@gonzo.vircinity> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157053302 10242 80.91.229.2 (31 Aug 2006 19:41:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Aug 2006 19:41:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 31 21:41:40 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GIsPd-0000ha-5L for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Aug 2006 21:41:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GIsPc-0000TZ-Jd for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Aug 2006 15:41:16 -0400 Original-Newsgroups: gnu.emacs.help X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T; w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv, vbL^XF1nIp\:F=$Ei2o&mEe:%N~, :3]vtQ~s9u$9izmX$IF@VgGl7/, ^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:wBu0czaqXuHGmET/B6Ru8PkrW+4= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1157051246 134.60.10.123 (31 Aug 2006 21:07:26 +0200) Original-Lines: 29 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-ulm.de!viandante.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:141466 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: news.gmane.org gmane.emacs.help:37087 Archived-At: 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/