[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why doesn't Emacs have a horizontal scroll bar?
From: |
Dieter Wilhelm |
Subject: |
Re: Why doesn't Emacs have a horizontal scroll bar? |
Date: |
Wed, 04 Jul 2007 07:58:44 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
David Kastrup <dak@gnu.org> writes:
Hi David
> Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:
>
>> Pascal Bourguignon <pjb@informatimago.com> 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))
Ahh, not bad either, thanks. Why is it necessary to provide a symbol
to the run-hook-with-args function? Is it not possible to "overload"
functions with various arguments in lisp?
(run-hook-with-args '(scroll-bar-mode tool-bar-mode) 1)
(run-hook-with-args sroll-bar-mode 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))
I'm sorry, I've to chew on it for a while, I'll ask/comment later.
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
- Re: Save on losing focus in Emacs, (continued)
- Re: Save on losing focus in Emacs, Tim X, 2007/07/02
- Re: Save on losing focus in Emacs, Tassilo Horn, 2007/07/02
- Why doesn't Emacs have a horizontal scroll bar?, brianjiang, 2007/07/02
- Re: Why doesn't Emacs have a horizontal scroll bar?, Peter Dyballa, 2007/07/02
- Re: Why doesn't Emacs have a horizontal scroll bar?, Lennart Borgman (gmail), 2007/07/02
- Re: Why doesn't Emacs have a horizontal scroll bar?, Peter Dyballa, 2007/07/02
- Message not available
- Re: Why doesn't Emacs have a horizontal scroll bar?, Pascal Bourguignon, 2007/07/02
- Re: Why doesn't Emacs have a horizontal scroll bar?, Dieter Wilhelm, 2007/07/03
- Message not available
- Re: Why doesn't Emacs have a horizontal scroll bar?, David Kastrup, 2007/07/03
- Re: Why doesn't Emacs have a horizontal scroll bar?, David Kastrup, 2007/07/03
- Re: Why doesn't Emacs have a horizontal scroll bar?,
Dieter Wilhelm <=
- Message not available
- Re: Why doesn't Emacs have a horizontal scroll bar?, David Kastrup, 2007/07/04
- Re: Why doesn't Emacs have a horizontal scroll bar?, Andreas Röhler, 2007/07/05
- Re: Why doesn't Emacs have a horizontal scroll bar?, Gordon Beaton, 2007/07/05
- Re: Why doesn't Emacs have a horizontal scroll bar?, Peter Dyballa, 2007/07/05
- Re: Save on losing focus in Emacs, Sergey Pariev, 2007/07/02