summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix underscores in argument names in ns-winLars Ingebrigtsen2022-08-191-4/+4
| | | | | | | | | | * lisp/term/ns-win.el (x-file-dialog): Don't use underscores in argument names.
* | python.el: Add completion-predicate symbol property to commandsAugusto Stoffel2022-08-191-7/+61
| | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el: Add a completion-predicate property to most commands defined in this file; some are only useful in python-mode, others in inferior-python mode as well. (Bug#53913) (python-skeleton-define, python-define-auxiliary-skeleton): Add appropriate completion-predicate properties. (python--completion-predicate): New function.
* | Add new functions eol and bolLars Ingebrigtsen2022-08-191-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/positions.texi (Text Lines): Document them * lisp/emacs-lisp/shortdoc.el: Mention them, and also the buffer/line predicates. * src/editfns.c (bol): New function. (Fbol): New defun. (Fline_beginning_position): Use `bol'. (eol): New function. (Feol): New defun. (Fline_end_position): Use `eol'.
* | python-mode: Remove special outline-heading-end-regexpAugusto Stoffel2022-08-191-1/+0
| | | | | | | | | | | | | | | | It doesn't work well with the new type annotation syntax introduced in Python 3.5. * lisp/progmodes/python.el (python-mode): Remove buffer-local setting of outline-heading-end-regexp. (Bug#53913)
* | python.el: Adjustments to Flymake backendAugusto Stoffel2022-08-191-5/+9
| | | | | | | | | | | | | | * lisp/progmodes/python (python-flymake-command): Advertise possiblity to use pylint. (python-flymake-command-output-pattern): Make compatible with recent versions of pyflakes. (Bug#53913)
* | python-check-command: Don't use absolute file namesAugusto Stoffel2022-08-191-4/+5
| | | | | | | | | | | | | | | | Absolute executable file names are incompatible with Tramp and packages that switch between virtualenvs. * lisp/progmodes/python.el (python-check-command): Don't use absolute file names. (Bug#53913)
* | Fix mis-spelling of c-awk-old-ByLL and really make it buffer-localPaul A. Patience2022-08-191-1/+1
| | | | | | | | | | | | | | * lisp/progmodes/cc-awk.el (c-awk-old-ByLL): Make the correct variable buffer-local (bug#57294). Copyright-paperwork-exempt: yes
* | * lisp/edmacro.el (edmacro-sanitize-for-string): Fix condition.Mattias Engdegård2022-08-191-1/+1
| | | | | | | | | | | | This is of little consequence in practice since the input is always a vector of keys representing a prefix, where bit 7 isn't likely to be set when higher bits are set, but it silences a (justified) warning.
* | Fix region-extract-function compilation warningLars Ingebrigtsen2022-08-191-9/+11
| | | | | | | | | | * lisp/simple.el (region-extract-function): Clean up the logic slightly to avoid a warning.
* | Fix ns-win.el (x-file-dialog) declarationLars Ingebrigtsen2022-08-191-1/+2
| | | | | | | | | | * lisp/term/ns-win.el (x-file-dialog): Give the function the same signature here as other definitions.
* | Speed up image-dired-display-imageMorgan Smith2022-08-191-2/+2
| | | | | | | | | | * lisp/image-dired.el (image-dired-display-image): Open file literally so we don't run image-mode twice. (Bug#57281)
* | Merge from origin/emacs-28Stefan Kangas2022-08-191-11/+12
|\| | | | | | | e64d811b51 Improve image-mode-as-hex docstring
| * Improve image-mode-as-hex docstringStefan Kangas2022-08-181-11/+12
| | | | | | | | | | * lisp/image-mode.el: Fix typos. (image-mode-as-hex): Doc fix; say that it uses 'hexl-mode' and reflow.
* | Improve obsoletion of image-transform-fit-to-{height,width}Stefan Kangas2022-08-181-2/+2
| | | | | | | | | | | | * lisp/image-mode.el (image-transform-fit-to-height) (image-transform-fit-to-width): Change obsoletion to refer to new command 'image-transform-fit-to-window'.
* | * Rename `comp--typeof-builtin-types'Andrea Corallo2022-08-181-5/+5
| | | | | | | | | | * lisp/emacs-lisp/comp-cstr.el (comp--typeof-builtin-types): Rename. (comp-normalize-valset, comp-common-supertype-2): Update.
* | * lisp/emacs-lisp/comp-cstr.el (comp--all-builtin-types): RemoveAndrea Corallo2022-08-181-4/+0
| |
* | Adjust the environment name for the minted packageArash Esbati2022-08-181-1/+1
| | | | | | | | | | * lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Fix the name of the environment which can contain a \label macro.
* | Do interactive mode tagging in image-mode.elStefan Kangas2022-08-181-29/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image-mode.el (image-forward-hscroll) (image-backward-hscroll, image-next-line, image-previous-line) (image-scroll-up, image-scroll-down, image-scroll-left) (image-scroll-right, image-bol, image-eol, image-bob, image-eob) (image-mode-fit-frame, image-kill-buffer, image-next-file) (image-previous-file, image-mode-copy-file-name-as-kill) (image-mode-mark-file, image-mode-unmark-file) (image-transform-set-percent, image-transform-set-scale) (image-transform-fit-to-height, image-transform-fit-to-width) (image-transform-fit-both, image-transform-fit-to-window) (image-transform-set-rotation, image-transform-set-smoothing) (image-transform-original, image-transform-reset): Add interactive tag for image-mode.
* | Make toggling between image, hex and text more consistentStefan Kangas2022-08-181-14/+18
| | | | | | | | | | | | | | | | * lisp/image-mode.el (image-toggle-hex-display, image-toggle-display): Ensure commands work correctly also in `hexl-mode'. (image-mode-to-text): (image-mode-as-hex, image-mode-as-text): Enable image-minor-mode also in hexl-mode, which adds the "C-c C-x" keybinding for easier toggling.
* | ; * lisp/image-mode.el (image-minor-mode): Reflow docstring.Stefan Kangas2022-08-181-3/+3
| |
* | New command image-transform-set-percentStefan Kangas2022-08-181-0/+11
| | | | | | | | | | | | * lisp/image-mode.el (image-transform-set-percent): New command. (image-mode-map): Bind above new command to "s p". * doc/emacs/files.texi (Image Mode): Document it.
* | Prefer defvar-keymap in image-mode.elStefan Kangas2022-08-181-148/+147
| | | | | | | | | | * lisp/image-mode.el (image-mode-map, image-minor-mode-map): Prefer defvar-keymap.
* | ; * lisp/image-mode.el: Delete commented out image-transform-mode.Stefan Kangas2022-08-181-20/+0
| | | | | | | | | | This mode was added in 2010 but never implemented. It was subsequently commented out in 2012.
* | Merge from origin/emacs-28Stefan Kangas2022-08-182-10/+14
|\| | | | | | | | | | | | | ef1e68f11d * lisp/image-mode.el (image-mode-as-hex): Fix toggle instr... dc0fce3a7d ; lisp/image-mode.el: Fix typo. 254ba1d3e5 * lisp/image-mode.el: Improve commentary. ac43ac1af9 cl-reduce doc string improvement
| * * lisp/image-mode.el (image-mode-as-hex): Fix toggle instructions.Stefan Kangas2022-08-181-7/+3
| |
| * ; lisp/image-mode.el: Fix typo.Stefan Kangas2022-08-181-3/+3
| |
| * * lisp/image-mode.el: Improve commentary.Stefan Kangas2022-08-181-4/+8
| |
| * cl-reduce doc string improvementColin Woodbury2022-08-181-0/+4
| | | | | | | | | | * lisp/emacs-lisp/cl-seq.el (cl-reduce): Explain what happens when using :from-end (bug#57273).
* | Fix encoding problem in tramp-sh.elMichael Albinus2022-08-181-73/+76
| | | | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-file-local-copy): Compute inline coding only if needed.
* | Fix string-to-syntax signature in comp-known-type-specifiersMattias Engdegård2022-08-181-1/+1
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-known-type-specifiers): `string-to-syntax` can return nil.
* | * lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix some typeAndrea Corallo2022-08-181-10/+10
| |
* | More non-nil-returning functions in source optimisationMattias Engdegård2022-08-181-5/+24
| | | | | | | | | | | | | | | | | | This change was partially generated and mechanically cross-validated with function type information from comp-known-type-specifiers in comp.el. * lisp/emacs-lisp/byte-opt.el (byte-compile-trueconstp): Extend list of functions and fix a typo (logxor).
* | ; Fix a typo in autoload.elEli Zaretskii2022-08-181-1/+1
| | | | | | | | | | * lisp/obsolete/autoload.el (update-directory-autoloads): Fix obsolescence version. (Bug#57276)
* | Fix Python indentation of block continuationkobarity2022-08-181-1/+7
| | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-indent--calculate-indentation): Fix indentation of :after-backslash-block-continuation. * test/lisp/progmodes/python-tests.el (python-indent-after-backslash-6): New test (bug#57262).
* | Make GEN message from loaddefs-generate nicerLars Ingebrigtsen2022-08-181-1/+2
| | | | | | | | | | | | * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Shorten the informational GEN file relative to the stated directory (bug#57265). This makes the message nicer for ELPA packages.
* | Improve update-directory-autoloads deprecation messageStefan Kangas2022-08-181-1/+1
| | | | | | | | | | * lisp/obsolete/autoload.el (update-directory-autoloads): Improve deprecation message. (Bug#57276)
* | Improve cryptic syntax switch message in re-builderStefan Kangas2022-08-181-2/+2
| | | | | | | | | | | | | | * lisp/emacs-lisp/re-builder.el (reb-restart-font-lock): Move message from here... * lisp/emacs-lisp/re-builder.el (reb-change-syntax): ...to here. Change it to be less cryptic.
* | * lisp/loadup.el: Always fix-up all loaded compilation unitsAndrea Corallo2022-08-181-8/+3
| |
* | * lisp/emacs-lisp/bytecomp.el (byte-compile-log-1): Create buffer if necessaryAndrea Corallo2022-08-171-1/+1
| |
* | * lisp/progmodes/cc-defs.el (c-safe-scan-lists): Evaluate LIMIT just onceAlan Mackenzie2022-08-171-9/+10
| |
* | Fix Linux APM BIOS flag testing in battery.elBasil L. Contovounesios2022-08-171-3/+3
| | | | | | | | | | | | | | | | Original sin detected by recent byte-compiler improvements; see: https://lists.gnu.org/r/emacs-devel/2022-08/msg00611.html * lisp/battery.el (battery-linux-proc-apm): Treat result of logand as a number, not boolean.
* | Assume dired-guess is now always availableStefan Kangas2022-08-172-13/+5
| | | | | | | | | | | | | | | | * lisp/dired-aux.el (dired-read-shell-command): Use dired-guess-shell-command unconditionally, as it is now always available. (dired-do-shell-command): Doc fix; dired-guess is always available. * lisp/dired.el (dired-do-man): Don't require dired-x.
* | Move dired-guess commands from dired-x to diredStefan Kangas2022-08-173-325/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired-x.el (dired-shell-command-history) (dired-guess-shell-alist-default, dired-guess-default) (dired-guess-shell-command): Move from here... * lisp/dired-aux.el (dired-shell-command-history) (dired-guess-shell-alist-default, dired-guess-default) (dired-guess-shell-command): ...to here. (Bug#21981) * lisp/dired-x.el (dired-guess-shell-gnutar) (dired-guess-shell-gzip-quiet, dired-guess-shell-znew-switches) (dired-guess-shell-case-fold-search, dired-guess-shell-alist-user): Move from here... * lisp/dired.el (dired-guess-shell-gnutar) (dired-guess-shell-gzip-quiet, dired-guess-shell-znew-switches) (dired-guess-shell-case-fold-search, dired-guess-shell-alist-user): ...to here. Change :group to dired-guess. (dired-guess): New defgroup. * test/lisp/dired-x-tests.el (dired-guess-default): Move from here... * test/lisp/dired-aux-tests.el (dired-guess-default): ...to here. * doc/misc/dired-x.texi (Features, Technical Details, Installation): Delete any mention of shell command guessing. (Shell Command Guessing): Move from here... * doc/emacs/dired.texi (Shell Command Guessing): ...to here. Adapt to better fit the Emacs Manual conventions. * lisp/dired-aux.el (dired-do-shell-command): Doc fix to adjust for above changes. * etc/NEWS: Announce the above change.
* | Make compat function cperl-putback-char obsoleteStefan Kangas2022-08-171-5/+6
| | | | | | | | | | * lisp/progmodes/cperl-mode.el (cperl-putback-char): Make obsolete. Update callers.
* | * lisp/progmodes/cperl-mode.el: Improve commentary.Stefan Kangas2022-08-171-20/+12
| |
* | ; Delete code in cperl-mode.el commented out since 1997Stefan Kangas2022-08-171-36/+1
| | | | | | | | | | * lisp/progmodes/cperl-mode.el (cperl-menu): Delete some code commented out since 1997.
* | Don't check if autoloaded functions are fboundpStefan Kangas2022-08-171-3/+4
| | | | | | | | | | * lisp/progmodes/cperl-mode.el (cperl-menu, cperl-init-faces): Assume some autoloaded ps-print.el functions are always there.
* | em-unix.el: only pass -H option to grepBrendan O'Dea2022-08-171-9/+4
| | | | | | | | | | | | * lisp/eshell/em-unix.el (eshell-grep): Don't add -H, because that breaks agrep/glimpse etc (bug#57247). (eshell/grep, eshell/egrep, eshell/fgrep): Instead add it here.
* | Enhance Python font-lock to support multilineskobarity2022-08-171-16/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/progmodes/python-tests.el (python-tests-assert-faces-after-change): New helper function. (python-font-lock-keywords-level-1-3) (python-font-lock-assignment-statement-multiline-*): New tests. * lisp/progmodes/python.el (python-rx): Add `sp-nl' to represent space or newline (with/without backslash). (python-font-lock-keywords-level-1) (python-font-lock-keywords-maximum-decoration): Allow newlines where appropriate. (python-font-lock-extend-region): New function. (python-mode): Set `python-font-lock-extend-region' to `font-lock-extend-after-change-region-function'.
* | Revert "Add Python blocks support for hideshow"Lars Ingebrigtsen2022-08-171-53/+6
| | | | | | | | | | | | This reverts commit af4cfb519415ed3c1d6d036aac908e4f9ee383eb. This led to test failures.