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

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

Re: Message goto signature


From: Richard Riley
Subject: Re: Message goto signature
Date: Fri, 06 Mar 2009 15:03:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

Nikolaj Schumacher <me@nschum.de> writes:

> Richard Riley <rileyrgdev@gmail.com> wrote:  > This works for
> followup: > > (defadvice gnus-summary-followup (after followup-sig 
>> activate)(progn 
> (message-goto-signature)(previous-line)(previous-line))) > > And this
> for reply: > > (defadvice gnus-summary-reply-with-original (after
> reply-sig > activate)(progn
> (message-goto-signature)(previous-line)(previous-line))) > > I dont
> know if there is a better way than previous-line.
>
> previous-line should be fine in this case, but the advice is
> unneccessary (and always potentially dangerous).
>
> The cleanest way is to just define a new command:
>
> (defun message-goto-before-signature () "Move point before the
> beginning of the message signature separator."  (interactive)
> (message-goto-signature) (forward-line -1))
>
>
> regards,
> Nikolaj Schumacher
>
>

yes, but how to automatically call the function. Can you explain why the
advice is dangerous? It seems to be reasonable in this context.


-- 
 important and urgent problems of the technology of today are no longer the 
satisfactions of the primary needs or of archetypal wishes, but the reparation 
of the evils and damages by the technology of yesterday.  ~Dennis Gabor, 
Innovations:  Scientific, Technological and Social, 1970


reply via email to

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