Gnus development mailing list
 help / color / mirror / Atom feed
From: Dmitry Yaitskov <dimas@home.com>
Subject: message-newline-and-reformat - changed (buggy?) behavior
Date: 06 Feb 2001 12:21:40 -0500	[thread overview]
Message-ID: <8766inhgm3.fsf@home.com> (raw)

Hi,

In message mode, prior to Oort Gnus v0.01, if I pressed M-q (which
invokes (message-newline-and-reformat t) in the 1st position of the
1st line of the following text (paragraph):

> blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah

the whole paragraph got formatted and quoted properly:

> blah blah blah blah blah blah blah blah blah blah blah blah blah
> blah blah blah blah blah blah blah blah blah blah blah blah blah
> blah blah blah blah blah blah blah blah blah blah blah blah blah

- which was exactly what I wanted. Now, the text looks like this:

> blah blah blah blah blah blah blah blah blah blah blah blah blah
> blah
blah blah blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah

- which looks weird and not very useful. OTOH, if I press M-Enter
instead (which invokes same message-newline-and-reformat but w/out the
argument that tells not to insert newlines), I still get the old
(correct IMHO) result (with 4 newlines inserted as per the doc).

The patch below fixes this for me, but I am not sure I understood the
intent of the code correctly...

XEmacs 21.2  (beta43) "Terspichore" [Lucid] (i686-pc-cygwin) of Tue Jan 30 2001 on LUCY
Oort Gnus v0.01


---------------------------- cut here ----------------------------
Index: message.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/message.el,v
retrieving revision 6.54
diff -u -r6.54 message.el
--- message.el  2001/01/21 05:15:20     6.54
+++ message.el  2001/02/06 17:16:17
@@ -1810,7 +1810,6 @@
       (looking-at "[ \t]*")
       (setq leading-space (match-string 0)))
     (if (and quoted
-            (not not-break)
             (< (- point beg) (length quoted)))
        ;; break in the cite prefix.
        (setq quoted nil
---------------------------- cut here ----------------------------

-- 
Cheers,
-Dima.




             reply	other threads:[~2001-02-06 17:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-06 17:21 Dmitry Yaitskov [this message]
2001-02-06 17:58 ` ShengHuo ZHU

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=8766inhgm3.fsf@home.com \
    --to=dimas@home.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).