From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Message goto signature Date: Fri, 06 Mar 2009 15:03:12 +0100 Organization: A noiseless patient Spider Message-ID: References: <8763iny8k3.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236350575 15943 80.91.229.12 (6 Mar 2009 14:42:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2009 14:42:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 06 15:44:12 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LfbHR-0004gu-N4 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Mar 2009 15:44:05 +0100 Original-Received: from localhost ([127.0.0.1]:49110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfbG6-0007rp-Bo for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Mar 2009 09:42:42 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.motzarella.org!motzarella.org!rileyrgdev.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-X-Trace: news.eternal-september.org U2FsdGVkX1/XiQnegpptEh6DgFG2QG/Fv/skrEKXaJqOkrf1G9TJAb/NkXfXSOt/RW7i2faOK3xsCBbVh9oJrGcdgbLi4iK7UIApRBMpLJsOjkXW8/QcfSUt6wJPw6+Lcz7YKMhaRTeZx1zs8PQnIQ== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Fri, 6 Mar 2009 14:03:12 +0000 (UTC) X-Auth-Sender: U2FsdGVkX18+VevbNf+dx7lGOZ+HaHA0mHFyIJMheWLdPpk6HrP3nQ== Cancel-Lock: sha1:AB3RHSDnBU1cMfJRT8nesN1Yypg= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:167385 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62681 Archived-At: Nikolaj Schumacher writes: > Richard Riley 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