From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#16433: 24.3.50; find_newline screws up in Rmail buffers Date: Mon, 13 Jan 2014 14:37:11 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1389641892 12037 80.91.229.3 (13 Jan 2014 19:38:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 19:38:12 +0000 (UTC) To: 16433@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 13 20:38:20 2014 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 1W2nKz-0005C1-1A for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jan 2014 20:38:17 +0100 Original-Received: from localhost ([::1]:44698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2nKy-0000gk-Js for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Jan 2014 14:38:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2nKu-0000gS-73 for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:38:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2nKm-0000ed-JG for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:38:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2nKm-0000eN-FK for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:38:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W2nKl-0007MW-5o for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:38:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Jan 2014 19:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16433 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.138964184028228 (code B ref -1); Mon, 13 Jan 2014 19:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jan 2014 19:37:20 +0000 Original-Received: from localhost ([127.0.0.1]:49384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W2nK3-0007LB-Ex for submit@debbugs.gnu.org; Mon, 13 Jan 2014 14:37:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48840) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W2nK1-0007Ky-GC for submit@debbugs.gnu.org; Mon, 13 Jan 2014 14:37:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2nK0-0000O8-1g for submit@debbugs.gnu.org; Mon, 13 Jan 2014 14:37:17 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2nJz-0000O4-Ug for submit@debbugs.gnu.org; Mon, 13 Jan 2014 14:37:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2nJy-0000dc-36 for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:37:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2nJw-0000NT-PV for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:37:14 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2nJw-0000NO-M7 for bug-gnu-emacs@gnu.org; Mon, 13 Jan 2014 14:37:12 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1W2nJv-0001gS-S3; Mon, 13 Jan 2014 14:37:11 -0500 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:83422 Archived-At: mail-fetch-field gave the wrong result for the X-RMAIL-ATTRIBUTES field, perhaps because it happened to be last. It included the newline after that field in the return value, which is wrong. Setting cache-long-scans to nil in the Rmail buffer made the bug go away, so I think the problem is in the newline cache. I think it would be better to fix the underlying bug, rather than turn off the cache in Rmail mode. I suspect that the cache does not handle Rmail's changes in narrowing. However, I'm not prepared to debug it all the way myself. In GNU Emacs 24.3.50.18 (mips64el-unknown-linux-gnu, GTK+ Version 2.20.1) of 2013-12-14 on chiefs-gnewsense Bzr revision: 115526 tzz@lifelogs.com-20131214180409-n2o5017gxsjvz8as System Description: gNewSense GNU/Linux 3.0 (parkes) Configured using: `configure 'CFLAGS=-g -O0'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Change Log Minor modes in effect: bug-reference-mode: t diff-auto-refine-mode: t shell-dirtrack-mode: t gpm-mouse-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-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 abbrev-mode: t Recent input: i n g SPC g ESC DEL ESC DEL ESC DEL m a k e SPC c ESC DEL ESC DEL e l i m i n a t e SPC t h e SPC p r o b l e m SPC o f SPC h o w SPC t o SPC o r g a n i z e RET s c DEL o c i e t y . C-o SPC SPC A d v a n c e d SPC t e c h n o l o g y SPC m i g h t SPC ESC DEL c a n SPC b e SPC g o o d ; SPC A I SPC m i g h t SPC b e SPC g o o d RET d e p e n d n t DEL DEL i n g SPC o n SPC h o w SPC i t SPC ESC DEL ESC DEL ESC DEL d e DEL DEL o n SPC d e t a i l s . SPC SPC B u t SPC t h e s e SPC d o n ' t SPC e l i m i n a t e SPC t h a t SPC p r o b l e m . ESC a ESC f ESC d ESC d SPC t h a t ESC d ESC d C-e DEL SPC r e m a i n s . C-c C-c C-d x C-x b RET C-x b C h TAB RET DEL RET C-x k RET C-x b C h TAB s TAB RET C-a C-p C-p C-@ C-u C-n ESC w ESC x r e p o r t SPC e m a c s SPC b u g RE T Recent messages: Auto save file for draft message exists; consider M-x mail-recover Auto-saving...done Auto-saving...done Auto-saving...done Sending... Wrote /home/rms/outgoing/out-30 Sending...done Expunging deleted messages...done Mark set Source file `/home/rms/emacs-bzr/trunk/lisp/mail/emacsbug.el' newer than byte-compiled file Load-path shadows: /home/rms/emacs-bzr/trunk/lisp/leim/quail/lao hides /home/rms/emacs-bzr/trunk/lisp/language/lao /home/rms/emacs-bzr/trunk/lisp/leim/quail/georgian hides /home/rms/emacs-bzr/trunk/lisp/language/georgian /home/rms/emacs-bzr/trunk/lisp/leim/quail/thai hides /home/rms/emacs-bzr/trunk/lisp/language/thai /home/rms/emacs-bzr/trunk/lisp/leim/quail/ethiopic hides /home/rms/emacs-bzr/trunk/lisp/language/ethiopic /home/rms/emacs-bzr/trunk/lisp/leim/quail/japanese hides /home/rms/emacs-bzr/trunk/lisp/language/japanese /home/rms/emacs-bzr/trunk/lisp/leim/quail/cyrillic hides /home/rms/emacs-bzr/trunk/lisp/language/cyrillic /home/rms/emacs-bzr/trunk/lisp/leim/quail/indian hides /home/rms/emacs-bzr/trunk/lisp/language/indian /home/rms/emacs-bzr/trunk/lisp/leim/quail/hebrew hides /home/rms/emacs-bzr/trunk/lisp/language/hebrew /home/rms/emacs-bzr/trunk/lisp/leim/quail/greek hides /home/rms/emacs-bzr/trunk/lisp/language/greek /home/rms/emacs-bzr/trunk/lisp/leim/quail/czech hides /home/rms/emacs-bzr/trunk/lisp/language/czech /home/rms/emacs-bzr/trunk/lisp/leim/quail/slovak hides /home/rms/emacs-bzr/trunk/lisp/language/slovak /home/rms/emacs-bzr/trunk/lisp/leim/quail/tibetan hides /home/rms/emacs-bzr/trunk/lisp/language/tibetan Features: (shadow emacsbug bug-reference cc-langs cl cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs smerge-mode whitespace log-view find-func iso-transl mule-util cal-move cal-menu calendar cal-loaddefs nroff-mode goto-addr view disp-table enriched conf-mode ffap thingatpt url-parse auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util password-cache url-vars noutline outline vc-bzr dcl-mode tempo tabify imenu man jka-compr debug compare-w ispell epa-mail quail rmailsum diff-mode log-edit easy-mmode pcvs-util add-log vc vc-dispatcher dired-aux help-mode misearch multi-isearch wid-edit cl-loaddefs cl-lib rmailout epa derived epg epg-config shell pcomplete grep compile comint ansi-color dabbrev etags ring parse-time vc-cvs sgml-mode mailalias qp rmailmm message sendmail format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 dired t-mouse package rmailedit rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date paren cus-start cus-load advice help-fns 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 system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call.