Gnus development mailing list
 help / color / mirror / Atom feed
From: Christopher Davis <ckd@loiosh.kei.com>
Subject: 5.2.20 nits/fixes (with patches for most)
Date: 19 Jun 1996 11:52:51 -0400	[thread overview]
Message-ID: <w4g27rpz8s.fsf@loiosh.kei.com> (raw)

This is the 5.2.20 included with "19.14 XEmacs Lucid (beta26)", though the
only change relative to the "real" 5.2.20 is the removal of the (sit-for
0) that was so annoying me :)

gnus-vis.el:

- gnus-highlight-selected-summary is incorrectly highlighting the summary
  line; it's highlighting only the part that's within the %( and %) [this
  is fine, I can accept that] *except for the first and last characters*.

  This appears to be due to the change (in 5.2.20) to no longer use
  gnus-xmas-highlight-selected-summary on XEmacs 19.14 causing the section
  marked "Fix by Mike Dugan" to be run; that "1+" and "1-" look suspicious
  to me.  Is there some off-by-one incompatibility between Emacs and
  XEmacs here? [Argh.]

  [No patch; I don't understand the way the code works on Emacs, so I
  don't want to break it.]

message.el:

- I missed a spot when suggesting the addition of the signature separator
  to the paragraph fill code in message.el; it needs to be added to both
  paragraph-separate and paragraph-start.  [Oops.]

- message-insert-signature adds a gratuitous blank line at the end of the
  text if the text already ends in a newline.

- [semi-feature] message-insert-signature should accept a value for force
  of 'if-not-present, which would look for a signature separator line in
  the message and only insert a signature if that line is not present.
  This allows manually adding a signature to a message that would normally
  get one appended automatically by a hook.  I also think the interactive
  use of message-insert-signature should try to prevent the user from
  adding multiple signatures.

--- message.el.orig	Wed Jun 19 11:31:50 1996
+++ message.el	Wed Jun 19 11:50:34 1996
@@ -810,6 +810,7 @@
   (make-local-variable 'paragraph-start)
   (setq paragraph-start (concat (regexp-quote mail-header-separator)
 				"$\\|[ \t]*[-_][-_][-_]+$\\|"
+				"-- $\\|"
 				paragraph-start))
   (setq paragraph-separate (concat (regexp-quote mail-header-separator)
 				   "$\\|[ \t]*[-_][-_][-_]+$\\|"
@@ -939,9 +940,14 @@
 
 (defun message-insert-signature (&optional force)
   "Insert a signature.  See documentation for the `message-signature' variable."
-  (interactive (list t))
+  (interactive (list 'if-not-present))
   (let* ((signature 
 	  (cond ((and (null message-signature)
+		      (eq force 'if-not-present))
+		 (save-excursion
+		   (goto-char (point-max))
+		   (not (re-search-backward "^-- $" nil t))))
+		((and (null message-signature)
 		      force)
 		 t)
 		((message-functionp message-signature)
@@ -963,7 +969,8 @@
       (forward-line 1)
       (delete-region (point) (point-max))
       ;; Insert the signature.
-      (insert "\n-- \n")
+      (or (bolp) (insert "\n"))                ;start separator on new line
+      (insert "-- \n")
       (if (eq signature t)
 	  (insert-file-contents message-signature-file)
 	(insert signature))
-- 
Christopher Davis <ckd@kei.com> <URL: http://www.kei.com/homepages/ckd/ >
"I conclude that the CDA is unconstitutional and that the First Amendment
 denies Congress the power to regulate protected speech on the Internet."
                               -- Judge Stewart Dalzell in _ACLU v. Reno_


             reply	other threads:[~1996-06-19 15:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-19 15:52 Christopher Davis [this message]
1996-06-19 16:36 ` Lars Magne Ingebrigtsen
1996-06-19 20:29   ` Christopher Davis
1996-06-20  6:44     ` Lars Magne Ingebrigtsen
1996-06-20 14:24       ` Hallvard B Furuseth
1996-06-20 14:37         ` Lars Magne Ingebrigtsen
1996-06-19 23:00   ` Edward J. Sabol
1996-06-20  4:05     ` Firebeard
1996-06-21 15:35   ` Christopher Davis
1996-06-21 15:50     ` Lars Magne Ingebrigtsen
1996-06-21 17:24       ` Christopher Davis
1996-06-22  9:04         ` Lars Magne Ingebrigtsen

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=w4g27rpz8s.fsf@loiosh.kei.com \
    --to=ckd@loiosh.kei.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).