Merge from savannah/emacs-29
d72a4ed65c
Fix 'with-sqlite-transaction' when BODY failsa7b3c92373
; * doc/emacs/cmdargs.texi (Initial Options): Fix last ch...fd76a80864
; Mention that -x and --script ignore file-localse0469ddb9d
; * doc/emacs/search.texi (Special Isearch): More accurat...e521669fb3
Fix wording in ELisp Intro manualda946ca692
Add missing python-ts-mode keyword (bug#67015)0128495afd
Fix string-pixel-width with global setting of display-lin... # Conflicts: # etc/NEWS
This commit is contained in:
commit
9db8c349f0
8 changed files with 43 additions and 19 deletions
|
@ -341,10 +341,9 @@ This construct can only be used with lexical binding."
|
|||
;; Keeping a work buffer around is more efficient than creating a
|
||||
;; new temporary buffer.
|
||||
(with-current-buffer (get-buffer-create " *string-pixel-width*")
|
||||
;; If `display-line-numbers-mode' is enabled in internal
|
||||
;; buffers, it breaks width calculation, so disable it (bug#59311)
|
||||
(when (bound-and-true-p display-line-numbers-mode)
|
||||
(display-line-numbers-mode -1))
|
||||
;; If `display-line-numbers' is enabled in internal buffers
|
||||
;; (e.g. globally), it breaks width calculation (bug#59311)
|
||||
(setq-local display-line-numbers nil)
|
||||
(delete-region (point-min) (point-max))
|
||||
;; Disable line-prefix and wrap-prefix, for the same reason.
|
||||
(setq line-prefix nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue