help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why doesn't Emacs have a horizontal scroll bar?


From: David Kastrup
Subject: Re: Why doesn't Emacs have a horizontal scroll bar?
Date: Wed, 04 Jul 2007 00:45:49 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

David Kastrup <dak@gnu.org> writes:

> Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:

>> 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))

Perhaps more macroesque would be

(macrolet ((h (lst) `(progn ,@(mapcar (lambda (x) `(,x -1)) lst))))
          (h (scroll-bar-mode menu-bar-mode tool-bar-mode)))


-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

[Prev in Thread] Current Thread [Next in Thread]