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

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

Re: command to insert a "--text follows this line--"


From: Kevin Rodgers
Subject: Re: command to insert a "--text follows this line--"
Date: Wed, 28 Jun 2006 14:36:04 -0600
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

Dan Jacobson wrote:
In sendmail.el, in addition to
C-c C-f C-a     mail-mail-reply-to
C-c C-f C-b     mail-bcc
C-c C-f C-c     mail-cc ...
there ought to be a
C-c C-f C-l     mail-separator
which will insert a "--text follows this line--" line,
for folks who have done M-x mail-mode on a buffer, and are inserting
the components into that buffer one by one. (That buffer was already
pretty much a mail message, or else one would have done C-x m).

Here's how mail-setup does it (point is already at the beginning of
the line):

    (put-text-property (point)
                       (progn
                         (insert mail-header-separator "\n")
                         (1- (point)))
                       'category 'mail-header-separator)

But mail-sendmail-delimit-header doesn't bother setting the category
text property or inserting the newline:

  (rfc822-goto-eoh)
  (insert mail-header-separator)

Hmmm, in gnus this could be called message-insert-delimiter.

--
Kevin





reply via email to

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