Merge remote-tracking branch 'origin/master' into feature/android

This commit is contained in:
Po Lu 2023-01-26 22:19:31 +08:00
commit 65dddd7c99
3 changed files with 14 additions and 11 deletions

View file

@ -4582,6 +4582,9 @@ Argument MIME is non-nil if this is a mime message."
(current-buffer))))
(error nil))
;; Decode any base64-encoded material in what we just decrypted.
(rmail-epa-decode armor-start after-end)
(list armor-start (- (point-max) after-end) mime
armor-end-regexp
(buffer-substring armor-start (- (point-max) after-end)))))
@ -4624,9 +4627,6 @@ Argument MIME is non-nil if this is a mime message."
"> ")
(push (rmail-epa-decrypt-1 mime) decrypts))))
;; Decode any base64-encoded mime sections.
(rmail-epa-decode)
(when (and decrypts (rmail-buffers-swapped-p))
(when (y-or-n-p "Replace the original message? ")
(when (eq major-mode 'rmail-mode)
@ -4691,12 +4691,14 @@ Argument MIME is non-nil if this is a mime message."
(unless decrypts
(error "Nothing to decrypt")))))
;; Decode all base64-encoded mime sections, so that this change
;; is made in the Rmail file, not just in the viewing buffer.
(defun rmail-epa-decode ()
;; Decode all base64-encoded mime sections from BEG to (Z - BACK-FROM-END),
;; so that we save the decoding permanently in the Rmail buffer
;; if we permanently save the decryption.
(defun rmail-epa-decode (beg back-from-end)
(save-excursion
(goto-char (point-min))
(while (re-search-forward "--------------[0-9a-zA-Z]+\n" nil t)
(goto-char beg)
(while (re-search-forward "--------------[0-9a-zA-Z]+\n"
(- (point-max) back-from-end) t)
;; The ending delimiter is a start delimiter if another section follows.
;; Otherwise it is an end delimiter, with -- affixed.
(let ((delim (concat (substring (match-string 0) 0 -1) "\\(\\|--\\)\n")))

View file

@ -568,7 +568,8 @@ This can be used from `xref-after-jump-hook', for instance.")
(dolist (l (list (car history) (cdr history)))
(dolist (m l)
(set-marker m nil nil)))
(setq history (cons nil nil)))
(setcar history nil)
(setcdr history nil))
nil)
;;;###autoload

View file

@ -121,9 +121,9 @@ typedef struct _RTL_HEAP_PARAMETERS {
# define DUMPED_HEAP_SIZE 10
#else
# if defined _WIN64 || defined WIDE_EMACS_INT
# define DUMPED_HEAP_SIZE (23*1024*1024)
# define DUMPED_HEAP_SIZE (28*1024*1024)
# else
# define DUMPED_HEAP_SIZE (13*1024*1024)
# define DUMPED_HEAP_SIZE (18*1024*1024)
# endif
#endif