aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* ; Auto-commit of loaddefs files.Glenn Morris2019-11-011-498/+657
|
* Don't claim that anonymous face can't be used in font-lockLars Ingebrigtsen2019-11-011-5/+4
| | | | | | * doc/lispref/display.texi (Faces): Anonymous functions can be used when font locking, so adjust the injunction against them (bug#35005).
* Remove an unfunny joke from DEVEL.HUMORCecilio Pardo2019-11-011-14/+0
| | | | | | * etc/DEVEL.HUMOR: Remove unfunny joke (bug#38002). Copyright-paperwork-exempt: yes
* Make ant regexp in compilation-error-regexp-alist-alist more laxFilipp Gunbin2019-11-013-11/+23
| | | | | | | * 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.
* Minor wording change in ELisp manualRichard Stallman2019-11-011-3/+9
| | | | | | * doc/lispref/functions.texi (Advising Named Functions): Improve and clarify wording of the advice to avoid advising functions in released code.
* ; Add @cindex in files.texi for "temporary file on a remote host"Michael Albinus2019-11-011-0/+1
| | | | | * doc/lispref/files.texi (Unique File Names): Add @cindex for "temporary file on a remote host". (Bug#38010)
* Fix insert-file-contents file error regressionPaul Eggert2019-10-311-3/+2
| | | | | | | | Problem reported for dired-view-file (Bug#37950). * src/fileio.c (Finsert_file_contents): When visiting, signal an error if the file could not be opened for any reason, rather than signaling an error only for nonexistent files, fixing a bug introduced in 2019-09-16T03:17:43!eggert@cs.ucla.edu.
* * 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.
* * test/lisp/cedet/semantic-utest-ia.el: Update from upstreamEric Ludlam2019-10-311-15/+92
| | | | | | | | | | | | | | | | | Merge content from CEDET on SF to bring in additional test points and support more types of languages. (semantic-utest-ia-struct.cpp, semantic-utest-ia-templates.cpp) (semantic-utest-ia-using.cpp, semantic-utest-ia-nsp.cpp) (semantic-utest-ia-localvars.cpp, semantic-utest-ia-varnamse.java) (semantic-utest-ia-wisent.wy, semantic-utest-ia-texi) (semantic-utest-ia-make, semantic-utest-ia-srecoder): New test points (semantic-ia-utest-buffer): Use comment-start-skip when looking for test point tokens. Capture errors ignoring debugger to enable test for empty results. Improve output from test diagnostics. (semantic-ia-utest-buffer-refs): Use comment-start-skip to find test point tokens. Author: Eric Ludlam <zappo@gnu.org>
* * test/manual/cedet/tests/test*: More updates from upstreamEric Ludlam2019-10-315-10/+238
| | | | | | | | | | | * test/manual/cedet/tests/testjavacomp.java, test/manual/cedet/tests/testnsp.cpp, test/manual/cedet/tests/testsppcomplete.c, test/manual/cedet/tests/testtypedefs.cpp, test/manual/cedet/tests/testvarnames.c: Merge content from CEDET on SF with extended test points for use with test/lisp/cedet/semantic-utest-ia.el Author: Eric Ludlam <zappo@gnu.org>
* * test/manual/cedet/tests/testdoublens.cpp: Update from upstreamEric Ludlam2019-10-312-4/+55
| | | | | | | * test/manual/cedet/tests/testdoublens.hpp: Merge content from CEDET on SF with extended test points for use with test/lisp/cedet/semantic-utest-ia.el Author: Eric Ludlam <zappo@gnu.org>
* * test/manual/cedet/tests/: New files for semantic-utest-ia.elEric Ludlam2019-10-3110-0/+997
| | | | | | | | | | | | | | * test/manual/cedet/tests/test.mk, test/manual/cedet/tests/test.srt, test/manual/cedet/tests/test.texi, test/manual/cedet/tests/testlocalvars.cpp, test/manual/cedet/tests/teststruct.cpp, test/manual/cedet/tests/testtemplates.cpp, test/manual/cedet/tests/testusing.cpp, test/manual/cedet/tests/testusing.hh, test/manual/cedet/tests/testvarnames.java. test/manual/cedet/tests/testwisent.wy: New files to be used by test/lisp/cedet/semantic-utest-ia.el. Author: Eric Ludlam <zappo@gnu.org>
* Prevent text flicker with macOS input methods (bug#23412)Alan Third2019-10-311-3/+5
| | | | | * src/nsterm.m ([EmacsView setMarkedText:selectedRange:]): Don't always delete the working text as ns-put-working-text does that.
* Inhibit undo-in-region for mouse-drag-region (bug#37700)Mattias Engdegård2019-10-315-1/+29
| | | | | | | | | | | | | | '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-314-55/+65
| | | | | | | | | | | | | | * 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-312-17/+44
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix bug with lock file on nonstandard filesystemPaul Eggert2019-10-301-1/+7
| | | | | * src/filelock.c (create_lock_file): Don’t disable user write access to the lock file (Bug#37884).
* 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.
* Fix print.c infloop on circular listsPaul Eggert2019-10-302-36/+32
| | | | | | | | | | | | | | Fix infinite loops in print.c when a circular list is passed to command-error-default-function or to error-message-string. * src/print.c (print_error_message): Use FOR_EACH_TAIL to avoid infloop on circular lists. (print_object): Use FOR_EACH_TAIL_SAFE, as it uses Brent’s teleporting tortoise-hare algorithm which is asymptotically better than the classic tortoise-hare algorithm that the code wsas using. * test/src/print-tests.el (print-circle-2): When print-circle is nil, do not insist on a particular cycle-detection heuristic. (error-message-string-circular): New test.
* Fix keyboard.c infloops on circular listsPaul Eggert2019-10-301-46/+39
| | | | | | | | | | | | | | Fix infinite loops in keyboard.c when a circular list is found in a hook, or in help-event-list, or in the argument of event-convert-list, or in a keymap where a Lucid event type list is expected, or in a menu or tab spec. * src/keyboard.c (safe_run_hooks_error, menu_bar_items) (parse_menu_item, parse_tab_bar_item, parse_tool_bar_item): Use FOR_EACH_TAIL to avoid infloop on circular lists. (help_char_p, Fevent_convert_list, lucid_event_type_list_p): Use FOR_EACH_TAIL_SAFE to avoid infloop on circular lists, when the action is idempotent so a circular list can be treated as a noncircular one.
* Fix fileio.c infloops on circular listsPaul Eggert2019-10-302-10/+16
| | | | | | | | | | | | | Fix infinite loops in fileio.c when a circular list is the value of after_insert_file_functions, buffer-auto-save-file-format, buffer-file-format, or write-region-annotate-functions. * src/fileio.c (Finsert_file_contents, build_annotations): Use FOR_EACH_TAIL to avoid infloop on circular lists. (build_annotations): Use an EMACS_INT, not an int, to count nesting level. * test/src/fileio-tests.el: (fileio-tests--circular-after-insert-file-functions): New test.
* 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-302-21/+19
| | | | | | 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-302-1/+5
| | | | | | | | | * 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-303-0/+21
| | | | | | * 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-302-19/+21
| | | | | | | | | * 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
|
* * etc/NEWS: Update renamed function read-char-from-minibuffer.Juri Linkov2019-10-301-4/+5
|
* 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).
* Document run-with-timerLars Ingebrigtsen2019-10-291-0/+7
| | | | * doc/lispref/os.texi (Timers): Mention run-with-timer (bug#37875).
* Default exotic image formats (like .webp) to image-modeLars Ingebrigtsen2019-10-295-73/+132
| | | | | | | | | | | | | | | | | | * 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.