Gnus development mailing list
 help / color / mirror / Atom feed
* message-newline-and-reformat and supercite
@ 1999-09-26 19:51 Vladimir Volovich
  1999-10-04 22:41 ` François Pinard
  0 siblings, 1 reply; 18+ messages in thread
From: Vladimir Volovich @ 1999-09-26 19:51 UTC (permalink / raw)


Lars,

message-newline-and-reformat (M-RET) does not work with supercited
messages, which is very inconvenient: i find this function VERY useful
in general, so it would be great to make it SC-aware.

i modified it as follows, and it "works for me" (c):

(defun message-newline-and-reformat ()
  "Insert four newlines, and then reformat if inside quoted text."
  (interactive)
  (let ((point (point))
	quoted)
    (save-excursion
      (beginning-of-line)
      (if (looking-at (sc-cite-regexp))
	  (setq quoted (buffer-substring (match-beginning 0) (match-end 0)))))
    (insert "\n\n\n\n")
    (delete-region (point) (re-search-forward "[ \t]*"))
    (when quoted
      (insert quoted))
    (fill-paragraph nil)
    (goto-char point)
    (forward-line 2)))

The line (delete-region (point) (re-search-forward "[ \t]*"))
is in general useful (not only for SC), as it removes extra spaces at
the beginning of the recited message, preserving good indentation.

Could you please merge something like the above into the mainstream
gnus?

	Best regards, -- Vladimir.


^ permalink raw reply	[flat|nested] 18+ messages in thread
* message-newline-and-reformat and supercite
@ 1997-12-20 21:10 Michael R Cook
  1998-01-04  9:29 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 18+ messages in thread
From: Michael R Cook @ 1997-12-20 21:10 UTC (permalink / raw)


If I do M-RET (message-newline-and-reformat) in a Supercite context,
such as:

 +-----
 | FOO> hello_world
 +-----

(the underscore `_' represents point), the result is

 +-----
 | FOO> hello
 |
 |_
 |
 | world
 +-----

I was expecting

 +-----
 | FOO> hello
 |
 |_
 |
 | FOO>  world
 +-----

Is this a bug in message.el?
Or is my supercite installation misconfigured?

Michael.


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

end of thread, other threads:[~1999-11-06  3:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-26 19:51 message-newline-and-reformat and supercite Vladimir Volovich
1999-10-04 22:41 ` François Pinard
1999-10-05  6:45   ` Vladimir Volovich
1999-10-05 18:50     ` Christophe Cuq
1999-10-05 20:25       ` David S. Goldberg
1999-10-05 21:22         ` Christophe Cuq
1999-10-06  4:38       ` Vladimir Volovich
1999-10-06  8:29         ` Kai Großjohann
1999-10-07  0:22           ` Francisco Solsona
1999-11-06  3:13             ` Lars Magne Ingebrigtsen
1999-10-06 13:25         ` Laura Conrad
1999-10-06 17:52           ` Vladimir Volovich
  -- strict thread matches above, loose matches on Subject: below --
1997-12-20 21:10 Michael R Cook
1998-01-04  9:29 ` Lars Magne Ingebrigtsen
1998-01-04 16:08   ` Wes Hardaker
1998-01-05  4:05     ` Lars Magne Ingebrigtsen
1998-01-05 10:21       ` Kai Grossjohann
1998-01-12 22:11         ` 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).