From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Why doesn't Emacs have a horizontal scroll bar? Date: Wed, 04 Jul 2007 00:16:06 +0200 Organization: Organization?!? Message-ID: <85myydqgk9.fsf@lola.goethe.zz> References: <63F95800EDD046419F17688AAFD41CCF01A90F5C@rnd-ex01.rnd.gdnt.local> <606FF314-7C06-4F85-84B0-99308F8B7965@Web.DE> <873b06n43f.fsf@informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183502444 1530 80.91.229.12 (3 Jul 2007 22:40:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2007 22:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 04 00:40:40 2007 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I5r2w-00084l-A7 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jul 2007 00:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5r2v-0004dn-TJ for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Jul 2007 18:40:33 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.freenet.de!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:BEBQiu/d1dX6X5PkJc32wgWs9ws= Original-Lines: 27 Original-NNTP-Posting-Date: 04 Jul 2007 00:16:09 CEST Original-NNTP-Posting-Host: 2ba0dc6f.newsspool1.arcor-online.net Original-X-Trace: DXC=EA7h`NA^jQAA@P]\Dic==]BZ:afN4Fo<]lROoRAFl8W>\BH3YB1Z87:1`b]2MCV`H8_`hhQD^9QSCVg3dOFOIC5DBZVJ9KeXUllGW^50H4ccD:N<2N=M Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:149864 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:45452 Archived-At: Dieter Wilhelm writes: > Pascal Bourguignon writes: > >> Here is the first form I have in by ~/.emacs: >> >> (mapcar (lambda (f) (when (fboundp f) (funcall f -1))) >> '(scroll-bar-mode menu-bar-mode tool-bar-mode)) (let ((h '(scroll-bar-mode menu-bar-mode tool-bar-mode))) (run-hook-with-args 'h -1)) > That is very nice, thanks, I adapted it to my .emacs as well. But > is the fboundp check not a bit superfluous with this concise list? > > By the way, I'm just curious whether this might be more elegant, would > you mind doing the same with a macro definition? A definition for the purpose of an action is never elegant. (macrolet ((h (&rest lst) (cons 'progn (mapcar (lambda (x) (list x -1)) lst)))) (h scroll-bar-mode menu-bar-mode tool-bar-mode)) -- David Kastrup, Kriemhildstr. 15, 44793 Bochum