#157 mh-show-unquote-From fails (read-only buffer)

mh-e-8.0
closed-fixed
Satyaki Das
None
5
2013-02-23
2004-12-22
No

On an email that has been processed by procmail to
escape a line starting with From, mh-show-unquote-From
breaks because it tries to edit a buffer that is read-only.

Here's my patch, that seems to work, but note that I am
not so emacs-lisp-fluent.

diff -u -r1.340 mh-utils.el
--- mh-utils.el 12 Aug 2004 04:28:29 -0000 1.340
+++ mh-utils.el 22 Dec 2004 16:50:44 -0000
@@ -1676,6 +1676,8 @@
(let ((modified (buffer-modified-p))
(case-fold-search nil))
(goto-char (mh-mail-header-end))
+ ;; Arjen:
+ (setq buffer-read-only nil)
(while (re-search-forward "^>From" nil t)
(replace-match "From"))
(set-buffer-modified-p modified))))

Cheers,

Arjen

BTW, there's also a typo 'completiions-buffer' in
mh-comp.el

Discussion

  • Satyaki Das
    Satyaki Das
    2004-12-25

    • milestone: 328640 --> 424091
    • assigned_to: nobody --> satyaki
    • status: open --> closed-fixed
     
  • Satyaki Das
    Satyaki Das
    2004-12-25

    Logged In: YES
    user_id=533007

    Both problems have been fixed.

    Thanks,
    Satyaki

     
  • Bill Wohler
    Bill Wohler
    2005-10-15

    • milestone: 424091 --> mh-e-8.0
     
  • Bill Wohler
    Bill Wohler
    2013-02-23

    • labels: General -->