Skip to content

Commit f909433

Browse files
committed
Merge from origin/emacs-27
448df8f Improve doc-strings of 'quit-window' and 'quit-restore-win... 7f01dfc Fix MH-E bug #470: Show buffer discards text properties f95a2b8 Fix some broken conditional forms 2872744 Fix a scoping error in tramp-sudoedit.el 6cbdd04 * lisp/autorevert.el (auto-revert-notify-handler): Fix bra... 076dd1f Fix typo in 'window_box_height'
2 parents bb2b857 + 448df8f commit f909433

File tree

17 files changed

+64
-90
lines changed

17 files changed

+64
-90
lines changed

lisp/autorevert.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,8 @@ system.")
733733
(null buffer-file-name))
734734
(auto-revert-notify-rm-watch)
735735
;; Restart the timer if it wasn't running.
736-
(unless auto-revert-timer)
737-
(auto-revert-set-timer))))
736+
(unless auto-revert-timer
737+
(auto-revert-set-timer)))))
738738

739739
;; Loop over all buffers, in order to find the intended one.
740740
(cl-dolist (buffer buffers)

lisp/cedet/ede/cpp-root.el

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -478,21 +478,6 @@ Argument COMMAND is the command to use for compiling the target."
478478
"Don't rescan this project from the sources."
479479
(message "cpp-root has nothing to rescan."))
480480

481-
;;; Quick Hack
482-
(defun ede-create-lots-of-projects-under-dir (dir projfile &rest attributes)
483-
"Create a bunch of projects under directory DIR.
484-
PROJFILE is a file name sans directory that indicates a subdirectory
485-
is a project directory.
486-
Generic ATTRIBUTES, such as :include-path can be added.
487-
Note: This needs some work."
488-
(let ((files (directory-files dir t)))
489-
(dolist (F files)
490-
(if (file-exists-p (expand-file-name projfile F))
491-
`(ede-cpp-root-project (file-name-nondirectory F)
492-
:name (file-name-nondirectory F)
493-
:file (expand-file-name projfile F)
494-
attributes)))))
495-
496481
(provide 'ede/cpp-root)
497482

498483
;; Local variables:

lisp/cedet/ede/pconf.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ don't do it. A value of nil means to just do it.")
5656
(and (eq ede-pconf-create-file-query 'ask)
5757
(not (eq ede-pconf-create-file-query 'never))
5858
(not (y-or-n-p
59-
(format "I had to create the %s file for you. Ok? " file)))
60-
(error "Quit")))))))
59+
(format "I had to create the %s file for you. Ok? "
60+
file))))
61+
(error "Quit"))))))
6162

6263

6364
(cl-defmethod ede-proj-configure-synchronize ((this ede-proj-project))

lisp/cedet/srecode/semantic.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ variable default values, and other things."
201201
(let ((tag (or srecode-semantic-selected-tag
202202
(srecode-semantic-tag-from-kill-ring))))
203203
(when (not tag)
204-
"No tag for current template. Use the semantic kill-ring.")
204+
(error "No tag for current template. Use the semantic kill-ring."))
205205
(srecode-semantic-apply-tag-to-dict
206206
(srecode-semantic-tag (semantic-tag-name tag)
207207
:prime tag)

lisp/emacs-lisp/tabulated-list.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,10 @@ Return the column number after insertion."
547547
;; Don't truncate to `width' if the next column is align-right
548548
;; and has some space left, truncate to `available-space' instead.
549549
(when (and not-last-col
550-
(> label-width available-space)
551-
(setq label (truncate-string-to-width
552-
label available-space nil nil t t)
553-
label-width available-space)))
550+
(> label-width available-space))
551+
(setq label (truncate-string-to-width
552+
label available-space nil nil t t)
553+
label-width available-space))
554554
(setq label (bidi-string-mark-left-to-right label))
555555
(when (and right-align (> width label-width))
556556
(let ((shift (- width label-width)))

lisp/filesets.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,10 +1645,10 @@ Replace <file-name> or <<file-name>> with filename."
16451645
(dolist (this args txt)
16461646
(setq txt
16471647
(concat txt
1648+
(if (equal txt "") "" " ")
16481649
(filesets-run-cmd--repl-fn
16491650
this
16501651
(lambda (this)
1651-
(if (equal txt "") "" " ")
16521652
(format "%s" this))))))))
16531653
(cmd (concat fn " " args)))
16541654
(filesets-cmd-show-result

lisp/gnus/gnus-cloud.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ Use old data if FORCE-OLDER is not nil."
243243
(when (or (not gnus-cloud-interactive)
244244
(gnus-y-or-n-p
245245
(format "%s has older different info in the cloud as of %s, update it here? "
246-
group date))))
247-
(gnus-message 2 "Installing cloud update of group %s" group)
248-
(gnus-set-info group contents)
249-
(gnus-group-update-group group)))
246+
group date)))
247+
(gnus-message 2 "Installing cloud update of group %s" group)
248+
(gnus-set-info group contents)
249+
(gnus-group-update-group group))))
250250
(gnus-error 1 "Sorry, group %s is not subscribed" group))
251251
(gnus-error 1 "Sorry, could not update newsrc for group %s (invalid data %S)"
252252
group elem))))

lisp/gnus/mml-smime.el

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,9 @@ Whether the passphrase is cached at all is controlled by
154154
(write-region (point-min) (point-max) file))
155155
(push file certfiles)
156156
(push file tmpfiles)))
157-
(if (smime-encrypt-buffer certfiles)
158-
(progn
159-
(while (setq tmp (pop tmpfiles))
160-
(delete-file tmp))
161-
t)
162-
(while (setq tmp (pop tmpfiles))
163-
(delete-file tmp))
164-
nil))
157+
(smime-encrypt-buffer certfiles)
158+
(while (setq tmp (pop tmpfiles))
159+
(delete-file tmp)))
165160
(goto-char (point-max)))
166161

167162
(defvar gnus-extract-address-components)

lisp/international/titdic-cnv.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,7 @@ To get complete usage, invoke \"emacs -batch -f batch-titdic-convert -h\"."
737737
;; method is for inputting CNS characters.
738738

739739
(defun tsang-quick-converter (dicbuf tsang-p big5-p)
740-
(let ((fulltitle (if tsang-p (if big5-p "倉頡" "倉頡")
741-
(if big5-p "簡易" "簡易")))
740+
(let ((fulltitle (if tsang-p "倉頡" "簡易"))
742741
dic)
743742
(goto-char (point-max))
744743
(if big5-p

lisp/mh-e/mh-show.el

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ Sets the current buffer to the show buffer."
221221
;; pgp.el uses this.
222222
(if (boundp 'write-contents-hooks) ;Emacs 19
223223
(kill-local-variable 'write-contents-hooks))
224+
(font-lock-mode -1)
225+
(mh-show-mode)
224226
(if formfile
225227
(mh-exec-lib-cmd-output "mhl" "-nobell" "-noclear"
226228
(if (stringp formfile)
@@ -232,7 +234,6 @@ Sets the current buffer to the show buffer."
232234
(mh-add-missing-mime-version-header)
233235
(setf (mh-buffer-data) (mh-make-buffer-data))
234236
(mh-mime-display))
235-
(mh-show-mode)
236237
;; Header cleanup
237238
(goto-char (point-min))
238239
(cond (clean-message-header
@@ -252,13 +253,11 @@ Sets the current buffer to the show buffer."
252253
(setq buffer-backed-up nil)
253254
(auto-save-mode 1)
254255
(set-mark nil)
255-
(unwind-protect
256-
(when (and mh-decode-mime-flag (not formfile))
257-
(setq buffer-read-only nil)
258-
(mh-display-smileys)
259-
(mh-display-emphasis))
260-
(setq buffer-read-only t))
256+
(when (and mh-decode-mime-flag (not formfile))
257+
(mh-display-smileys)
258+
(mh-display-emphasis))
261259
(set-buffer-modified-p nil)
260+
(setq buffer-read-only t)
262261
(setq mh-show-folder-buffer folder)
263262
(setq mode-line-buffer-identification
264263
(list (format mh-show-buffer-mode-line-buffer-id
@@ -870,7 +869,6 @@ See also `mh-folder-mode'.
870869
(easy-menu-add mh-show-folder-menu)
871870
(make-local-variable 'mh-show-folder-buffer)
872871
(buffer-disable-undo)
873-
(setq buffer-read-only t)
874872
(use-local-map mh-show-mode-map))
875873

876874

0 commit comments

Comments
 (0)