From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Graner Newsgroups: gmane.emacs.bugs Subject: bug#20318: 24.5; %N in message-citation-line-format Date: Mon, 13 Apr 2015 03:22:07 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1428933436 24375 80.91.229.3 (13 Apr 2015 13:57:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 13:57:16 +0000 (UTC) To: 20318@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 13 15:57:01 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YherE-0005UQ-3H for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 15:57:00 +0200 Original-Received: from localhost ([::1]:51917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YherD-0005hM-HM for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 09:56:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YheoS-0001lI-US for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 09:54:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YheoM-0002aV-Jo for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 09:54:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YheoM-0002aM-HL for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 09:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YheoM-00038C-0c for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 09:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Graner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2015 13:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20318 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142893322412000 (code B ref -1); Mon, 13 Apr 2015 13:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Apr 2015 13:53:44 +0000 Original-Received: from localhost ([127.0.0.1]:54900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yheo2-00037T-Lo for submit@debbugs.gnu.org; Mon, 13 Apr 2015 09:53:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42497) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YhY57-0007hK-UR for submit@debbugs.gnu.org; Mon, 13 Apr 2015 02:42:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhY51-0005CC-4K for submit@debbugs.gnu.org; Mon, 13 Apr 2015 02:42:48 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhY51-0005C6-0l for submit@debbugs.gnu.org; Mon, 13 Apr 2015 02:42:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhY4z-0003M1-Nu for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 02:42:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhY4v-0005BQ-OL for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 02:42:45 -0400 Original-Received: from smtp22.services.sfr.fr ([93.17.128.13]:28511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhY4v-0005B9-FE for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2015 02:42:41 -0400 Original-Received: from filter.sfr.fr (localhost [86.67.124.160]) by msfrf2216.sfr.fr (SMTP Server) with ESMTP id 70255700014F; Mon, 13 Apr 2015 08:42:39 +0200 (CEST) Authentication-Results: sfrmc.priv.atos.fr; dkim=none (no signature); dkim-adsp=none (no policy) header.from=nicolas.graner@u-psud.fr Original-Received: from packard-a156abe (160.124.67.86.rev.sfr.net [86.67.124.160]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by msfrf2216.sfr.fr (SMTP Server) with ESMTP id 801C27000042; Mon, 13 Apr 2015 08:42:38 +0200 (CEST) X-SFR-UUID: 20150413064238524.801C27000042@msfrf2216.sfr.fr X-Antivirus: avast! (VPS 141003-0, 03/10/2014), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Mon, 13 Apr 2015 09:53:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101471 Archived-At: The %N specification in message-citation-line-format doesn't work when replying to email while Gnus is not loader. When a real name and an email address are present in the original message, it displays both, instead of just the real name. This doesn't happen if Gnus is loaded. Example starting from emacs -Q: (setq message-citation-line-function 'message-insert-formatted-citation-lin= e message-citation-line-format "%N writes:") M-x rmail r C-c C-y The first unread message in my mailbox had: From: Herv=C3=A9 Le Tellier The citation line inserted in the reply was: Herv=C3=A9 Le Tellier writes: but it should be: Herv=C3=A9 Le Tellier writes: The same happens when replying to any message which has both a real name and an address in its "From" header. Here is a patch that works for me: *** /usr/share/emacs/24.5/lisp/gnus/message.el.old 2015-04-02 09:23:06.0000= 00000 +0200 --- /usr/share/emacs/24.5/lisp/gnus/message.el.new 2015-04-13 00:51:08.4218= 75000 +0200 *************** (defun message-insert-formatted-citation *** 3923,3929 **** (unless from (setq from (mail-header-from message-reply-headers))) (let* ((data (condition-case () ! (funcall (if (boundp gnus-extract-address-components) gnus-extract-address-components 'mail-extract-address-components) from) --- 3923,3929 ---- (unless from (setq from (mail-header-from message-reply-headers))) (let* ((data (condition-case () ! (funcall (if (boundp 'gnus-extract-address-components) gnus-extract-address-components 'mail-extract-address-components) from) Hope this helps. Nicolas Graner -------------------------------------------------- In GNU Emacs 24.5.1 (i686-pc-cygwin, GTK+ Version 3.14.10) of 2015-04-10 on desktop-new Configured using: `configure --srcdir=3D/home/kbrown/src/cygemacs/emacs-24.5-1.i686/src/emacs-24.5 --prefix=3D/usr --exec-prefix=3D/usr --localstatedir=3D/var --sysconfdir=3D= /etc --docdir=3D/usr/share/doc/emacs --htmldir=3D/usr/share/doc/emacs/html -C --without-gconf --without-gsettings 'CFLAGS=3D-ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=3D/home/kbrown/src/cygemacs/emacs-24.5-1.i686/build=3D/u= sr/src/debug/emacs-24.5-1 -fdebug-prefix-map=3D/home/kbrown/src/cygemacs/emacs-24.5-1.i686/src/emacs-= 24.5=3D/usr/src/debug/emacs-24.5-1' CPPFLAGS=3D LDFLAGS=3D' Important settings: value of $LANG: fr_FR locale-coding-system: iso-latin-1-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type M-x about-emacs. Load-path shadows: ~/bin/Emacs/solitaire hides /usr/share/emacs/24.5/lisp/play/solitaire ~/bin/Emacs/undigest hides /usr/share/emacs/24.5/lisp/mail/undigest Features: (shadow sort mail-extr emacsbug message derived format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev nnheader gnus-util gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date cl-macs cl gv cl-loaddefs cl-lib tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 8 104300 11252) (symbols 24 18757 0) (miscs 20 31 175) (strings 16 12213 3348) (string-bytes 1 342184) (vectors 8 7718) (vector-slots 4 349875 3650) (floats 8 64 265) (intervals 28 570 797) (buffers 512 11)) --- Ce courrier =E9lectronique ne contient aucun virus ou logiciel malveillant = parce que la protection avast! Antivirus est active. http://www.avast.com