summaryrefslogtreecommitdiff
path: root/lisp/progmodes
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/progmodes/cc-mode.el: Add version headerStefan Monnier2018-08-191-0/+2
|
* Merge from origin/emacs-26Glenn Morris2018-08-101-1/+5
|\ | | | | | | | | | | | | | | 5afbf62 Fix emacsclient check for term.el buffer (Bug#21041) 5132a58 Improve documentation of 'set-fontset-font' cd90325 Improve documentation of M-? 155a885 Reinterpret Esperanto characters in iso-transl as iso-8859-3. a0ef733 Fix Flyspell mode when several languages are mixed in a buffer
| * Improve documentation of M-?Eli Zaretskii2018-08-071-1/+5
| | | | | | | | | | | | | | * doc/emacs/maintaining.texi (Identifier Search): * lisp/progmodes/xref.el (xref-find-references): Improve documentation of xref-find-references and xref-prompt-for-identifier. (Bug#32389)
* | Correctly indent C++ brace lists in member init lists.Alan Mackenzie2018-07-261-2/+10
| | | | | | | | | | | | * lisp/progmodes/cc-engine.el (c-guess-basic-syntax; CASE 9B, CASE 9C): Set a limit for a backward search to the ":" introducing the member init list, when there is one, rather than the enclosing "{" or nil.
* | Merge from origin/emacs-26Glenn Morris2018-07-241-3/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | f64c277 (origin/emacs-26) Let bookmark-jump override window-point (Bu... 1208aaa Omit keymap from subword-mode docstring (Bug#32212) 2b70b54 Prevent line-mode term from showing user passwords 5de4441 Check for special filenames in eshell (Bug#30724) 1b4b965 Fix indent-sexp of #s(...) (Bug#31984) 59e8533 Add save-match-data to abbreviate-file-name (Bug#32201) 47f75b1 Fix last change in editfns.c 671dc5a Fix calls to buffer modification hooks from replace-buffer-co... cc4ceed ; etc/NEWS: Remove unnecessary reference to a bug number. e0f33ea Fix Bug#32226 7308fa0 Improve doc strings of several variables in keyboard.c
| * Omit keymap from subword-mode docstring (Bug#32212)Noam Postavsky2018-07-231-3/+1
| | | | | | | | | | | | * lisp/progmodes/subword.el (subword-mode): Remove listing of subword-mode-map bindings, since it is empty as of 2014-03-23 "Merge capitalized-words-mode and subword-mode".
* | 0x%x → %#x in elisp formatsPaul Eggert2018-07-231-1/+1
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-print.el (cl-print-object): * lisp/profiler.el (profiler-format-entry): * lisp/progmodes/hideif.el (hif-evaluate-macro): Prefer %#x to 0x%x in elisp formats when formatting arbitrary integers, as it’ll produce more-readable output with negative args should we change how negative values are printed with %x.
* | Add 'font-lock-maximum-decoration' levels for PythonCharles A. Roelli2018-07-191-32/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: New entry under Python mode. * lisp/progmodes/python.el (python-font-lock-keywords-level-1) (python-font-lock-keywords-level-2) (python-font-lock-keywords-maximum-decoration): New variables based off the incumbent 'python-font-lock-keywords'. (python-font-lock-keywords): Change it to a list of the new symbols, for use in the 'car' of 'font-lock-defaults'. (python-mode): Set the 'car' of 'font-lock-defaults' to the value of 'python-font-lock-keywords', instead of the symbol 'python-font-lock-keywords'.
* | Remove menu name from emacs-lisp-mode-map (Bug#27114)Alex2018-07-171-1/+1
| | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (emacs-lisp-mode-map): Don't give a menu name to the top-level map, the menu name is only useful for the menu-map.
* | Merge from origin/emacs-26Glenn Morris2018-07-131-1/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 17ebb6e (origin/emacs-26) Use consistent function names in thread-tes... 1c86229 Fix format error in Faccept_process_output b38b91a Lessen stack consumption in recursive read1 3eb4603 Match w32 paths in grep sans --null hits (Bug#32051) 5cc7c4b Fix previous make-network-process change d6a1b69 Another documentation improvement in flyspell.el 9b49a8e Improve documentation of Flyspell 3744fda Provide feature 'threads ef9025f Save the server alias on reconnect (Bug#29657) db3874b Refer to "proper lists" instead of "true lists" 35e0305 Avoid turning on the global-minor-mode recursively 51bf4e4 Fix Bug#32085
| * Match w32 paths in grep sans --null hits (Bug#32051)Noam Postavsky2018-07-121-1/+3
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/grep.el (grep-regexp-alist): Add an optional part to match paths starting with C: (other drive letters). * test/lisp/progmodes/compile-tests.el (compile-tests--grep-regexp-testcases) (compile-tests--grep-regexp-tricky-testcases) (compile-test-grep-regexps): New tests. (compile--test-error-line): Return `compilation-message'.
* | Fix Bug#32107Filipp Gunbin2018-07-111-2/+3
| | | | | | | | | | * lisp/progmodes/sql.el (sql-buffer-live-p): Fix handling of optional connection argument. (Bug#32107)
* | Fix etc/HELLO searching in grep.elPaul Eggert2018-07-081-5/+5
| | | | | | | | | | | | | | * lisp/progmodes/grep.el (grep-compute-defaults): Search for "^Copyright", not "^English", as the latter is no longer present in etc/HELLO and the former is more likely to survive future changes to etc/HELLO (Bug#32093).
* | Merge from origin/emacs-26Glenn Morris2018-07-071-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a427de9 (origin/emacs-26) Fix bug #11732 3a04e15 Improve documentation of 'emacs-lock-mode' 9d6ca5a * lisp/imenu.el (imenu-generic-expression): Doc fix. (Bug#32... fdd7e7d Improve indexing of 'eval-defun' in ELisp manual 10af989 Fix (length CIRCULAR) documentation 271d1f7 Tramp editorials 4abf94f Clarify and improve doc strings of 'eval-last-sexp' and friends 6cfc7a7 Automate upload of Emacs manuals to gnu.org b73cde5 Fix MH-E mail composition with GNU Mailutils (SF#485) 0dce5e5 Speed up 'replace-buffer-contents' some more 00fdce0 * doc/emacs/docstyle.texi: Avoid messing up the html output. Conflicts: admin/make-tarball.txt
| * Clarify and improve doc strings of 'eval-last-sexp' and friendsEli Zaretskii2018-07-061-5/+5
| | | | | | | | | | | | * lisp/simple.el (eval-expression, eval-expression-print-format): * lisp/progmodes/elisp-mode.el (eval-last-sexp): Doc fixes. (Bug#32064)
* | New function 'xref-find-definitions-at-mouse'Tobias Gerdin2018-07-071-0/+13
| | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref-find-definitions-at-mouse): New function. (Bug32029) Copyright-paperwork-exempt: yes
* | Fix Tcl indentation in a namespaceTom Tromey2018-07-031-1/+1
| | | | | | | | | | | | | | Fixes bug#32035 * lisp/progmodes/tcl.el (tcl-proc-list): Add "namespace". * test/lisp/progmodes/tcl-tests.el (tcl-mode-namespace-indent): New test.
* | Optionally add argument description in minor mode DOC (bug#10754)John Shahid2018-07-0115-61/+9
| | | | | | | | | | | | | | | | | | | | | | Add a paragraph to minor mode's docstring documenting the mode's ARG usage if the supplied docstring doesn't already contain the word "ARG". * easy-mmode.el (easy-mmode--arg-docstring): New const. (easy-mmode--arg-docstring): New function. (define-minor-mode): Use them. Remove argument documentation from all minor modes.
* | Fix two tcl-mode defun-related bugsTom Tromey2018-06-241-6/+43
| | | | | | | | | | | | | | | | | | Fixes bug#23565 * lisp/progmodes/tcl.el (tcl-mode): Set beginning-of-defun-function and end-of-defun-function. (tcl-beginning-of-defun-function, tcl-end-of-defun-function): New defuns. * test/lisp/progmodes/tcl-tests.el: New file.
* | Properly ignore stderr in elisp Flymake backendJoão Távora2018-06-191-1/+1
| | | | | | | | | | | | | | | | Naively passing `null-device' as stderr creates a buffer named "/dev/null" instead. Pass a hidden buffer name instead. (Bug#31902). * lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Pass hidden buffer as make-process :stderr instead of null-device.
* | Minor Flymake docstring fixesJoão Távora2018-06-171-9/+13
| | | | | | | | | | | | * lisp/progmodes/flymake.el (flymake-diagnostic-functions): Clarify meaning of :region in docstring. (flymake-start): Fix broken docstring.
* | Fix off by one error in python-mode assertion (Bug#30964)Noam Postavsky2018-06-161-1/+1
| | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-nav-end-of-statement): Don't assert that string-start is strictly greater than last-string-end, because the string end is a position outside of the string and may therefore be the same as the following string's start. * test/lisp/progmodes/python-tests.el (python-nav-end-of-statement-2): New test.
* | Fix a docstringBozhidar Batsov2018-06-161-2/+1
| |
* | Fix references to RuboCop in ruby-mode.elBozhidar Batsov2018-06-161-4/+4
| |
* | Fix bug in elisp-flymake-byte-compileJoão Távora2018-06-161-3/+3
| | | | | | | | | | * lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile): Pass keyword args to make-process.
* | Fix a bug in Flymake handling of region-specific reportsJoão Távora2018-06-151-25/+28
| | | | | | | | | | | | | | | | | | | | | | The backend's diagnostic list must be updated too, not just cleared. * lisp/progmodes/flymake.el (flymake--diag): Add overlay field. (flymake--highlight-line): Return created overlay. (flymake--handle-report): Iterate the backend's diagnostics, not the overlays. Set diagnostic overlay. (flymake--run-backend): Don't clean diagnostic list here. (flymake-mode): Call delete-overlay directly.
* | Flymake and backends exchange hints abouts changed regionsJoão Távora2018-06-151-38/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/flymake.el (flymake--delete-own-overlays): Accept BEG and END. Rename from flymake-delete-own-overlays. (flymake-diagnostic-functions): Describe :region, :recent-changes in docstring. (flymake--handle-report): Accept REGION. (flymake--run-backend): Accept optional ARGS to pass to backend fn. (flymake--recent-changes): New buffer-local variable. (flymake-start): Call flymake--run-backend with recent changes. (flymake-mode): Initialize flymake--recent-changes. Call flymake--delete-own-overlays. (flymake-after-change-function): Collect recent changes. * doc/misc/flymake.texi (Backend functions): Describe :recent-changes and :region. * etc/NEWS (Flymake): Mention improvements in backend communication.
* | * lisp/progmodes/sql.el Add MariaDB support (Robert Cochran)Michael R. Mauger2018-06-111-52/+190
| | | | | | | | | | | | | | | | | | | | | | (sql-product-alist): Add MariaDB entry (sql-mariadb-program, sql-mariadb-options, sql-mariadb-login-params, sql-mode-mariadb-font-lock): New variables, aliases of the MySQL equivalents (sql-mariadb, sql-comint-mariadb): New interaction mode functions for MariaDB (sql-mode-mysql-font-lock-keywords): Updated font-lock for MySQL and MariaDB
* | Merge from emacs-26Noam Postavsky2018-06-103-9/+9
|\| | | | | | | | | | | | | | | | | | | | | 55c9bb9f3c Fix comint-get-old-input-default for output field case (Bu... 26819cd1c0 ; ChangeLog.3: Fix typo. e35a08ea4b Prevent infloop in 'delete-trailing-whitespace' * lisp/progmodes/cperl-mode.el: * lisp/progmodes/cc-engine.el: * lisp/progmodes/cc-mode.el: Fix tabs mixed with space preventing commit hook from succeeding.
* | Implement the C++11 "using" type definition.Alan Mackenzie2018-06-093-101/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cease using the long obsolete c++-template-syntax-table. * lisp/progmodes/cc-align.el (c-lineup-template-args): Cease using c++-template-syntax-table. * lisp/progmodes/cc-engine.el (c-beginning-of-inheritance-list) (c-search-decl-header-end, c-beginning-of-decl-1, c-end-of-decl-1) (c-guess-continued-construct, c-guess-basic-syntax): Cease using c++-template-syntax-table. (c-guess-basic-syntax): Add CASE 5D.6 to handle C++11's "using" type definition. * lisp/progmodes/cc-langs.el (c++-make-template-syntax-table) (c++-template-syntax-table): Remove. (c-equals-type-clause-kwds, c-equals-type-clause-key): New language constants/variables.
* | CC Mode: In brace lists, anchor an elt on its predecessor, not on first eltAlan Mackenzie2018-06-091-13/+16
| | | | | | | | | | | | | | * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): At the end, accept "." as a unary operator (which it now is in brace lists in, e.g., C Mode). (c-guess-basic-syntax): Just before CASE 9C, move back to the previous brace list entry in the block, rather than to the first one.
* | New flymake-start-on-save-buffer custom variableJoão Távora2018-06-081-2/+8
| | | | | | | | | | | | | | | | | | Fixes: bug#21419 * lisp/progmodes/flymake.el (flymake-after-save-hook): Use flymake-start-on-save-buffer. (flymake-start-on-save-buffer): New custom variable. (flymake-start-on-flymake-mode): Tweak docstring.
* | CC Mode: Fontify unbalanced quotes in unconstrained multiline strings, etc.Alan Mackenzie2018-06-081-67/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ("Unconstrained" meaning that every string is multiline, without needing such special marking as used by Pike Mode.) * lisp/progmodes/cc-mode.el (c-pps-to-string-delim): Don't process the char before BOB. (c-multiline-string-check-final-quote): New function. (c-bc-changed-stringiness): New variable. (c-before-change-check-unbalanced-strings): Add handling for unconstrained multiline strings. (c-after-change-re-mark-unbalanced-strings): Add handling for unconstrained multiline strings. Handle escaped double quotes more accurately.
* | When navigating Flymake diagnostics, consider their severityJoão Távora2018-06-051-17/+22
| | | | | | | | | | | | | | | | | | | | | | The FILTER arg of flymake-goto-next-error, a list of types, includes every diagnostic with a severity number `eq` to those types. * lisp/progmodes/flymake.el (flymake--severity): New helper. (flymake-goto-next-error, flymake-goto-prev-error): Clarify meaning of FILTER. (flymake-goto-next-error): Interpret filter as a severity filter. (flymake--mode-line-format): Simplify.
* | Obsolete Flymake's flymake-diagnostic-types-alistJoão Távora2018-06-053-97/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That varaiable was an association between symbols and properties, effecively duplicating symbol's property lists. It is simpler to just put properties on symbols. Backward compatibility to the old variable has been kept. * doc/misc/flymake.texi (Flymake error types): Don't mention flymake-diagnostic-types-alist. (Flymake error types): Rework section. (Backend functions): Refill a paragraph. (Flymake utility functions): Don't mention flymake-diagnostic-types-alist. (Proc customization variables): Don't mention flymake-diagnostic-types-alist. * etc/NEWS: Mention obsoletion of flymake-diagnostic-types-alist. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Don't use flymake-diagnostic-types-alist. * lisp/progmodes/flymake.el: Rewrite commentary. (flymake-make-diagnostic, flymake-mode, flymake-goto-next-error) (flymake-goto-prev-error): Don't mention flymake-diagnostic-types-alist in docstring. (flymake-diagnostic-types-alist): Make obsolete. (:error, :warning, :note): Put flymake-category in these symbols. (flymake-error, flymake-warning, flymake-note): Put `flymake-bitmap', not `bitmap' in these symbols. (flymake--lookup-type-property, flymake--highlight-line): Rewrite. Honor flymake-diagnostic-types-alist for backward compatibility. * lisp/progmodes/python.el (python-flymake-msg-alist): Don't mention flymake-diagnostic-types-alist.
* | Correctly filter Flymake diagnostic types shown in mode-lineJoão Távora2018-06-051-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | Thus, if a package foo has its own types foo-error and foo-warning, and if the buffer has no errors, the mode-line will correctly show `[0 0]' (zero errors and warnings) instead of `[0 0 0 0]' (zero errors, zero foo-errors, zero warnings, zero foo-warnings). * lisp/progmodes/flymake.el (flymake--mode-line-format): Coalesce diagnostic types based on the severity, not the symbol.
* | Let Flymake backends attach arbitrary data to diagnosticsJoão Távora2018-06-051-4/+9
| | | | | | | | | | | | | | | | This is easier that setting properties on diagnostics' text. * lisp/progmodes/flymake.el (flymake--diag): Add data slot. (flymake-make-diagnostic): Add DATA arg. (flymake-diagnostic-data): New accessor.
* | Update version information for Flymake package and manualJoão Távora2018-06-052-4/+4
| | | | | | | | | | | | | | | | | | | | * doc/misc/flymake.texi: Update date and version. Make myself the first author. * lisp/progmodes/flymake.el: Update Maintainer and Version fields. * lisp/progmodes/flymake-proc.el (flymake-proc--diagnostics-for-pattern): Update Maintainer and Version fields.
* | Add proper Flymake support to cc-mode.elJoão Távora2018-06-042-0/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Except for the important detail that it doesn't make temporary files, the new flymake-cc backend doesn't yet behave much differently from the old flymake-proc-legacy-flymake, i.e. it still needs a special `check-syntax' Makefile target to provide the compiler and compilation flags. However, the new infrastructure created should allow less intrusive cleverer flag guessers (yet to be written) to replace that mechanism. * lisp/progmodes/cc-mode.el (c-mode, c++-mode): Add to flymake-diagnostic-functions. * lisp/progmodes/flymake-cc.el: New file.
* | Improve buffer naming in sql.el (Bug#31446)Michael R. Mauger2018-06-021-88/+184
| |
* | Amend c-before-change-check-unbalanced-strings to handle a quote at EOB.Alan Mackenzie2018-05-311-16/+23
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Before going back a sexp from the \n marked with a string-fence syntax-table text property, check that it is indeed a \n. If not, simply delete that text property from the isolated quote, not the quote and the \n which otherwise delimit an unterminated string. Should we encounter a double quote marked with a string-fence syntax-table text property at the end of the last line, remove that property.
* | Avoid messing up buffer list when starting gud (Bug#22374)Michael Welsh Duggan2018-05-231-1/+6
| | | | | | | | | | * lisp/progmodes/gud.el (gud-common-init): Use `display-buffer' instead of `switch-to-buffer'.
* | Merge from origin/emacs-26Glenn Morris2018-05-231-3/+16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e3f00f5 (origin/emacs-26) Clarify when to use advice-add vs add-function c0f3e6b Minor formatting tweak in the Emacs manual fadf653 Update comments in Intro to Emacs Lisp 52ccb24 ; * doc/os.texi (Batch Mode): use = after --eval d65430f * etc/NEWS: Mention change in `edebug-prin1-to-string'. ef4aec1 ; * doc/lispref/hash.texi (Defining Hash): Fix typos. 2981952 Another attempt to fix sql.el b1b96d7 Update binding of 'M-.' in Intro to Emacs Lisp b239a09 Fix a typo in last change in sql.el 0d8bae5 Fix capitalization of mail headers 845fe03 Fix buffer names in sql.el a3885f5 Minor fixes in the Emacs manual 542f830 Fix a typo in rmail.texi eb0bc6f * etc/PROBLEMS: Document Bug#31305. Conflicts: doc/emacs/sending.texi etc/NEWS
| * Another attempt to fix sql.elEli Zaretskii2018-05-211-2/+7
| | | | | | | | | | * lisp/progmodes/sql.el (sql-product-interactive): Fix calculation of the SQL buffer name. (Bug#31446)
| * Fix a typo in last change in sql.elEli Zaretskii2018-05-211-1/+1
| | | | | | | | | | * lisp/progmodes/sql.el (sql-product-interactive): Use 'null', not 'zerop'. (Bug#31446)
| * Fix buffer names in sql.elEli Zaretskii2018-05-201-3/+11
| | | | | | | | | | * lisp/progmodes/sql.el (sql-product-interactive): Fix the way the buffer name is determined by prefix arg. (Bug#31446)
| * Fix filesystem littering by Flymake's legacy backendJoão Távora2018-05-121-36/+36
| | | | | | | | | | | | | | | | | | | | | | | | The Flymake legacy "proc" backend, which is active by default will try to syntax-check foo.c/foo.cpp and many other types of files, but on failing to find a suitable Makefile target, will fail. There's nothing wrong with that except that it used to leave behind the foo_flymake.c and foo_flymake.cpp auxiliary files behind, littering the filesystem. * lisp/progmodes/flymake-proc.el (flymake-proc-legacy-flymake): Call init-function inside of the unwind-protect.
* | Enhance CC Mode's fontification, etc., of unterminated strings.Alan Mackenzie2018-05-204-47/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | String delimiters, including escaped new lines, of correctly terminated strings are left in font-lock-string-face. All others get font-lock-warning-face. The latter get syntax-table text properties on the opening string delim and the "terminating EOL". Correct two miscellaneous bugs: the handling of text properties on Java Mode's generic delimiters; the handling of c-just-done-before-change. * lisp/progmodes/cc-defs.el (c-point): New position 'eoll "end of logical line". (c-characterp): New macro. * lisp/progmodes/cc-fonts.el (c-font-lock-invalid-string): Removed. (c-basic-matchers-before): Use a simple matcher in place of the form around c-font-lock-invalid-string. * lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): Add c-before-change-check-unbalanced-strings to the value for all modes except AWK Mode. Also add c-before-change-check-<>-operators to Java Mode, correcting an error in that mode's handling of generic delimiters. (c-before-font-lock-functions): Add c-after-change-re-mark-unbalanced-strings to the value for all modes except AWK Mode. (c-single-quotes-quote-strings, c-string-delims): New lang variables for future enhancements. (c-string-innards-re-alist): New lang variable. * lisp/progmodes/cc-mode.el (c-just-done-before-change): Do not set this variable when a change is the alteration of text properties. (c-basic-common-init): Set parse-sexp-lookup-properties (and the XEmacs equivalent) also for Pike Mode. (c-neutralize-CPP-line): No longer neutralize unbalanced quotes here. (c-unescaped-nls-in-string-p, c-multiline-string-start-is-being-detached) (c-pps-to-string-delim, c-before-change-check-unbalanced-strings) (c-after-change-re-mark-unbalanced-strings): New functions. (c-after-change): Fix a bug with the handling of c-just-done-before-change.
* | Give '$' punctuation syntax in make-mode (Bug#24477)Dima Kogan2018-05-151-0/+1
| | | | | | | | | | * lisp/progmodes/make-mode.el (makefile-mode-syntax-table): Set syntax of '$' to punctuation.
* | run-python: Make the buffer running python currentTino Calancha2018-05-151-4/+6
| | | | | | | | | | | | | | | | * lisp/progmodes/python.el (run-python, python-shell-make-comint): Make the buffer running the inferior python process the current buffer (Bug#31398). * test/lisp/progmodes/python-tests.el (python-tests--bug31398): Add test.