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 19:21:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

Francis Moreau <address@hidden> writes:

> Richard Riley <address@hidden> writes:
>
>>
>> The function is called "goto-signature", not "goto-end-of.article" :-)
>>
>
> Yes but what the point to give 'goto-signature' if it's not usefull at
> all. Why not giving 'goto-end-of-body' in the first place ?

I guess if we were to second guess every API in the world we'd be here
from now to eternity :-;

But one solution emailed to me kindly by Nikolas is:

,----
| (defun message-goto-end-of-article ()
|   (interactive)
|   (unless (re-search-forward message-signature-separator nil t)
|     (goto-char (point-max))))
| 
| (defun message-cite-before-point-original-without-signature ()
|   (message-cite-original-without-signature)
|   (message-goto-end-of-article))
| 
| (setq message-cite-function
|       'message-cite-before-point-original-without-signature)
`----

This searches for the regexp which define a .signature.

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