Subject: 23.1.90; Get rid of Rmail's constant swapping of text between rmail-buffer and rmail-view-buffer

From: Eli Zaretskii <[email-masked]>
Date: Fri, 11 Dec 2009 14:09:22 +0200

Rmail calls buffer-swap-text too much.  Related discussions concluded
that this is unnecessary and introduces potential bugs and maintenance
headaches.  See this message and the rest of its thread for the
related discussions:

  http://lists.gnu.org/archive/html/bug-gnu-emacs/2009-12/msg00304.html

In GNU Emacs 23.1.90.1 (i386-mingw-nt5.1.2600)
 of 2009-12-10 on HOME-C4E4A596F7
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1255
  default enable-multibyte-characters: t

Major mode: RMAIL

Minor modes in effect:
  desktop-save-mode: t
  show-paren-mode: t
  display-time-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
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  line-number-mode: t

Recent input:
<down> <down> <C-right> <C-right> <C-right> <C-right> 
<C-right> <C-right> <C-right> <C-right> <C-left> <C-left> 
<C-right> <backspace> i s M-d M-q <down> <down> <down> 
<down> <down> <down> <down> <down> <up> <C-left> <C-left> 
<C-left> <C-left> _ <C-right> _ C-z C-z C-z C-z C-z 
C-z C-z C-z C-z C-z C-z <down> C-z C-z C-z C-z C-z 
C-z C-z C-z <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <C-left> <C-left> <C-left> 
o n SPC W n d o w s SPC <C-left> <right> i M-q <down> 
<down> C-z C-z C-z C-z C-z C-z C-z <C-down> <C-down> 
<C-down> C-z C-z C-z C-z C-z C-z C-z <C-home> C-c C-s 
<switch-frame> <M-end> C-x C-f <left> <right> <left> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<M-right> f i l <tab> . c <return> C-s d o s <up> <up> 
<up> <prior> <prior> <next> <next> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> C-x C-f C h a m <tab> <backspace> 
<tab> <return> <M-home> <up> <up> <up> <up> <up> <up> 
C-SPC <down> <down> <down> <down> <down> M-w <M-end> 
C-y C-x b <return> <C-home> <M-home> <up> <up> <up> 
<C-right> <C-right> <C-right> <C-left> <left> C-SPC 
<down> <down> M-w <M-end> C-y <up> <left> <delete> 
<delete> SPC <down> C-x C-s C-x # C-x k <return> C-x 
C-s C-x k <return> <M-home> C-x k <return> <M-end> 
C-x b I N <tab> <return> <C-prior> <C-prior> <C-prior> 
<C-prior> <C-prior> <C-prior> <C-prior> <C-prior> <M-home> 
C-x b <down> <up> <up> <M-right> <tab> - <tab> <return> 
<C-next> <C-next> <C-next> <C-next> <M-end> o <return> 
p p o <return> p p p p p p p p p p p p p p p p p p 
n p p p p n n n n p p p p p p p p p p p <next> M-x 
r e p o r t <tab> <return>

Recent messages:
Mark saved where search started
Mark activated
Mark set
When done with a buffer, type C-x #
Mark set [3 times]
Saving file c:/Documents and Settings/Zaretzky/Local Settings/Temp/2...
Wrote c:/Documents and Settings/Zaretzky/Local Settings/Temp/2
Saving file d:/gnu/make/ChangeLog...
Wrote d:/gnu/make/ChangeLog
Added to d:/usr/eli/rmail/PORTS.rmail [2 times]

Load-path shadows:
None found.

Features:
(shadow emacsbug add-log compile multi-isearch dabbrev auth-source
message ecomplete rfc822 mml mml-sec password-cache mm-decode
mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp
ietf-drums nnheader gnus-util netrc mm-util mail-prsvr gmm-utils
wid-edit mailheader canlock sha1 hex-util hashcash smtpmail mailalias
mailabbrev sendmail rmailout pp help-mode view conf-mode newcomment
ld-script sh-script executable dired-x dired-aux dired tcl comint ring
generic nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid
rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util
rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph
nxml-enc xmltok sgml-mode arc-mode archive-mode jka-compr make-mode
flyspell ispell org-wl org-w3m org-vm org-rmail org-mhe org-mew
org-irc org-jsinfo org-infojs org-html org-exp org-exp-blocks
org-agenda org-info org-gnus org-bibtex org-bbdb org byte-opt bytecomp
byte-compile advice help-fns advice-preload org-footnote org-src
org-list org-faces org-compat org-macs time-date noutline outline
easy-mmode cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs regexp-opt info easymenu parse-time vc-cvs
rmailsum rmail mail-utils desktop server filecache saveplace generic-x
paren battery time tooltip ediff-hook vc-hooks lisp-float-type mwheel
dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image
fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mldrag 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 loaddefs button minibuffer faces
cus-face text-properties overlay md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
multi-tty emacs)