From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Buffer local alias? Date: Tue, 14 Jan 2014 10:12:14 -1000 Message-ID: References: <87a9ey5p50.fsf@alphaville.bos.redhat.com> <87zjmyic0v.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3ALe-0003PB-MT for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 15:12:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3ALU-0000xO-2J for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 15:12:30 -0500 Received: from alt-proxy31.mail.unifiedlayer.com ([74.220.221.129]:42688) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1W3ALT-0000x5-Q9 for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 15:12:19 -0500 In-Reply-To: <87zjmyic0v.fsf@bzg.ath.cx> (Bastien's message of "Tue, 14 Jan 2014 20:44:32 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Nick Dokos , emacs-orgmode@gnu.org Bastien writes: > Nick Dokos writes: > >> Use fboundp, instead of boundp: the latter checks the variable binding >> slot, whereas the former checks the function binding slot. > > Also, I thought sbe was unknown enough to rename it directly > instead of creating an alias. If many people are using sbe, > maybe an alias is better -- but I'd rather not to add it. Thanks Nick. This works: * Local variables :noexport: # Local Variables: # eval: (and (fboundp 'org-sbe) (not (fboundp 'sbe)) (fset 'sbe 'org-sbe)) # eval: (sbe "setup-common-lisp") # End: Bastien, for my use case there is no reason to define an alias. All the best, Tom -- Thomas S. Dye http://www.tsdye.com