From: Kevin Rodgers <kevin.rodgers@ihs.com>
Subject: Re: diary display won't initialise correctly?
Date: Mon, 10 Feb 2003 17:29:10 -0700 [thread overview]
Message-ID: <3E4843D6.80602@ihs.com> (raw)
In-Reply-To: yqry94sz5l7.fsf@cs.york.ac.uk
Kester Clegg wrote:
> Kevin Rodgers <kevin.rodgers@ihs.com> writes:
>>(defadvice view-diary-entries (before number-of-diary-entries activate)
>> "If ARG is not specified, display `number-of-diary-entries' instead of 1."
>> (if (and (interactive-p)
>> (null current-prefix-arg))
>> (ad-set-arg 0 number-of-diary-entries)))
>>
>
> Thanks for that, seems to work fine - so is defadvice the standard way
> to get a hook into something before it runs? What made you take that
> route?
Since view-diary-entries isn't controlled by a variable, there's no
other way to do it without defining your own command that merely calls
view-diary-entries with an explicit argument -- and I would be loathe to
do that just to provide a more sensible interactive default.
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
prev parent reply other threads:[~2003-02-11 0:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-06 17:53 diary display won't initialise correctly? Kester Clegg
2003-02-06 22:53 ` Kevin Rodgers
2003-02-07 11:35 ` Kester Clegg
2003-02-11 0:29 ` Kevin Rodgers [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E4843D6.80602@ihs.com \
--to=kevin.rodgers@ihs.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.