1 ; This function implements the "u" command of mhe.
2 ; It removes a delete or move mark that has been placed on a
3 ; message. To do this, we must remove the "D" or "^" flag in the header
4 ; line, and also remove the message number from the requisite "rmm"
5 ; or "file" command in the command buffer.
8 (pop-to-buffer (concat "+" mh-folder))
10 (error-message "Sorry; this folder is read-only."))
12 (goto-character (+ (dot) 3))
13 (if (= (following-char) 'D')
16 (temp-use-buffer "cmd-buffer")
20 (concat "^rmm +" mh-folder
21 " .*\\b" (&mh-get-msgnum) "\\b"))
23 (message "Can't find msg num!!!")
24 (progn (delete-previous-word)
25 (delete-previous-character)
27 (backward-word) (backward-word)
29 (concat "^rmm +" mh-folder))
32 (kill-to-end-of-line))
36 (setq buffer-is-modified 0)
39 (= (following-char) '^')
42 (temp-use-buffer "cmd-buffer")
47 "^filem -src +" mh-folder
48 " +.*\\b" (&mh-get-msgnum) "\\b"
52 (message "Can't find msg num!!!")
53 (progn (delete-previous-word)
54 (delete-previous-character)
67 (setq buffer-is-modified 0)
73 (delete-next-character)
77 (setq buffer-is-modified 0)