all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Message goto signature
Date: Fri, 06 Mar 2009 15:03:12 +0100	[thread overview]
Message-ID: <goraf0$645$2@rileyrgdev.motzarella.org> (raw)
In-Reply-To: mailman.2485.1236331510.31690.help-gnu-emacs@gnu.org

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


  parent reply	other threads:[~2009-03-06 14:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-05 12:58 Message goto signature Francis Moreau
2009-03-05 17:18 ` Nikolaj Schumacher
2009-03-05 19:28   ` Francis Moreau
     [not found]   ` <mailman.2445.1236281343.31690.help-gnu-emacs@gnu.org>
2009-03-05 20:23     ` Richard Riley
2009-03-05 21:16       ` Reiner Steib
2009-03-05 21:30         ` Richard Riley
2009-03-05 21:35         ` Francis Moreau
2009-03-05 23:03           ` Richard Riley
2009-03-06  8:47             ` Francis Moreau
2009-03-06 14:02               ` Richard Riley
2009-03-06 18:07                 ` Francis Moreau
2009-03-06 18:21                   ` Richard Riley
2009-03-06 20:24                     ` Francis Moreau
2009-03-06  9:24             ` Nikolaj Schumacher
     [not found]             ` <mailman.2485.1236331510.31690.help-gnu-emacs@gnu.org>
2009-03-06 14:03               ` Richard Riley [this message]
2009-03-07  9:59                 ` Reiner Steib
2009-03-05 21:32       ` Francis Moreau
     [not found] ` <mailman.2434.1236273540.31690.help-gnu-emacs@gnu.org>
2009-03-05 17:50   ` Broken quotations (was: Message goto signature) Teemu Likonen
2009-03-06  9:31     ` Broken quotations Nikolaj Schumacher

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='goraf0$645$2@rileyrgdev.motzarella.org' \
    --to=rileyrgdev@gmail.com \
    --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.
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.