Gnus development mailing list
 help / color / mirror / Atom feed
* hard-newline changes in lisp/gnus/message.el
@ 2005-11-18 17:31 Reiner Steib
  2005-11-19 11:20 ` Romain Francoise
  2005-11-19 19:07 ` Chong Yidong
  0 siblings, 2 replies; 6+ messages in thread
From: Reiner Steib @ 2005-11-18 17:31 UTC (permalink / raw)
  Cc: Miles Bader, Gnus, Emacs development

Hi,

when changing lisp/gnus/*.el, please keep in mind that this directory
is synced by Miles Bader with the (primary) Gnus repository on
gnus.org in order to simplify the process of including a new stable
Gnus version in Emacs.  The stable version of Gnus (the v5-10 branch
in Gnus CVS) should be identical[1] to the version in Emacs CVS and it
should work with Emacs 20.7 and up and XEmacs 21.1 and up.

It would be nice to discuss possibly controversial changes on
emacs-devel and ding@gnus.org (Gnus development list) before
committing.

As for `hard-newline': Obviously `hard-newline' is not defined in
Emacs < 22.  I'm not sure what's the best way to deal with this.  I'd
suggest to define `message-hard-newline' in `message.el' as follows
and use it instead of `hard-newline'.

(defvar message-hard-newline
  (if (featurep 'xemacs)
      "\n" ;; Or better code for XEmacs
    (if (boundp 'hard-newline)
	hard-newline
      (propertize "\n" 'hard t 'rear-nonsticky '(hard)))))

Or:

(defvar message-hard-newline
  (cond ((boundp 'hard-newline) hard-newline)
	((fboundp 'propertize)
	 (propertize "\n" 'hard t 'rear-nonsticky '(hard)))
	(t "\n")))

BTW, maybe `hard-newline' should have a doc string?

Bye, Reiner.

[1] Exception: Version number.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

end of thread, other threads:[~2005-11-20  3:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-18 17:31 hard-newline changes in lisp/gnus/message.el Reiner Steib
2005-11-19 11:20 ` Romain Francoise
2005-11-20  2:51   ` Sam Steingold
2005-11-20  3:33   ` Chong Yidong
2005-11-19 19:07 ` Chong Yidong
2005-11-19 20:47   ` Reiner Steib

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