From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: Mail mode vs message mode Date: Tue, 17 Nov 2009 22:10:08 +0100 Message-ID: <87iqd8rh73.fsf@marauder.physik.uni-ulm.de> References: <87639beb4n.fsf@stupidchicken.com> <876399p00j.fsf@stupidchicken.com> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258492299 301 80.91.229.12 (17 Nov 2009 21:11:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 21:11:39 +0000 (UTC) Cc: emacs-devel@gnu.org, ding@gnus.org To: Chong Yidong Original-X-From: ding-owner+M17604@lists.math.uh.edu Tue Nov 17 22:11:31 2009 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.50) id 1NAVKk-0006Pr-BO for ding-account@gmane.org; Tue, 17 Nov 2009 22:11:30 +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 1NAVJg-0001aq-TM; Tue, 17 Nov 2009 15:10:24 -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 1NAVJd-0001aa-Sa for ding@lists.math.uh.edu; Tue, 17 Nov 2009 15:10:21 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1NAVJa-0002vq-TQ for ding@lists.math.uh.edu; Tue, 17 Nov 2009 15:10:21 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1NAVJa-0000oP-00 for ; Tue, 17 Nov 2009 22:10:18 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id nAHLAB9j025699; Tue, 17 Nov 2009 22:10:11 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 1A45013B20; Tue, 17 Nov 2009 22:10:11 +0100 (CET) X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody In-Reply-To: <876399p00j.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 17 Nov 2009 11:51:56 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-x.dcc-servers-Metrics: poseidon 104; Body=3 Fuz1=3 Fuz2=3 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69199 gmane.emacs.devel:117125 Archived-At: [ You probably meant ding@gnus not ding@gnu; Quote not trimmed. ] On Tue, Nov 17 2009, Chong Yidong wrote: > Chong Yidong writes: > >> 1. Variables that are straightfowardly duplicated by message-mode. >> These variables should be either made into variable aliases (assuming >> no one would ever want to have different behaviors between >> message-mode and mail-mode): >> >> mail-from-style message-from-style >> mail-envelope-from message-envelope-from >> mail-interactive message-interactive >> mail-yank-prefix message-yank-prefix >> mail-signature message-signature >> mail-signature-file message-signature-file >> mail-default-headers message-default-headers >> mail-indentation-spaces message-indentation-spaces No difference here for me (Emacs 23.1). >> mail-mailer-swallows-blank-line message-mailer-swallows-blank-line The latter is a defcustom. Any other difference? > After thinking about this some more, I think using defvaralias is a bad > idea. > > Would anyone object to setting the default values for the message-mode > variables to the corresponding mail-mode variables? e.g., > > (defcustom message-from-style > (if (featurep 'xemacs) 'angles mail-from-style) > ....) I don't like this. The current default value of message-from-style tries to avoid quoting if possible and therefore is preferable to `angles'. BTW, message-mode doesn't handle the value `system-default'. I'd certainly object to change the default `message-yank-prefix' to nil! If I understand the correctly, the goal is not to provide full compatibility with mail-mode but to have a default mail composition mode that handles MIME correctly. So how about simply providing a function, say `message-initalize-from-mail-mode' that initializes message variables and hooks from the corresponding mail-mode ones? Draft (we need to check if all possible values of mail-foo make sense for message-foo): (defun message-initalize-from-mail-mode () (setq message-from-style mail-from-style message-envelope-from mail-envelope-from message-interactive mail-interactive message-yank-prefix mail-yank-prefix message-signature mail-signature message-signature-file mail-signature-file message-default-headers mail-default-headers message-indentation-spaces mail-indentation-spaces message-mailer-swallows-blank-line mail-mailer-swallows-blank-line) (setq ;; hooks message-mode-hook mail-mode-hook message-citation-hook mail-citation-hook message-setup-hook mail-setup-hook message-send-hook mail-send-hook)) >> 2. Hook variables. I am not sure what to do about this, but the switch >> has bitten at least one use (Bug#3942). Maybe we should make these >> variable aliases too: >> >> mail-mode-hook message-mode-hook >> mail-citation-hook message-citation-hook >> mail-setup-hook message-setup-hook >> mail-send-hook message-send-hook > > Any objections to adding a new user option message-run-mail-hooks, > which, if non-nil, causes message mode to run the corresponding mail > hooks as well? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/