Article View: gnu.emacs.vm.bug
Article #912whitespace in subject in summary
From: Jeff Dwork
Date: Wed, 20 Nov 2002 00:44
Date: Wed, 20 Nov 2002 00:44
42 lines
2009 bytes
2009 bytes
When I get an email with a long subject line, the line is split by
inserting \n or \n\t. VM 7.07 replaces the \n with a space and doesn't
touch the \t for the summary display. So I see annoying gaps in the
subject.
I made this change in vm-summary.el and now I'm happy.
*** /user/dwork/elisp21/vm-7.07/vm-7.07/vm-summary.el~ Tue Apr 23
14:57:57 2002
--- /user/dwork/elisp21/vm-7.07/vm-7.07/vm-summary.el Tue Nov 19
15:04:50 2002
***************
*** 1058,1067 ****
(or (vm-subject-of m)
(vm-set-subject-of
m
! (let ((subject (or (vm-get-header-contents m "Subject:" " ")
""))
! (i nil))
! (while (setq i (string-match "\n" subject i))
! (aset subject i ?\ ))
subject ))))
(defun vm-su-summary (m)
--- 1058,1066 ----
(or (vm-subject-of m)
(vm-set-subject-of
m
! (let ((subject (or (vm-get-header-contents m "Subject:" " ")
"")))
! (while (string-match "\n\t*" subject)
! (setq subject (replace-match "" nil t subject)))
subject ))))
(defun vm-su-summary (m)
Diff finished at Tue Nov 19 15:05:08
Thanks for VM - I love it.
Jeff Dwork
<jeff.dwork@amd.com>
Technical Details
Message-ID:
<4d2b5f0d.0211191644.77dd5a9c@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6829,8a51f5d29b089c3a,start X-Google-Attributes: gidf6829,public X-Google-ArrivalTime: 2002-11-19 16:44:20 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: jeff.dwork@amd.com (Jeff Dwork) Newsgroups: gnu.emacs.vm.bug Subject: whitespace in subject in summary Date: 19 Nov 2002 16:44:19 -0800 Organization: http://groups.google.com/ Lines: 42 Message-ID: <4d2b5f0d.0211191644.77dd5a9c@posting.google.com> NNTP-Posting-Host: 139.95.250.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1037753059 18287 127.0.0.1 (20 Nov 2002 00:44:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 20 Nov 2002 00:44:19 GMT