summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* ; Drop two obsolete defvarsSean Whitton2022-09-242-2/+0
| | | | | * lisp/vc/vc-git.el (vc-want-edit-command-p) * lisp/vc/vc.el (vc-want-edit-command-p): Drop obsolete defvar.
* ; Simplify image-dired-forward-imageStefan Kangas2022-09-241-9/+7
| | | | * lisp/image/image-dired.el (image-dired-forward-image): Simplify.
* image-dired: Add faces for header lineStefan Kangas2022-09-241-24/+59
| | | | | | | | | | * lisp/image/image-dired.el (image-dired-thumb-header-file-name) (image-dired-thumb-header-directory-name) (-image-dired-thumb-header-file-size) (image-dired-thumb-header-image-count): New faces. (image-dired-format-properties-string): Use above new faces. (image-dired-thumb-mark, image-dired-thumb-flagged): Move definition further down.
* image-dired: Add new %-format specifiers for header lineStefan Kangas2022-09-242-42/+65
| | | | | | | | | | | | | | | | | * lisp/image/image-dired.el (image-dired-format-properties-string): Add new specifiers "%n", "%d", and "%s". (image-dired-display-properties-format): Change default format to use above new specifiers. (image-dired--number-of-thumbnails): New variable. (image-dired-insert-thumbnail, image-dired-display-thumbs): Keep track of file number when appending it into the thumbnail buffer. (image-dired--update-header-line): Support above new format specifiers. Rename from 'image-dired-update-header-line' and update callers. * lisp/image/image-dired-dired.el (image-dired-dired-display-properties): Support above new format specifiers.
* Generalize & simplify implementation of user edits to VC commandsSean Whitton2022-09-243-136/+149
| | | | | | | | | | | * lisp/vc/vc-dispatcher.el (vc-pre-command-functions) (vc-want-edit-command-p): Delete. (vc-filter-command-function): New variable. (vc-user-edit-command): Factor out of vc-do-command. (vc-do-command, vc-do-async-command) * lisp/vc/vc-git.el (vc-git--pushpull) * lisp/vc/vc.el (vc-print-branch-log): Use vc-filter-command-function in place of vc-pre-command-functions and vc-want-edit-command-p.
* * lisp/emacs-lisp/icons.el (icons--create): Use default rotation 0 (bug#57813)Juri Linkov2022-09-241-1/+1
|
* Adapt tramp-docker integrationMichael Albinus2022-09-242-69/+45
| | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Inline methods): Add docker. (Customizing Methods): Remove docker-tramp. Adapt references to this. * etc/NEWS: Mention new Tramp method "docker". Fix typos. * lisp/net/tramp-compat.el (docker-tramp): Warn, if that package is used. * lisp/net/tramp-docker.el: Format header lines. (tramp-docker): Remove custom group. (tramp-docker-program, tramp-docker-method): Add ;;;###tramp-autoload cookie. (tramp-docker-program): Change group to `tramp'. Add version. (tramp-docker--completion-function): Fix docstring. (tramp-docker--add-method, tramp-docker--remove-method) (tramp-docker-unload-function, tramp-docker-setup): Remove functions. (tramp-methods, tramp-set-completion-function): Initialize via `tramp--with-startup'. (tramp-unload-hook): Unload `tramp-docker'.
* image-dired: Move menu definitions to keymapsStefan Kangas2022-09-242-7/+5
| | | | | | | | | * lisp/image/image-dired.el (image-dired-thumbnail-mode-menu): * lisp/image/image-dired-dired.el (image-dired-minor-mode-menu): Delete variables and move menus to... * lisp/image/image-dired.el (image-dired-thumbnail-mode-map): * lisp/image/image-dired-dired.el(image-dired-minor-mode-map): ...here.
* Merge remote-tracking branch 'refs/remotes/origin/master'Stefan Monnier2022-09-244-170/+214
|\
| * Regenerated ldefs-boot.elLars Ingebrigtsen2022-09-241-160/+88
| |
| * Remove "manual" package--builtin-versions updatesLars Ingebrigtsen2022-09-242-10/+1
| | | | | | | | | | | | | | * lisp/emacs-lisp/nadvice.el: * lisp/emacs-lisp/cl-generic.el: Don't push to package--builtin-versions "manually", because loaddefs-gen does this correctly now.
| * * lisp/net/tramp-docker.el: New file.Brian Cully2022-09-241-0/+125
| |
* | hideshow.el: Improve hs-toggle-hiding behaviorkobarity2022-09-241-9/+16
|/ | | | | | | | | | | | | | | | | * lisp/progmodes/hideshow.el (hs-find-block-beginning-match): New function to be used in `hs-already-hidden-p'. (hs-already-hidden-p): Add check if beginning of line is inside a block. (hs-toggle-hiding): Don't change to selected-window's buffer when event arg is absent. * test/lisp/progmodes/hideshow-tests.el (hideshow-tests-with-temp-buffer-selected): New helper macro. (hideshow-tests-make-event-at): New helper function. (hideshow-already-hidden-p-1): New test. (hideshow-toggle-hiding-1): New test. (hideshow-mouse-toggle-hiding-1): New test (bug#52092).
* (event-start/end): Fix part of bug#52092Stefan Monnier2022-09-241-8/+17
| | | | | | | | When synthesizing a posn for keyboard events, make sure the `posn-point` i the same as `point`. * lisp/subr.el (event--posn-at-point): New function. (event-start, event-end): Use it.
* Merge branch 'emacs-28'Stefan Monnier2022-09-241-1/+3
|\
| * * lisp/progmodes/hideshow.el (hs-toggle-hiding): Fix `interactive` formStefan Monnier2022-09-241-1/+3
| | | | | | | | | | This fixes the first part of bug#52092, which is a regression introduced by commit d0e9113de97.
* | Make dired-do-rename refuse to rename . and ..Lars Ingebrigtsen2022-09-241-0/+4
| | | | | | | | | | * lisp/dired-aux.el (dired-do-rename): Refuse to rename . and .. (bug#52004). This used to error out after renaming.
* | Add a new command vc-pull-and-pushLars Ingebrigtsen2022-09-2410-23/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/vc-svn.el (vc-exec-after): * lisp/vc/vc-hg.el (vc-exec-after): * lisp/vc/vc-git.el (vc-exec-after): * lisp/vc/vc-cvs.el (vc-exec-after): * lisp/vc/vc-bzr.el (vc-exec-after): * lisp/org/org-macro.el (vc-exec-after): * lisp/obsolete/vc-mtn.el (vc-exec-after): * lisp/obsolete/vc-arch.el (vc-exec-after): Update declaration. * lisp/vc/vc-dispatcher.el (vc--process-sentinel): Allow running code only on success. (vc-exec-after): Ditto. (vc--inhibit-change-window-start): New variable. (vc-do-async-command): Use it to allow chaining commands without moving window point. Return the process instead of the buffer, since the process may have exited already, and then we can't get at the process. * lisp/vc/vc-git.el (vc-git--pushpull): Return the process object. (vc-git-pull-and-push): New function. * lisp/vc/vc.el (vc-pull-and-push): New command (bug#51964).
* | Tweak binding of `+' in vc-dirLars Ingebrigtsen2022-09-241-3/+3
| | | | | | | | | | * lisp/vc/vc-dir.el (vc-dir-mode-map): Point to the actual function instead of the alias. This makes *Help* more helpful.
* | CC Mode. Make AWK Mode work with electric-pair-modeAlan Mackenzie2022-09-242-22/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix some minor anomalies with other CC Mode modes in electric-pair-mode. This fixes bug #53446. * lisp/progmodes/cc-mode.el (c-open-string-opener): New buffer local variable. (c-after-change-mark-abnormal-strings): Set c-open-string-opener when an unbalanced string is detected. (c-before-change): Initilize c-open-string-opener to nil, each buffer change. (c-electric-pair-inhibit-predicate): Use the value of c-open-string-opener to flag an unbalaced string rather than trying to calculate it again. * lisp/progmodes/cc-awk.el (c-awk-syntax-tablify-string): Set c-open-string-opener when an unbalanced string is detected.
* | docview: Use svg images when using mupdf for conversionVisuwesh2022-09-241-1/+25
| | | | | | | | | | | | | | | | | | * lisp/doc-view.el (doc-view-mupdf-use-svg, doc-view-svg-background) (doc-view-svg-foreground): New user options. (doc-view-insert-image): Add :background and :foreground image attributes when display svg images. (doc-view-set-up-single-converter): Produce svg images when using mupdf (bug#58041).
* | image-dired: Prefer command remappingStefan Kangas2022-09-241-14/+6
| | | | | | | | | | * lisp/image/image-dired.el (image-dired-thumbnail-mode-map): Prefer command remapping to binding keys directly.
* | image-dired: Fix C-a/C-e in thumbnail bufferStefan Kangas2022-09-241-36/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image/image-dired.el (image-dired--movement-ensure-point-pos): New function, and... (image-dired--movement-command): ...new macros broken out from... (image-dired-next-line, image-dired-previous-line) (image-dired-beginning-of-buffer, image-dired-end-of-buffer): ...here. (image-dired-move-beginning-of-line) (image-dired-move-end-of-line): New commands. (image-dired-thumbnail-mode-map): Remap 'move-beginning-of-line' and 'move-beginning-of-line' to above new commands.
* | Make thumbs.el obsoleteStefan Kangas2022-09-241-0/+7
| | | | | | | | | | * lisp/obsolete/thumbs.el: Add Obsolete-since. * etc/NEWS: Announce obsoletion of thumbs.el. (Bug#57779)
* | Move thumbs.el to lisp/obsoleteStefan Kangas2022-09-241-0/+0
| | | | | | | | | | | | | | * lisp/thumbs.el: * test/lisp/thumbs-tests.el: Move from here... * lisp/obsolete/thumbs.el: * test/lisp/obsolete/thumbs-tests.el: ...to here. (Bug#57779)
* | image-dired: Regenerate old thumbnails when neededStefan Kangas2022-09-242-14/+19
| | | | | | | | | | | | | | | | | | * lisp/image/image-dired.el (image-dired--get-create-thumbnail-file): Rename from 'image-dired-get-thumbnail-image'. Update callers and make old name into an obsolete alias. (image-dired-display-thumbs): Use above function to simplify and regenerate the thumbnail if it's outdated.
* | image-dired: Improve performance of marking commandsStefan Kangas2022-09-241-19/+27
| | | | | | | | | | | | | | | | | | | | * lisp/image/image-dired.el (image-dired-thumbnail-storage): Mark (image-dired--thumb-update-mark-at-point): New function. (image-dired--thumb-update-marks): (image-dired--do-mark-command): Use it. (image-dired--thumb-update-marks): Rename from 'image-dired-thumb-update-marks'. Update all callers and make the old name into an obsolete alias.
* | image-dired: Mark 'per-directory' as :safeStefan Kangas2022-09-241-0/+1
| | | | | | | | | | * lisp/image/image-dired.el (image-dired-thumbnail-storage): Mark 'per-directory' value as :safe.
* | Add new macro image-dired--with-dired-bufferStefan Kangas2022-09-242-36/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image/image-dired-util.el (image-dired--with-dired-buffer): New macro. * lisp/image/image-dired.el (image-dired-track-original-file) (image-dired--on-file-in-dired-buffer) (image-dired--do-mark-command) (image-dired--on-file-in-dired-buffer) (image-dired-jump-original-dired-buffer) (image-dired-thumb-file-marked-p, image-dired-delete-marked): Use above new macro to simplify and improve error handling. (image-dired-show-all-from-dir): Simplify removing Dired marks. (image-dired-thumb-update-marks): Avoid triggering above new error handling.
* | Tweak how :override advice is formatted in *Help*Lars Ingebrigtsen2022-09-241-12/+28
| | | | | | | | | | | | * lisp/emacs-lisp/nadvice.el (advice--make-single-doc): Format :overrides specially (bug#57974). (advice--make-docstring): Put overrides at the front.
* | Rename file-name-directoryLars Ingebrigtsen2022-09-242-6/+6
| | | | | | | | | | | | | | * lisp/emacs-lisp/shortdoc.el (file-name): * doc/lispref/files.texi (Directory Names): Adjust. * lisp/files.el (file-name-parent-directory): Rename from `file-name-directory' (bug#58039).
* | Ensure that cus-load doesn't add things twiceLars Ingebrigtsen2022-09-242-4/+8
| | | | | | | | | | | | * lisp/cus-dep.el (custom-make-dependencies): Use it. * lisp/custom.el (custom--add-custom-loads): New function.
* | Clarify message-newline-and-reformat doc stringLars Ingebrigtsen2022-09-241-1/+6
| | | | | | | | | | * lisp/gnus/message.el (message-newline-and-reformat): Clarify the DWIM-ness in the doc string (bug#57986).
* | ; * lisp/image/image-dired.el: Improve sectioning.Stefan Kangas2022-09-241-29/+46
| |
* | ; Make 'M-x image-dired' prompt even clearerStefan Kangas2022-09-241-1/+1
| | | | | | | | | | | | * lisp/image/image-dired.el (image-dired-show-all-from-dir): Make prompt even clearer. Suggested by Eli Zaretskii <eliz@gnu.org>.
* | Improve image-dired-thumbnail-display-externalStefan Kangas2022-09-241-6/+9
| | | | | | | | | | | | | | * lisp/image/image-dired.el: (image-dired-external-viewer): Add more image viewers and slightly re-arrange. (image-dired-thumbnail-display-external): Correctly handle external viewers with spaces or flags.
* | * lisp/emacs-lisp/shortdoc.el (file-name): Improve examples.Stefan Kangas2022-09-241-4/+2
| |
* | image-dired: Use command substitution for tags bindingsStefan Kangas2022-09-241-5/+8
| | | | | | | | | | * lisp/image/image-dired-tags.el (image-dired-dired-edit-comment-and-tags): Use substitute-command-keys
* | image-dired: Various code clean upsStefan Kangas2022-09-241-20/+10
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/image/image-dired.el (image-dired--display-thumb-properties-fun): Delete function. (image-dired-forward-image): Immediately update header line. Improve docstring. (image-dired-backward-image, image-dired-next-line) (image-dired-previous-line, image-dired-beginning-of-buffer) (image-dired-end-of-buffer, image-dired-display-image): Improve docstring. (image-dired-comment-thumbnail): Fix interactive declaration.
* | New Flymake backend using the shellcheck programAugusto Stoffel2022-09-241-1/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | See bug#57884. * lisp/progmodes/sh-script.el: Require let-alist and subr-x when compiling. (sh--json-read): Helper function to deal with possible absence of json-parse-buffer. (sh-shellcheck-program, sh--shellcheck-process, sh-shellcheck-flymake): Variables and function defining a Flymake backend. (sh-mode): Add it to 'flymake-diagnostic-functions'.
* | vc-git--pushpull: Restore handling of vc-git-programSean Whitton2022-09-231-4/+7
| | | | | | | | | | | | | | * lisp/vc/vc-git.el (vc-git--pushpull): Restore handling of vc-git-program before recent change: respect a buffer-local value of vc-git-program, and don't ignore user edits to the git program name when PROMPT.
* | * lisp/emacs-lisp/eieio.el (defclass): Fix bug#51068Stefan Monnier2022-09-231-0/+1
| | | | | | | | | | Accept (defclass <class> <superclasses> (.. <slotname> ..)) without having to wrap the slot name within parentheses.
* | image-dired: Rewrite and extend slideshow featureStefan Kangas2022-09-231-26/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image/image-dired.el (image-dired--slideshow-start-timer) (image-dired--slideshow-stop-timer) (image-dired--slideshow-show-message): New functions. (image-dired--slideshow-current-delay): New variable. (image-dired--slideshow-initial): Delete variable. (image-dired-slideshow-start): Simplify and ensure we display the image at start. * lisp/image/image-dired.el (image-dired--slideshow-stop): Add support for pausing, and going backwards and forwards during slideshow.
* | image-dired: Mark two slideshow defuns as internalStefan Kangas2022-09-231-6/+8
| | | | | | | | | | | | | | * lisp/image/image-dired.el (image-dired--slideshow-step) (image-dired--slideshow-stop): Rename from 'image-dired--slideshow-step' and 'image-dired--slideshow-stop'. Update callers and make old names into obsolete aliases.
* | cconv.el: Fix interactive closure bug#51695Stefan Monnier2022-09-233-15/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make cconv.el detect when a closure's interactive form needs to capture variables from the context and tweak the code accordingly if so. * lisp/emacs-lisp/cconv.el (cconv--interactive-form-funs): New var. (cconv-convert): Handle the case where the interactive form captures vars from the surrounding context. Remove left over handling of `declare` which was already removed from the cconv-analyze` phase. (cconv-analyze-form): Adjust analysis of interactive forms accordingly. * lisp/emacs-lisp/oclosure.el (cconv--interactive-helper): New type and function. * lisp/simple.el (function-documentation, oclosure-interactive-form): Add methods for it. * test/lisp/emacs-lisp/cconv-tests.el (cconv-tests-interactive-closure-bug51695): New test.
* | Make Gnus respect mode-line-buffer-identification-keymapVisuwesh2022-09-234-10/+11
| | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-group.el (gnus-group-set-mode-line): Use 'propertized-buffer-identification' to buttonise and fontify the buffer name. * lisp/gnus/gnus-sum.el (gnus-set-mode-line): * lisp/gnus/gnus.el (gnus-mode-line-buffer-identification): Adjust calls to above. * lisp/gnus/gnus-srvr.el (gnus-browse-foreign-server): Add missing 'gnus-modeline-buffer-identification' call (bug#57977).
* | Make bounding box of 'image-crop' more noticeableVisuwesh2022-09-231-12/+4
| | | | | | | | | | | | * lisp/image/image-crop.el (image-crop--crop-image-1): Darken the selected region to make the bounding-box more noticable in images which are mostly white (bug#58004).
* | Don't overwrite cus-load dependenciesLars Ingebrigtsen2022-09-231-1/+4
| | | | | | | | | | * lisp/cus-dep.el (custom-make-dependencies): Don't overwrite elements added by packages (bug#58015).
* | Make loaddefs-gen register parent :groups from defcustomLars Ingebrigtsen2022-09-231-2/+6
| | | | | | | | | | | | * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--make-autoload): Also register parent :groups from `defgroup' entries (bug#58015).
* | Fix syntax check in python-info-looking-at-beginning-of-defunkobarity2022-09-231-5/+5
| | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-info-looking-at-beginning-of-defun): Check syntax after moving to the beginning of line. * test/lisp/progmodes/python-tests.el (python-nav-beginning-of-defun-6) (python-end-of-defun-1, python-info-looking-at-beginning-of-defun-3): New tests (bug#58023).