From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
To: David Kastrup <dak@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Why doesn't Emacs have a horizontal scroll bar?
Date: Wed, 04 Jul 2007 07:58:44 +0200 [thread overview]
Message-ID: <874pkklnfv.fsf@debby.local.net> (raw)
In-Reply-To: <85myydqgk9.fsf@lola.goethe.zz> (David Kastrup's message of "Wed\, 04 Jul 2007 00\:16\:06 +0200")
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
next prev parent reply other threads:[~2007-07-04 5:58 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-01 13:25 Save on losing focus in Emacs Sergey Pariev
2007-07-01 14:40 ` Emilio Lopes
2007-07-01 17:56 ` Sergey Pariev
2007-07-01 20:12 ` David Kastrup
2007-07-01 20:53 ` Tassilo Horn
2007-07-02 9:02 ` Tim X
2007-07-02 9:41 ` Tassilo Horn
2007-07-02 15:01 ` Why doesn't Emacs have a horizontal scroll bar? brianjiang
2007-07-02 15:58 ` Peter Dyballa
2007-07-02 16:25 ` Lennart Borgman (gmail)
2007-07-02 17:53 ` Peter Dyballa
[not found] ` <mailman.2967.1183393563.32220.help-gnu-emacs@gnu.org>
2007-07-02 16:49 ` Pascal Bourguignon
2007-07-03 20:51 ` Dieter Wilhelm
[not found] ` <mailman.3029.1183495887.32220.help-gnu-emacs@gnu.org>
2007-07-03 22:16 ` David Kastrup
2007-07-03 22:45 ` David Kastrup
2007-07-04 5:58 ` Dieter Wilhelm [this message]
[not found] ` <mailman.3044.1183528715.32220.help-gnu-emacs@gnu.org>
2007-07-04 17:16 ` David Kastrup
2007-07-05 6:37 ` Andreas Röhler
2007-07-05 7:11 ` Gordon Beaton
2007-07-05 7:56 ` Peter Dyballa
2007-07-02 19:04 ` Save on losing focus in Emacs Sergey Pariev
[not found] <mailman.2963.1183391480.32220.help-gnu-emacs@gnu.org>
2007-07-02 19:36 ` Why doesn't Emacs have a horizontal scroll bar? Johan Bockgård
2007-07-03 7:36 ` Mathias Dahl
2007-07-03 12:52 ` brianjiang
2007-07-03 16:01 ` Amy Templeton
2007-07-04 1:56 ` brianjiang
2007-07-07 17:03 ` thorne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874pkklnfv.fsf@debby.local.net \
--to=dieter@duenenhof-wilhelm.de \
--cc=dak@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).