From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76331 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.gnus.general Subject: Re: Position of point in reply-with-original Date: Fri, 04 Feb 2011 10:38:13 +0100 Message-ID: <87zkqc3zsq.fsf@gmail.com> References: <87tyglxjja.fsf@gmail.com> <87r5bpgk6p.fsf@ericabrahamsen.net> <87k4hhniw6.fsf@gmail.com> <87ipx1yqhz.fsf@topper.koldfront.dk> <87pqr8946o.fsf@gmail.com> <87pqr8py5g.fsf@topper.koldfront.dk> <87ipx07nws.fsf@gmail.com> <87d3n8loqz.fsf@lifelogs.com> <87vd10kx1a.fsf@gnus.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296812326 22243 80.91.229.12 (4 Feb 2011 09:38:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Feb 2011 09:38:46 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M24683@lists.math.uh.edu Fri Feb 04 10:38:42 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PlI7m-0005Tc-Bg for ding-account@gmane.org; Fri, 04 Feb 2011 10:38:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PlI7d-0001Se-Up; Fri, 04 Feb 2011 03:38:33 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PlI7c-0001SS-9n for ding@lists.math.uh.edu; Fri, 04 Feb 2011 03:38:32 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PlI7b-0004b6-DF for ding@lists.math.uh.edu; Fri, 04 Feb 2011 03:38:32 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PlI7a-0003eg-MO for ding@gnus.org; Fri, 04 Feb 2011 10:38:30 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PlI7a-0005Mm-Cy for ding@gnus.org; Fri, 04 Feb 2011 10:38:30 +0100 Original-Received: from ney92-7-78-233-218-202.fbx.proxad.net ([78.233.218.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Feb 2011 10:38:30 +0100 Original-Received: from antoine.levitt by ney92-7-78-233-218-202.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Feb 2011 10:38:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ney92-7-78-233-218-202.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ytIsYK2/CtKQ166eJGsYP22GdEI= X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76331 Archived-At: 04/02/11 09:45, Lars Ingebrigtsen > Ted Zlatanov writes: > >> I agree with the defvar -> defcustom change. >> >> I think the top-posting setup should be a little more involved, >> mirroring Outlook somewhat. This is what I use (I got help from the >> Gnus mailing list when I set it up): >> >> ;; outlooky >> (defun sc-style-outlook () >> (interactive) >> (setq >> message-cite-function 'message-cite-original >> message-citation-line-function 'message-insert-formatted-citation-line >> message-cite-reply-above 'is-evil >> message-yank-prefix "" >> message-yank-cited-prefix "" >> message-yank-empty-prefix "" >> message-citation-line-format >> "\n\n-----------------------\nOn %a, %b %d %Y, %N wrote:\n")) > > Given that this much is needed to get a satisfactory top posting format, > I don't think making the defvar->defcustom change would help much. > > Perhaps there should be a new meta-ish variable, say > > (defcustom message-cite-style nil > "The overall style to be used when yanking cited text. > Values are either `traditional' (cited text first), > `top-post' (cited text at the bottom), or nil (don't override the > individual message variables)." > :version "24.1" > :group 'message-various > :type '(choice (const :tag "None" :value nil) > (const :tag "Traditional" :value traditional) > (const :tag "Top-post" :value top-post))) > > This would bind the variables you mention above if set to `traditional' > or `top-post'. I don't necessarily agree. My ideal setup would be just message-cite-reply-above to t. The other variables are a matter of preference, and shouldn't be tied to the position of point after a reply. Then there could be "presets" to mimic the behaviour of various other clients. I'm not sure they should be as variables, that'd be confusing as to the behaviour of setting both the preset and the individual setting. What about functions that set the variables in a buffer-local fashion and would be triggered by gnus-posting-styles?