aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix icomplete-force-complete-and-exit for no-input situationsJoão Távora2019-11-021-3/+23
| | | | | | | | | | | | | If there is no minibuffer input, but the user has already cycled some pre-calculated completions, we should be calling minibuffer-force-complete-and-exit instead of minibuffer-complete-and-exit. The former is guaranteed to be fast in this situation and yields the desired "selected" completion, while the latter will just give us the default, ignoring all the cycling of icomplete-{forward|backward}-completions. * lisp/icomplete.el (icomplete-force-complete-and-exit): Add comments and fix for empty input but some completions calculated.
* Improve fix for icomplete's backward-kill-word bug#38024João Távora2019-11-021-2/+5
| | | | | | | * lisp/icomplete.el (icomplete-exhibit): Use while-no-input-ignore-events, not redisplay. Co-authored-by: Stefan Monnier <j.schmoe@example.org>
* Use PASSWORD_STORE_DIR in auth-source-pass when setStefan Kangas2019-11-021-1/+2
| | | | | * lisp/auth-source-pass.el (auth-source-pass-filename): Initialize to PASSWORD_STORE_DIR environment variable when set. (Bug#29663)
* Don't refuse to install packages without a "footer line"Stefan Kangas2019-11-021-3/+6
| | | | | | * lisp/emacs-lisp/package.el (package-buffer-info): Don't signal an error when the "footer line" is missing. Warn only. (Bug#26490) * etc/NEWS: Announce it.
* set-face-font doc string updateLars Ingebrigtsen2019-11-011-0/+4
| | | | | * lisp/faces.el (set-face-font): Mention what the string formats are (bug#14647).
* Really enable setting a breakpoint without instrumenting firstLars Ingebrigtsen2019-11-011-1/+3
| | | | | * lisp/emacs-lisp/edebug.el (edebug-set-breakpoint): Really enable setting a breakpoint without instrumenting first (bug#23469).
* ; Auto-commit of loaddefs files.Glenn Morris2019-11-011-498/+657
|
* Make ant regexp in compilation-error-regexp-alist-alist more laxFilipp Gunbin2019-11-011-2/+5
| | | | | | | * lisp/progmodes/compile.el: Make ant regexp accept filenames that may occur on Cygwin (like c:/test) and optional additional severity level after task name. * etc/compilation.txt: Add sample.
* * lisp/cedet/ (semantic-analyze-possible-completions): Add `flags` argEric Ludlam2019-10-314-6/+6
| | | | | | | | | | | * lisp/cedet/semantic/texi.el (semantic-analyze-possible-completions), lisp/cedet/srecode/srt-mode.el (semantic-analyze-possible-completions), lisp/cedet/semantic/bovine/make.el (semantic-analyze-possible-completions): Add `flags` arg. * lisp/cedet/semantic/grammar.el (semantic-analyze-possible-completions): Add `flags` arg. Reverse the found prefix. (semantic-ctxt-current-class-list): Include token tags as things to appear in non-lisp context.
* Inhibit undo-in-region for mouse-drag-region (bug#37700)Mattias Engdegård2019-10-312-1/+12
| | | | | | | | | | | | | | 'mouse-drag-region' leaves the region active around the dragged text, so a straight undo did not revert the entire operation. To remedy this, inhibit undo-in-region when the last command was mouse-drag-region. (Method suggested by Stefan Monnier.) * lisp/mouse.el (undo-drag-region): Set the undo-inhibit-region property. * lisp/simple.el (undo): Inhibit undo-in-region if the last command had the undo-inhibit-region property set. * doc/lispref/symbols.texi (Standard Properties): * doc/lispref/text.texi (Undo): Document undo-inhibit-region. * etc/NEWS: Announce the property.
* Ensure that font-local variables are buffer-localLars Ingebrigtsen2019-10-311-9/+4
| | | | | | * lisp/font-lock.el (font-lock-set-defaults): Ensure that the font lock variables are buffer-local even when nil, so that they're copied correctly by mhtml mode when changing sub-modes (bug#33937).
* Clean up font-lock-refontify slightlyLars Ingebrigtsen2019-10-311-2/+4
| | | | | * lisp/font-lock.el (font-lock-refontify): Use syntax-ppss-flush-cache instead of internal variable.
* Further tweaks to sh-script \ #foo font lockingLars Ingebrigtsen2019-10-311-2/+4
| | | | | | | * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Tweak previous \ #foo change to work on all quoted characters, but check that the backslash itself is not backslashed. Regexp from Stefan Monnier.
* Fix some minor Tramp problemsMichael Albinus2019-10-313-25/+31
| | | | | | | | | | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): Check, that `tramp-password-save-function' is a function. * lisp/net/tramp-smb.el (tramp-smb-handle-file-system-info): Check, that there is a share. * lisp/net/tramp.el (outline-regexp): Declare. (tramp-get-debug-buffer): Let-bind `signal-hook-function'. * test/lisp/net/tramp-tests.el (tramp-test04-substitute-in-file-name): Skip some tests for Emacs 24 and 25; they let Emacs crash.
* Rework vc stash bindingsRobert Pluim2019-10-311-17/+40
| | | | | | | | | | | | | | | | | | | | | | | This adds create/snapshot bindings to the stash button even when there are no stashes, and extends the stash menu bindings. * etc/NEWS: Announce the bindings. * lisp/vc/vc-git.el (vc-git-stash-shared-map): New keymap. Holds shared bindings between stash button and stash list. (vc-git-stash-map): Inherit from vc-git-stash-shared-map. (vc-git-stash-button-map): New keymap. Holds button bindings, inherit from vc-git-stash-shared-map. (vc-git-stash-shared-help, vc-git-stash-list-help): New defconsts. Abstract out list/button help texts. (vc-git--make-button-text): Set keymap property to vc-git-stash-button-map. (vc-git-make-stash-button): Use vc-git-stash-shared-help. (vc-git-stash-menu-map): Add items for vc-git-stash and vc-git-stash-snapshot. (vc-git-dir-extra-headers): Use vc-git-stash-list-help and vc-git-stash-shared-help. Add vc-git-stash and vc-git-stash-snapshot bindings to text shown when there are no stashes.
* Font-lock symlinks in dired buffers betterLars Ingebrigtsen2019-10-311-2/+24
| | | | | | * lisp/dired.el (dired-font-lock-keywords): Font-lock symlinks differently based on whether they point at a directory or not (bug#17064). Based on code from Michael Heerdegen.
* * lisp/tab-bar.el (tab-bar-select-tab): Use set-frame-parameter.Juri Linkov2019-10-311-11/+8
| | | | (tab-bar-list-noselect, tab-bar-list-mode): Rearrange buffer-read-only.
* Support \pagebreak[0] for paragraph-separate in latex-modeKevin Ryde2019-10-301-1/+2
| | | | | * textmodes/tex-mode.el (latex-mode): In 'paragraph-separate' allow optional argument ('[0]', etc.) for '\pagebreak[0]'. (Bug#19039)
* Send -enable-frame-filters to gdbTom Tromey2019-10-301-0/+1
| | | | | * lisp/progmodes/gdb-mi.el (gdb-init-1): Send -enable-frame-filters to gdb.
* Fix previous sh-script.el font-lock #comment changeLars Ingebrigtsen2019-10-301-1/+1
| | | | | * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): We want to match "\ " before a comment; not a space character.
* Revert "Move description of value to syntax-ppss function."Lars Ingebrigtsen2019-10-301-20/+0
| | | | | | This reverts commit 305dbc7e2be05748039aacb1a3d697f6f64bed4c. Both of the functions in question are used a lot in the sources, so move it back to the more basic function.
* Add a new ppss structure for syntax-ppss dataLars Ingebrigtsen2019-10-301-0/+34
| | | | | * lisp/emacs-lisp/syntax.el (ppss): Add a new structure to provide accessors to the syntax-ppss data.
* Tweak fontification of \url{http://foo.org/bar%zot} in (la)tex-modeLars Ingebrigtsen2019-10-301-1/+1
| | | | | | | * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): \url{http://foo.org/bar%zot} shouldn't be fontified as having a comment, so make the tex-verbatim face overwrite the already-applied syntactical comment bits (bug#37134).
* Bind vc-git-stash to a keyLars Ingebrigtsen2019-10-301-1/+2
| | | | | | | | | * lisp/vc/vc-git.el (vc-git-stash-map): Give `vc-git-stash' a keystroke, because it's a useful command. When there are no stashes, there's no way to use that keystroke (since it's only bound on the stash lines), so perhaps that should also be fixed somehow.
* Clear more data in font-lock-refontify to ensure refontifyingLars Ingebrigtsen2019-10-301-1/+2
| | | | * lisp/font-lock.el (font-lock-refontify): Clear out even more data.
* font-lock \ #foo in shell mode more correctlyLars Ingebrigtsen2019-10-301-1/+1
| | | | | | * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): \ #foo isn't a comment -- it's a symbol that starts with a space character (bug#17538).
* Make font-lock-refontify try even harder to refontifyLars Ingebrigtsen2019-10-301-1/+3
| | | | | * lisp/font-lock.el (font-lock-refontify): Make this command work even after switching global font lock mode on and then off again.
* Fix setgid fontification in dired on some OS-esLars Ingebrigtsen2019-10-301-1/+1
| | | | | * lisp/dired.el (dired-font-lock-keywords): Apparently some versions of ls use "S" for setgid and other use "s" (bug#8186).
* Fix "dnl" highlights in m4-modeLars Ingebrigtsen2019-10-301-1/+1
| | | | | | * lisp/progmodes/m4-mode.el (m4-font-lock-keywords): "dnl" comments should override any previous syntax-based highlighting (37132). This makes "dnl foo#bar" be highlighted correctly.
* Add a convenience function to be used when working on font lockingLars Ingebrigtsen2019-10-301-0/+9
| | | | | | * doc/lispref/modes.texi (Font Lock Basics): Document it. * lisp/font-lock.el (font-lock-refontify): New convenience command.
* Move description of value to syntax-ppss function.Lars Ingebrigtsen2019-10-301-0/+20
| | | | | | | | | * lisp/emacs-lisp/syntax.el (syntax-ppss): Move the description of the return value from... * src/syntax.c (Fparse_partial_sexp): ... here because `syntax-ppss' is what's called over the place, and jumping through an indirection to get to the value description is inconvenient.
* Indent font-lock-fontify-syntactically-regionLars Ingebrigtsen2019-10-301-35/+35
| | | | | * lisp/font-lock.el (font-lock-fontify-syntactically-region): Indent function.
* * lisp/net/tramp.el (outline-regexp): Remove declaration.Michael Albinus2019-10-301-1/+0
|
* Fix image-converter probesLars Ingebrigtsen2019-10-301-8/+11
| | | | | * lisp/image/image-converter.el (image-converter--probe): Check that the executable exists before trying to call it.
* Rename read-char-with-history to read-char-from-minibuffer (bug#10477)Juri Linkov2019-10-301-19/+21
| | | | | | | | | | * lisp/simple.el (read-char-from-minibuffer-history): Rename from read-char-with-history--history. (read-char-from-minibuffer-map): Rename from read-char-with-history--map. (read-char-from-minibuffer): Rename from read-char-with-history. (read-char-from-minibuffer-self-insert): New command. (zap-to-char): Use read-char-from-minibuffer.
* Make the debbugs groups also include robot messagesLars Ingebrigtsen2019-10-301-1/+1
| | | | | * lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist): Change the URL to also include robot messages.
* Reimplement read-char-with-history based on read-from-minibufferJuri Linkov2019-10-301-65/+25
| | | | | | | * lisp/simple.el (read-char-with-history): Reimplement based on read-from-minibuffer. * lisp/simple.el (read-char-with-history--map): New variable (bug#10477).
* * lisp/tab-bar.el: Store point position and frame buffer-lists in tab.Juri Linkov2019-10-302-37/+95
| | | | | | | | | | | | | | | | | * lisp/tab-bar.el (tab-bar--tab): Store additionally point-marker, frame parameters buffer-list and buried-buffer-list, both for wc and ws. Use seq-filter. (tab-bar-select-tab): Restore point-marker after restoring window-configuration. Also restore frame parameters buffer-list and buried-buffer-list both for window-configuration and window-state. (tab-bar-history-limit, tab-bar-history--minibuffer-depth): New variables. (tab-bar-history-current): Rename from tab-bar-history--pre-change. (tab-bar-history--pre-change): Set tab-bar-history-current. (tab-bar--history-change): Use seq-take for tab-bar-history-limit. (tab-bar-history-back, tab-bar-history-forward): Restore point-marker. (tab-bar-list-noselect): Use seq-remove. * lisp/emacs-lisp/seq.el (seq-take, seq-filter): Add autoload cookie.
* Make url-cookie.el be more resistant against bogus dataLars Ingebrigtsen2019-10-291-3/+4
| | | | | * lisp/url/url-cookie.el (url-cookie-handle-set-cookie): Don't bug out on large max-age values (bug#37974).
* Default exotic image formats (like .webp) to image-modeLars Ingebrigtsen2019-10-293-71/+123
| | | | | | | | | | | | | | | | | | * doc/lispref/errors.texi (Standard Errors): Mention the new error. * lisp/files.el (auto-mode-alist): Add a bunch of image suffixes to the list (bug#37972) based on the output from "gm convert -list format" (i.e., graphicsmagick). * lisp/image-mode.el (image-mode): Rewrite to possibly notify the user about image-use-external-converter. (image-mode--setup-mode): Factor out into own function and don't run under `condition-case' as there's nothing here that should error. * lisp/image.el (unknown-image-type): New error. (image-type): Signal that error so that image-mode can offer sensible feedback to the user.
* Fix image-converter probingLars Ingebrigtsen2019-10-291-4/+6
| | | | | * lisp/image/image-converter.el (image-converter--find-converter): Stop probing on the first successful probe.
* * lisp/minibuffer.el: Tweak and undo parts of recent changesStefan Monnier2019-10-291-24/+29
| | | | | | | | | | (completion-metadata): Always return a fresh new cons cell. (completion--nth-completion): Don't bother calling adjust-metadata if the result won't be used. (completion-pcm--hilit-commonality): Revert recent change which had removed support for `completions-first-difference` in `substring` and `partial-completion` styles. (completion--flex-adjust-metadata): Treat the arg as immutable.
* Add gradle-kotlin to compilation-error-regexp-alist-alistFilipp Gunbin2019-10-291-0/+10
| | | | | | * lisp/progmodes/compile.el: Add gradle-kotlin to compilation-error-regexp-alist-alist. * etc/compilation.txt: Add samples for it.
* Make shr scale images on all framesLars Ingebrigtsen2019-10-291-1/+1
| | | | | * lisp/net/shr.el (shr-rescale-image): Rescale images even if the window isn't on the current frame.
* Make icomplete-exhibit actually work when navigating up directoriesJoão Távora2019-10-291-0/+2
| | | | | | | | | Sometimes, when finding files with icomplete-mode, backward-deleting the previous word or sexp (to move up a directory) doesn't actually refresh the file list of the new directory. Forcing redisplay in icomplete-exhibit misteriously fixes the problem. * lisp/icomplete.el (icomplete-exhibit): Add call to redisplay.
* New commands for making icomplete behave more like idoJoão Távora2019-10-291-0/+85
| | | | | | | | | | | | | | | | This tries (not particularly hard) to emulate Ido's magic C-k, C-d, RET and DEL. For now, the new commands have to be explicitly added to an active map by the user, using something like this: (let ((imap icomplete-minibuffer-map)) (define-key imap (kbd "C-k") 'icomplete-magic-ido-kill) (define-key imap (kbd "C-d") 'icomplete-magic-ido-delete-char) (define-key imap (kbd "RET") 'icomplete-magic-ido-ret) (define-key imap (kbd "DEL") 'icomplete-magic-ido-backward-updir)) * lisp/icomplete.el (icomplete-magic-ido-kill) (icomplete-magic-ido-delete-char, icomplete-magic-ido-ret) (icomplete-magic-ido-backward-updir): New commands.
* * lisp/tab-bar.el: Check for minibuffer-depth in tab-bar-history-mode.Juri Linkov2019-10-281-10/+16
| | | | | | * lisp/tab-bar.el (tab-bar-history--pre-change): Store also minibuffer-depth. (tab-bar-history-change): Check stored minibuffer-depth for zero. (tab-bar-history-mode): Use prefix -- for internal functions.
* Use new-style rx extensions in python.elMattias Engdegård2019-10-281-68/+59
| | | | | | | * lisp/progmodes/python.el (python-rx): Use `rx-let' instead of `rx-constituents'. This allows for some slight redundancy reduction, since `rx-let' definitions are expanded inside `not' (bug#37849). Reorder some `or' forms for more efficient matching.
* Add doc for goto-history-elementHong Xu2019-10-281-1/+3
| | | | | | * doc/lispref/minibuf.texi (Minibuffer Commands): Add goto-history-element (bug#37948). * lisp/simple.el (goto-history-element): Clarify NABS.
* * lisp/eshell/em-term.el: Remove commented out XEmacs compat code.Stefan Kangas2019-10-281-14/+8
|