diff options
| author | Stefan Monnier | 2023-03-27 17:16:58 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-03-27 17:16:58 -0400 |
| commit | 616b22b5b95ce442ee343a18bfbf9ef18d8bb04f (patch) | |
| tree | 5fd048b91fc3b4f65e47c6a838306af01942abdd /lisp | |
| parent | cd62dc0dd2d371f45e6e0b4f031b7deb674edf39 (diff) | |
| parent | 8f42db010d15efa21fb9007e61daedbe1e2dfa53 (diff) | |
| download | emacs-616b22b5b95ce442ee343a18bfbf9ef18d8bb04f.tar.gz emacs-616b22b5b95ce442ee343a18bfbf9ef18d8bb04f.zip | |
Merge from origin/emacs-29
8f42db010d1 Improve indenting "case" in Python
c4d490490dc ; * test/src/fns-tests.el: Fix last change
875e77a66a6 * test/infra/Dockerfile.emba (emacs-native-comp): Add zli...
64a2b0d36fe Fix failure of fns-tests-collate-strings on Cygwin
90fc6b987ad * lisp/savehist.el (savehist-save): Preserve shared struc...
08fbc133756 Adapt Tramp manual
accb3871668 Fix system time sampling on MS-Windows
33d436eefa1 Fix treesit_ensure_parsed (bug#62333)
d93a439846f * lisp/help-fns.el (find-lisp-object-file-name): Fix bug#...
be8147c53f9 Improve "Bugs" in the Emacs manual
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/help-fns.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 9 | ||||
| -rw-r--r-- | lisp/savehist.el | 5 |
3 files changed, 12 insertions, 4 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 6dbdb565b1b..a939cc0b509 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -437,7 +437,7 @@ the C sources, too." | |||
| 437 | (setq file-name | 437 | (setq file-name |
| 438 | (locate-file file-name load-path '(".el" ".elc") 'readable))) | 438 | (locate-file file-name load-path '(".el" ".elc") 'readable))) |
| 439 | ((and (stringp file-name) | 439 | ((and (stringp file-name) |
| 440 | (string-match "[.]*loaddefs.el\\'" file-name)) | 440 | (string-match "[.]*loaddefs.elc?\\'" file-name)) |
| 441 | ;; An autoloaded variable or face. Visit loaddefs.el in a buffer | 441 | ;; An autoloaded variable or face. Visit loaddefs.el in a buffer |
| 442 | ;; and try to extract the defining file. The following form is | 442 | ;; and try to extract the defining file. The following form is |
| 443 | ;; from `describe-function-1' and `describe-variable'. | 443 | ;; from `describe-function-1' and `describe-variable'. |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 2fe88323c35..bbabce80b4d 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -5854,7 +5854,14 @@ statement." | |||
| 5854 | (save-excursion | 5854 | (save-excursion |
| 5855 | (python-nav-beginning-of-statement) | 5855 | (python-nav-beginning-of-statement) |
| 5856 | (when (and (not (python-syntax-context-type)) | 5856 | (when (and (not (python-syntax-context-type)) |
| 5857 | (looking-at (python-rx dedenter))) | 5857 | (looking-at (python-rx dedenter)) |
| 5858 | ;; Exclude the first "case" in the block. | ||
| 5859 | (not (and (string= (match-string-no-properties 0) | ||
| 5860 | "case") | ||
| 5861 | (save-excursion | ||
| 5862 | (back-to-indentation) | ||
| 5863 | (python-util-forward-comment -1) | ||
| 5864 | (equal (char-before) ?:))))) | ||
| 5858 | (point)))) | 5865 | (point)))) |
| 5859 | 5866 | ||
| 5860 | (defun python-info-line-ends-backslash-p (&optional line-number) | 5867 | (defun python-info-line-ends-backslash-p (&optional line-number) |
diff --git a/lisp/savehist.el b/lisp/savehist.el index b532668f8a4..ea8968c771b 100644 --- a/lisp/savehist.el +++ b/lisp/savehist.el | |||
| @@ -232,8 +232,9 @@ If AUTO-SAVE is non-nil, compare the saved contents to the one last saved, | |||
| 232 | savehist-coding-system)) | 232 | savehist-coding-system)) |
| 233 | (run-hooks 'savehist-save-hook) | 233 | (run-hooks 'savehist-save-hook) |
| 234 | (let ((print-length nil) | 234 | (let ((print-length nil) |
| 235 | (print-level nil) | 235 | (print-level nil) |
| 236 | (print-quoted t)) | 236 | (print-quoted t) |
| 237 | (print-circle t)) | ||
| 237 | ;; Save the minibuffer histories, along with the value of | 238 | ;; Save the minibuffer histories, along with the value of |
| 238 | ;; savehist-minibuffer-history-variables itself. | 239 | ;; savehist-minibuffer-history-variables itself. |
| 239 | (when savehist-save-minibuffer-history | 240 | (when savehist-save-minibuffer-history |