aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix face extension of overlay strings on buffer text with facesEli Zaretskii2019-12-121-5/+19
| | | | | | * src/xdisp.c (face_at_pos): Reject the face returned by 'underlying_face_id' when we are filtering by face attribute, and that attribute's value fails the filter test. (Bug#38563)
* Treat passed strings as raw-text when percent-escaping in epgRobert Pluim2019-12-121-1/+1
| | | | | | | | | | The strings contained in gpg keys can contain UTF-8 data, but can also use percent-escapes to encode non-ASCII chars. When converting those escapes, use 'raw-text' coding system rather than 'string-to-unibyte', since the latter signals an error for non-ASCII characters. * lisp/epg.el (epg--decode-percent-escape): Convert the passed string to raw-text before treating percent escapes (Bug#38512).
* * lisp/emacs-lisp/debug.el (debug-on-entry): Allow undefined functionsStefan Monnier2019-12-111-1/+1
| | | | | | Allow placing debug-on-entry on a function not-yet-defined, which is convenient when the problem you're investigating happens while the relevant files are loaded.
* * lisp/font-lock.el (font-lock-fontify-region): Widen here (bug#38049)Stefan Monnier2019-12-111-34/+34
| | | | (font-lock-default-fontify-region): Instead of here.
* * lisp/calculator.el (cl-lib): Require at run-time as well.Stefan Monnier2019-12-111-1/+1
| | | | Needed since we pass the `cl-flet` macro to `eval` in `calculator-funcall`.
* * lisp/gnus/message.el (message-expand-name-standard-ui): New optionStefan Monnier2019-12-112-14/+101
| | | | | | | | | | | | | (message--old-style-completion-functions): New var. (message-completion-function): Allow functions on `message-completion-alist` to follow the capf protocol. (message-completion-alist): Adjust docstring accordingly. Simplify regexps and make them apply more liberally. (message-expand-group): Use the capf protocol. (completion-category-defaults): Use 'substring' completion style by default for email addresses. (message--bbdb-query-with-words, message--name-table): New functions. (message-expand-name): Use them to obey `message-expand-name-standard-ui`.
* * lisp/net/eudc.el (eudc-query-with-words): New functionStefan Monnier2019-12-111-79/+85
| | | | | Extracted from eudc-expand-inline. (eudc-expand-inline): Use it.
* Avoid infloop in face merging due to bad face specEli Zaretskii2019-12-111-0/+2
| | | | | | * src/xfaces.c (face_inherited_attr): Don't infloop if get_lface_attributes fails in the inner loop. Reported by Yuri D'Elia <wavexx@thregr.org>.
* * src/xterm.c: Remove long-obsolete comments.Paul Eggert2019-12-111-5/+0
|
* Check for GUI frame in ns_color_index_to_rgbaRobert Pluim2019-12-111-7/+12
| | | | | * nsterm.m (ns_color_index_to_rgba): Check that we're using a GUI frame before converting color (Bug#38564).
* Don't spam the echo area and the *Messages* buffer in TrampMichael Albinus2019-12-111-82/+88
| | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered): When called during `revert-buffer', don't spam the echo area and the *Messages* buffer.
* Improve tv_nsec docPaul Eggert2019-12-101-2/+5
| | | | | * doc/lispref/internals.texi (Module Values): Document tv_nsec more accurately.
* ; Spelling fixesPaul Eggert2019-12-1041-93/+91
|
* Just use size_t for emacs_limb_tPaul Eggert2019-12-101-17/+7
| | | | | * src/emacs-module.h.in: Do not include limits.h; no longer needed. (emacs_limb_t, EMACS_LIMB_MAX): Now size_t and SIZE_MAX.
* Add `union' and `intersection' to rx (bug#37849)Mattias EngdegÄrd2019-12-104-98/+289
| | | | | | | | | | | | | | | | | | | | | | These character set operations, together with `not' for set complement, improve the compositionality of rx, and reduce duplication in complicated cases. Named character classes are not permitted in set operations. * lisp/emacs-lisp/rx.el (rx--translate-any): Split into multiple functions. (rx--foldl, rx--parse-any, rx--generate-alt, rx--intervals-to-alt) (rx--complement-intervals, rx--intersect-intervals) (rx--union-intervals, rx--charset-intervals, rx--charset-union) (rx--charset-all, rx--charset-intersection, rx--translate-union) (rx--translate-intersection): New. (rx--translate-not, rx--translate-form, rx--builtin-forms, rx): Add `union' and `intersection'. * test/lisp/emacs-lisp/rx-tests.el (rx-union ,rx-def-in-union) (rx-intersection, rx-def-in-intersection): New tests. * doc/lispref/searching.texi (Rx Constructs): * etc/NEWS: Document `union' and `intersection'.
* Fix XBM files on NS (bug#26133)Alan Third2019-12-103-6/+17
| | | | | | | | | | | | | | Reinstate some of the functionality removed in commit 67a878f78f879ce534232408c34dd11f42dd802b. * src/nsimage.m (ns_image_from_XBM): Use new reverseBytes argument. ([EmacsImage initFromXBM:width:height:fg:bg:reverseBytes:]): Add ability to reverse the contents of each byte for use with XBMs, while still working with fringe bitmaps. * src/nsterm.h ([EmacsImage initFromXBM:width:height:fg:bg:reverseBytes:]): Modified function definition. * src/nsterm.m (ns_draw_fringe_bitmap): Use new reverseBytes argument.
* Fix dabbrev-completion (bug#17899)Alan Third2019-12-102-6/+40
| | | | | | | | | | * lisp/dabbrev.el (dabbrev--check-all-buffers): Add new variable. (dabbrev-completion): Lexical scoping means we can't use let to override global variables, so use setq. (dabbrev--reset-global-variables): Reset new variable. (dabbrev--make-friend-buffer-list): Use new variable. * test/lisp/dabbrev-tests.el (dabbrev-completion-test): (dabbrev-completion-test-with-argument): New tests.
* Fix mouse-position on macOS (bug#4892)Alan Third2019-12-101-14/+38
| | | | | * src/nsterm.m (ns_mouse_position): Implement a search for the frame under the mouse pointer.
* Simplify call to add-to-history in read_minibufFederico Tedin2019-12-101-19/+10
| | | | | | * src/minibuf.c (read_minibuf): Avoid restoring the previous buffer, as this is already done at the end of the function; call `add-to-history' after that point.
* ; * etc/NEWS: Minor copyedits of a recently changed entry.Eli Zaretskii2019-12-101-6/+6
|
* Spelling fixesPaul Eggert2019-12-0949-118/+119
|
* Prefer static to extern in ebrowsePaul Eggert2019-12-091-42/+42
| | | | | | | | | | | | | | | * lib-src/ebrowse.c (info_where, info_cls, info_member) (info_position, options, yyival, yytext, yytext_end, yyout) (yyline, filename, is_ident, is_digit, is_white, f_append) (f_verbose, f_very_verbose, f_structs, f_regexps) (f_nested_classes, min_regexp, max_regexp, inbuffer, in) (inbuffer_size, string_start, class_table, member_table) (namespace_alias_table, global_symbols, current_namespace) (all_namespaces, namespace_stack, namespace_stack_size) (namespace_sp, tk, keyword_table, search_path) (search_path_tail, scope_buffer, scope_buffer_size) (scope_buffer_len): Now static. (options): Now const.
* * lib-src/etags.c (pot_etags_version): Remove; unused.Paul Eggert2019-12-091-2/+0
|
* * lib-src/etags.c (Forth_suffixes): Now static.Paul Eggert2019-12-091-1/+1
|
* Rename faces used in faces-tests.elDmitry Gutov2019-12-103-41/+39
| | | | | | | | * test/data/themes/faces-test-light-theme.el: * test/data/themes/faces-test-dark-theme.el: Update accordingly. * test/lisp/faces-tests.el (faces--test-extend-with-themes): Don't use the diff-mode faces. Rename the definitions.
* Make ':extend' inherited from default spec unless overriddenDmitry Gutov2019-12-1019-94/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/faces.el (face-spec-recalc): Handle the :extend attribute specially and always inherit it from the default spec unless overwritten in a theme (bug#37774). * test/lisp/faces-tests.el (faces--test-data-dir): New variable. (faces--test-extend-with-themes): Use test themes instead of ones from etc/themes. Update expected values. * test/data/themes/faces-test-dark-theme.el: New file. * test/data/themes/faces-test-light-theme.el: New file. * doc/lispref/display.texi (Face Attributes): Update the description of ':extend'. * etc/NEWS: Update the entry for ':extend'. * etc/themes/adwaita-theme.el: * etc/themes/deeper-blue-theme.el: * etc/themes/dichromacy-theme.el: * etc/themes/leuven-theme.el: * etc/themes/light-blue-theme.el: * etc/themes/manoj-dark-theme.el: * etc/themes/misterioso-theme.el: * etc/themes/tango-dark-theme.el: * etc/themes/tango-theme.el: * etc/themes/tsdh-dark-theme.el: * etc/themes/tsdh-light-theme.el: * etc/themes/wheatgrass-theme.el: * etc/themes/wombat-theme.el: Remove the now-redundant ':extend' attribute in all the themes.
* * lisp/emacs-lisp/map-ynp.el (read-answer): Use [remap self-insert-command]Juri Linkov2019-12-101-1/+1
| | | | | | This reverts the last change that replaced [remap self-insert-command] with [t]. The user should have freedom of using any command in the minibuffer. (bug#32738)
* Improve module bignum docPaul Eggert2019-12-091-56/+55
| | | | | | * doc/lispref/internals.texi (Module Values): Tighten up wording and code, and make the long example self-contained. Fit things in margins.
* project-find-regexp: Default to symbol at pointDmitry Gutov2019-12-091-3/+2
| | | | | * lisp/progmodes/project.el (project--read-regexp): Don't rely on the Xref backend to provide the default value.
* Add more tests for face :extend attributeEli Zaretskii2019-12-091-0/+148
| | | | | | | * test/lisp/faces-tests.el (faces--test-extend-with-themes): New set of tests for verifying the :extend attribute across theme loading and unloading, and also via face inheritance. (Bug#37774)
* * lisp/emacs-lisp/map-ynp.el (read-answer): Allow more SHORT-ANSWER types.Juri Linkov2019-12-092-5/+22
| | | | | | | Treat SHORT-ANSWER as a character is characterp returns non-nil. Otherwise, use key-description to print it. Use catch-all [t] in keymap instead of [remap self-insert-command]. (bug#32738)
* * doc/emacs/mini.texi (Minibuffer Edit): Add minibuffer-depth-indicate-mode.Juri Linkov2019-12-093-2/+6
| | | | | | | | | | * doc/emacs/search.texi (Regexp Backslash): Change xref from "(elisp) Syntax Tables" to "(elisp) Syntax Class Table". * doc/lispref/display.texi (Other Display Specs): Change xref from "Images" to "Image Descriptors". (bug#38519)
* * lisp/simple.el (shell-command-on-region): Use set-buffer-major-mode.Juri Linkov2019-12-091-0/+1
| | | | | This enables globalized minor modes explicitly after get-buffer-create creates "*Shell Command Output*" buffer (bug#38111).
* Move recenter/scroll keybindings from minibuffer-local-map to read-char mapJuri Linkov2019-12-093-11/+9
| | | | | | | | | * lisp/minibuffer.el (minibuffer-local-map): Move remap of recenter/scroll keybindings to read-char-from-minibuffer-map. * lisp/subr.el (read-char-from-minibuffer-map): Move remap of recenter/scroll keybindings here from minibuffer-local-map. (bug#38502)
* * lisp/tab-line.el (tab-line-format): Use composite cache key (bug#38522)Juri Linkov2019-12-091-7/+10
|
* Continued fixes to gnus registry loadingEric Abrahamsen2019-12-081-40/+30
| | | | | | | | | | | | * lisp/gnus/gnus-registry.el (gnus-registry-db): Do not initialize this variable to an empty database, that should only be done for new databases. (gnus-registry-load): Remove "force" argument, don't check if the database is already loaded, as we're only going to load it once. (gnus-registry-initialize): Either load the db directly, or set up a hook to do it later. (gnus-registry-install-hooks): Don't load on gnus-read-newsrc-el-hook.
* ; * etc/NEWS: Fix a recently added entry.Eli Zaretskii2019-12-081-1/+7
|
* * lisp/man.el (Man-width-max): New defcustom (bug#32536, bug#9385)Juri Linkov2019-12-083-16/+54
| | | | | | | | | | | | | | (Man-columns): New buffer-local variable. (Man-columns): New function. (Man-start-calling): Call Man-columns and set buffer-local Man-columns. (Man--window-state-change-timer): New internal variable. (Man--window-state-change): New internal function. (Man-fit-to-window): New function. (Man-mode): Add Man--window-state-change to local hook window-state-change-functions. * lisp/image-mode.el (image-fit-to-window): Add window arg to window-buffer call.
* Add hooks for after tab open, before close, and to prevent closingRobert Cochran2019-12-081-46/+88
| | | | | | | * lisp/tab-bar.el (tab-bar-tab-post-open-functions, tab-bar-tab-prevent-close-functions, tab-bar-tab-pre-close-functions): New defcustoms (tab-bar-new-tab-to, tab-bar-close-tab): Use new defcustoms
* Ignore comments and strings when matching JSXJackson Ray Hamilton2019-12-072-18/+27
| | | | | | * lisp/progmodes/js.el (js-jsx--matching-close-tag-pos): Ignore comments and strings. * test/manual/indent/jsx-comment-string.jsx: New test.
* ; * lisp/progmodes/js.el: Fix typoJackson Ray Hamilton2019-12-071-1/+1
|
* ; * lisp/progmodes/js.el: Remove unnecessary concatJackson Ray Hamilton2019-12-071-1/+1
|
* CC Mode: Allow most functions on post-self-insert-hook to be calledAlan Mackenzie2019-12-071-10/+46
| | | | | | | | | | | | | | This contrasts with the previous state where no such functions got called. This fixes bug #38406. * lisp/progmodes/cc-cmds.el (c--unsafe-post-self-insert-hook-functions): New variable. (c--call-post-self-insert-hook-more-safely-1): New function. (c--call-post-self-insert-hook-more-safely): New macro. (c-electric-pound, c-electric-brace, c-electric-slash, c-electric-star) (c-electric-semi&comma, c-electric-colon, c-electric-lt-gt, c-electric-paren): Invoke c--call-post-self-insert-hook-more-safely (which calls most of the hook post-self-insert-hook) at the end of each of the commands.
* Add unload code to tramp-integration.elMichael Albinus2019-12-071-18/+58
| | | | | | * lisp/net/tramp-integration.el (info-lookup->mode-cache) (info-lookup->topic-cache, info-lookup-alist): Declare. (ido, ivy, info-look): Adapt `tramp-integration-unload-hook'.
* Corrections in semantic.texiEli Zaretskii2019-12-071-61/+50
| | | | | | | * doc/misc/semantic.texi (Parser code, Tag handling) (Semanticdb Internals, Analyzer Internals, Tools): Fix file names according to what was actually imported from the original CEDET. (Bug#38451)
* Fix documentation of '-position' server commandEli Zaretskii2019-12-071-2/+2
| | | | | * lisp/server.el (server-process-filter): Fix the description of "-position" command to match the reality. (Bug#38443)
* Ensure buffer is alive in python-pdbtrack-unset-tracked-bufferAndrii Kolomoiets2019-12-071-3/+3
| | | | | | * lisp/progmodes/python.el (python-pdbtrack-unset-tracked-buffer): Check if buffer `python-pdbtrack-tracked-buffer' is alive. (Bug#38413)
* Fix fallout from fixing bug#37782Eli Zaretskii2019-12-071-3/+3
| | | | | | * src/keyboard.c (read_key_sequence): Modify the fix for bug#37782 so that it applies only to keyboard keys, not to other events, such as a new buffer. (Bug#38132)
* Minor fix in the ELisp manualEli Zaretskii2019-12-071-2/+0
| | | | | * doc/lispref/files.texi (Saving Buffers): Remove the reference to the obsolete Fast Lock mode. (Bug#37956)
* Remove duplicate macros from ses.elEli Zaretskii2019-12-071-11/+0
| | | | | * lisp/ses.el (1value, noreturn): Macros deleted, as we nowadays have them in subr.el. (Bug#38514)