Gnus development mailing list
 help / color / mirror / Atom feed
* 5.2.20 nits/fixes (with patches for most)
@ 1996-06-19 15:52 Christopher Davis
  1996-06-19 16:36 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Christopher Davis @ 1996-06-19 15:52 UTC (permalink / 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_


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1996-06-22  9:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-19 15:52 5.2.20 nits/fixes (with patches for most) Christopher Davis
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

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).