aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | * lisp/textmodes/bibtex.el: Avoid `eval`Stefan Monnier2020-05-111-50/+59
| | | | | | | | | | | | | | | | In the top-level construction of the entry-type commands, use `defalias` instead of (eval `(defun ...)). (bibtex-insert-kill): Strength reduce `eval` => `symbol-value`. (bibtex-autokey-before-presentation-function): Avoid nil value.
* | * lisp/subr.el (dolist, dotimes, combine-change-calls): Cosmetic tweaksStefan Monnier2020-05-111-9/+9
| | | | | | | | | | | | (dolist, dotimes): Adjust comment since testing `lexical-binding` is supposed to be reliable. (combine-change-calls): Add debug and indent specs.
* | * lisp/emacs-lisp/syntax.el (syntax-propertize): Use run-hook-wrappedStefan Monnier2020-05-111-17/+21
| | | | | | | | | | This way we avoid making assumptions about the content of syntax-propertize-extend-region-functions
* | * lisp/ielm.el: Handle corner case where */**/*** are not yet boundStefan Monnier2020-05-111-18/+13
| | | | | | | | | | | | Remote redundant :group args. (ielm-eval-input): Use bound-and-true-p for */**/***
* | Map "mail/compose" icon to "mail-message-new" in GTKDmitry Gutov2020-05-111-1/+1
| | | | | | | | * lisp/term/x-win.el (x-gtk-stock-map): One more icon mapping.
* | Use the "modern" toolbars in Gnus againDmitry Gutov2020-05-111-3/+3
| | | | | | | | | | | | * lisp/gnus/gmm-utils.el (gmm-tool-bar-style): Undo the breakage from commit d88118db37dd (https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg02094.html).
* | Use better icons on GTK in message-mode and isearchDmitry Gutov2020-05-112-4/+6
| | | | | | | | | | | | | | | | * lisp/gnus/message.el (message-tool-bar-retro): Use non-Gnus-specific icon. * lisp/term/x-win.el (x-gtk-stock-map): Use more themed icons (bug#40990).
* | * lisp/emacs-lisp/pcase.el: Don't bind unused vars in branchesStefan Monnier2020-05-101-20/+27
| | | | | | | | | | | | | | (pcase--fgrep): Change calling convention to take bindings rather than just variables. (pcase--funcall, pcase--eval): Adjust to this new calling convention. (pcase--expand): Use `pcase--fgrep` to bind only the vars that are used.
* | * lisp/emacs-lisp/eieio.el (eieio pcase macro): Fix last-minute typoStefan Monnier2020-05-101-1/+1
| |
* | Prefer function-put over put for setting browse-url-browser-kind.Tassilo Horn2020-05-101-38/+41
| | | | | | | | | | * lisp/net/browse-url.el: Prefer `function-put' over `put' for setting `browse-url-browser-kind' symbol property.
* | * lisp/emacs-lisp/eieio.el (eieio pcase macro): Remove unused var `is`Stefan Monnier2020-05-101-10/+9
| |
* | Use lexical-binding in glasses.el and add testsSimen Heggestøyl2020-05-102-10/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/glasses.el: Use lexical-binding. (glasses-separator, glasses-original-separator, glasses-face) (glasses-separate-parentheses-p) (glasses-separate-parentheses-exceptions) (glasses-separate-capital-groups, glasses-uncapitalize-p) (glasses-uncapitalize-regexp, glasses-convert-on-write-p): Remove redundant :group args. * test/lisp/progmodes/glasses-tests.el: New file with tests for glasses.el.
* | Allow underscores in CSS variable namesSimen Heggestøyl2020-05-104-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/css-mode.el (css-nmchar-re): Allow underscores in variable names (and in identifiers in general). * test/manual/indent/css-mode.css: Add some examples of variable names with underscores in them. * test/manual/indent/less-css-mode.less: Add some examples of variable names with underscores in them. * test/manual/indent/scss-mode.scss: Add some examples of variable names with underscores in them.
* | Add containment module to CSS property listSimen Heggestøyl2020-05-101-0/+4
| | | | | | | | | | * lisp/textmodes/css-mode.el (css-property-alist): Add new properties from CSS Containment Module Level 1.
* | Add writing modes module to CSS property listSimen Heggestøyl2020-05-101-2/+10
| | | | | | | | | | * lisp/textmodes/css-mode.el (css-property-alist): Add new properties from the CSS Writing Modes Level 3 module.
* | Use lexical-binding in help-mode.el and add testsSimen Heggestøyl2020-05-092-6/+176
| | | | | | | | | | | | | | | | | | | | | | * lisp/help-mode.el: Use lexical-binding. (help-mode-map, help-mode-menu, help-mode-setup) (help-mode-finish): Make spelling of "Help mode" consistent throughout the doc strings (also making it consistent with the spelling of "Help mode" used in the Elisp manual). (help-do-xref): Re-indent to make the else-branch easier to see. * test/lisp/help-mode-tests.el: New file with tests for help-mode.el.
* | * src/xdisp.c (Fwindow_text_pixel_size): Fix previous merge.Glenn Morris2020-05-091-4/+4
| |
* | Merge from origin/emacs-27Glenn Morris2020-05-0911-44/+106
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be0d1cac83 (origin/emacs-27) Small fix for type of 'display-fill-colu... c5e5839776 Fix customization of 'display-fill-column-indicator-charac... d5c184aa3e Refer to fill column indicator Info node in some places. e13300ae50 Merge branch 'emacs-27' of git.sv.gnu.org:/srv/git/emacs i... 0bae57033f Fix GTK's Tool Bar menu radio buttons 4c98aa7ea5 Minor clarifications in NEWS a1cbd05f38 Improve documentation of 'with-suppressed-warnings'. 4a895c1b26 Fix a typo in a comment 2caf3e997e Improve documentation of Hi Lock mode 7081c1d66f Fix typos in the Emacs user manual 0385771e2f Fix references to Speedbar in VHDL mode a76cafea0d Fix handling of FROM = t and TO = t by 'window-text-pixel-... # Conflicts: # etc/NEWS # src/xdisp.c
| * Small fix for type of 'display-fill-column-indicator-character'Philipp Stephani2020-05-091-1/+1
| | | | | | | | | | | | * lisp/cus-start.el (standard): Don't mark t as safe file-local value for 'display-fill-column-indicator-character', as that value isn't allowed.
| * Fix customization of 'display-fill-column-indicator-character'Eli Zaretskii2020-05-091-2/+9
| | | | | | | | | | * lisp/cus-start.el (display-fill-column-indicator-character): Fix the customization form. (Bug#41145)
| * Refer to fill column indicator Info node in some places.Philipp Stephani2020-05-092-5/+10
| | | | | | | | | | | | | | | | * src/xdisp.c (syms_of_xdisp): Add reference to manual in documentation strings for variables related to fill column indicators. * lisp/display-fill-column-indicator.el (display-fill-column-indicator) (display-fill-column-indicator-mode): Add reference to manual.
| * Merge branch 'emacs-27' of git.sv.gnu.org:/srv/git/emacs into emacs-27Martin Rudalics2020-05-091-5/+11
| |\
| | * Minor clarifications in NEWSEli Zaretskii2020-05-091-5/+11
| | | | | | | | | | | | | | | * etc/NEWS: Tell how to revert to previous behaviors regarding displaying messages when the minibuffer is active. (Bug#41087)
| * | Fix GTK's Tool Bar menu radio buttonsMartin Rudalics2020-05-091-2/+2
| |/ | | | | | | | | | | * lisp/menu-bar.el (menu-bar-showhide-tool-bar-menu): Fix typo that makes the radio buttons pretend that the tool bar is always shown on the left side of the frame.
| * Improve documentation of 'with-suppressed-warnings'.Philipp Stephani2020-05-081-5/+6
| | | | | | | | | | | | * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Refer to 'byte-compile-warnings' instead of 'byte-compile-warning-types', as only the former variable documents the available warning types.
| * Fix a typo in a commentEli Zaretskii2020-05-081-1/+1
| | | | | | | | | | * lisp/display-fill-column-indicator.el: Fix a typo in a comment. Suggested by david s <ds@fastmail.com>.
| * Improve documentation of Hi Lock modeEli Zaretskii2020-05-081-4/+16
| | | | | | | | | | | | | | * lisp/hi-lock.el (hi-lock-mode, hi-lock-face-buffer) (hi-lock-face-phrase-buffer, hi-lock-face-symbol-at-point): Clarify when 'hi-lock-mode' will use Font Lock and when it will use overlays. (Bug#41124)
| * Fix typos in the Emacs user manualEli Zaretskii2020-05-083-3/+9
| | | | | | | | | | | | | | | | | | * doc/emacs/calendar.texi (Holidays): Fix usage of non-ASCII accents. * doc/emacs/custom.texi (Init Rebinding): Fix a cross-reference. * doc/emacs/dired.texi (Operating on Files): Make the cross-reference to "VC Delete/Rename" be to a different manual in the printed version. (Bug#41100)
| * Fix references to Speedbar in VHDL modeBjörn Holby2020-05-081-1/+1
| | | | | | | | | | | | | | * lisp/progmodes/vhdl-mode.el (vhdl-speedbar-initialize): Update references to Speedbar variables. (Bug#41084) Copyright-paperwork-exempt: yes
| * Fix handling of FROM = t and TO = t by 'window-text-pixel-size'Eli Zaretskii2020-05-081-15/+38
| | | | | | | | | | * src/xdisp.c (Fwindow_text_pixel_size): Use byte position for accessing buffer text, not character positions. (Bug#41125)
* | Add new filter command to Package Menu (Bug#39903)Pieter van Oostrum2020-05-094-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-filter-marked): New filter command. * test/lisp/emacs-lisp/package-tests.el (package-test-list-filter-marked): New test. (package-menu-mode-menu): (package-menu-mode-map): Update menu to include new filter command. * doc/emacs/package.texi (Package Menu): Document the new command. * etc/NEWS: Announce the new command.
* | Improve nonnull checking with GCC in emacs-modulePaul Eggert2020-05-091-6/+10
| | | | | | | | | | | | * src/emacs-module.h.in (EMACS_ATTRIBUTE_NONNULL): Also do the nonnull check with GCC. (The old code did the check with Clang but not with GCC.)
* | Update from GnulibPaul Eggert2020-05-099-52/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | This incorporates: 2020-05-09 stdio: don't redefine _GL_ATTRIBUTE_FORMAT 2020-05-09 dirent, stdlib, string: don't redefine _GL_ATTRIBUTE_PURE 2020-05-08 limits-h: define LONG_BIT correctly on Haiku/x86_64 2020-05-08 ignore-value tests: use module 'attribute' 2020-05-06 attribute: minor style fixes * build-aux/config.sub, doc/misc/texinfo.tex, lib/attribute.h: * lib/dirent.in.h, lib/limits.in.h, lib/stdio.in.h, lib/stdlib.in.h: * lib/string.in.h, m4/gnulib-common.m4: Copy from Gnulib.
* | cc-mode: extend regexp used by ‘c-or-c++-mode’Michal Nazarewicz2020-05-092-8/+25
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-mode (c-or-c++-mode--regexp): Expand the regexp to match some more C++-only constructs and recognise a few more standard C++ header files. Also make sure identifiers start with non-digit. (c-or-c++-mode): Add ‘(interactive)’ declaration. * test/lisp/progmodes/cc-mode-tests.el (c-or-c++-mode): Add test case for the newly recognised constructs.
* | cc-mode: add ‘c-lineup-ternary-bodies’ (bug#41061)Michal Nazarewicz2020-05-094-0/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ‘c-lineup-ternary-bodies’ function which, when used as a c lineup function, aligns question mark and colon of a ternary operator. For example: return arg % 2 == 0 ? arg / 2 : (3 * arg + 1); * lisp/progmodes/cc-align.el (c-lineup-ternary-bodies): New function. * doc/misc/cc-mode.texi (Operator Line-Up Functions): Document the new function. * test/lisp/progmodes/cc-mode-tests.el (c-lineup-ternary-bodies): New test case.
* | Only treat display strings as buttons if they have 'button' propertyClément Pit-Claudel2020-05-091-4/+6
| | | | | | | | | | | | * lisp/button.el (push-button): Use 'posn-point' instead of 'posn-string' if the string doesn't have the 'button' property (Bug#40859).
* | Prevent hanging in next-single-char-property-changeFederico Tedin2020-05-091-5/+7
| | | | | | | | | | | | | | * src/textprop.c (Fnext_single_char_property_change): Clarify in the doc string the behavior when LIMIT is past the end of OBJECT. Stop the search when position gets to end of buffer, for when LIMIT is beyond that. (Bug#40000)
* | Fix reading kind argument in browse-url-with-browser-kind.Tassilo Horn2020-05-081-5/+5
| | | | | | | | | | * lisp/net/browse-url.el (browse-url-with-browser-kind): Convert KIND argument queried from the user to a symbol.
* | Allow predicates for matching in browse-url-handlers.Tassilo Horn2020-05-083-23/+41
| | | | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-handlers): Allow predicates for matching in browse-url-handlers. Adapt docs and customize type. (browse-url-select-handler): Support predicates in addition to regexes. (browse-url--non-html-file-url-p): New defun. (browse-url-default-handlers): Use above predicate entry instead of two entries.
* | Make pcase pattern 'eieio' respect slot access related functions.Zhu Zihao2020-05-081-10/+7
| | | | | | | | | | * lisp/emacs-lisp/eieio.el: Make pcase pattern respect slot-missing and slot-unbound
* | ; Update recent function declaration in dnd.elBasil L. Contovounesios2020-05-071-1/+2
| | | | | | | | | | * lisp/dnd.el (dnd-handle-one-url): Update arglist declaration for browse-url-select-handler following recent change.
* | Allow browsing an URL explicitly with an internal or external browser.Tassilo Horn2020-05-071-0/+28
| | | | | | | | * lisp/net/browse-url.el (browse-url-with-browser-kind): New command.
* | Categorize browse-url functions into internal and external ones.Tassilo Horn2020-05-073-5/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el: Write package documentation explaining browse-url-browser-kind symbol property. Categorize existing browse-url functions into internal and external ones. (browse-url--browser-kind, browse-url--browser-kind-mailto) (browse-url--browser-kind-man, browse-url--browser-kind-browser): New functions. (browse-url-select-handler): Add KIND argument to restrict selection. * lisp/dnd.el (dnd-handle-one-url): Only select browse-url handler of kind `internal'. * lisp/net/eww.el (eww): Add `browse-url-browser-kind' symbol property with value `internal'.
* | ; Fix recent byte-compiler warning in dnd.el againBasil L. Contovounesios2020-05-071-0/+2
| | | | | | | | | | | | * lisp/dnd.el (dnd-handle-one-url): Declare new autoloaded function browse-url-select-handler to silence the byte-compiler during 'make bootstrap'.
* | ; Improve recent change to browse-url.elBasil L. Contovounesios2020-05-071-1/+2
| | | | | | | | | | * lisp/net/browse-url.el (browse-url-select-handler): Use lwarn with specific warning type, as recommended in "(elisp) Warning Basics".
* | Don't increment array index in cl-loop twice (Bug#40727)Noam Postavsky2020-05-072-1/+5
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause): Put the temp-idx increment in cl--loop-body, leaving just the side-effect free testing of the index for both cl--loop-body and cl--loop-conditions. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-and-arrays): Extend test to cover this case.
* | Revert "cl-loop: Calculate the array length just once"Noam Postavsky2020-05-072-10/+10
| | | | | | | | | | | | | | | | It fails when using 'and' (parallel bindings) for arrays (Bug#40727). * lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause): Revert to recomputing array length. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-and-arrays): New test.
* | Fix browse-url (remove debugging leftover).Tassilo Horn2020-05-071-1/+1
| | | | | | | | | | * lisp/net/browse-url.el (browse-url): Fix "No suitable browser for URL" always popping up.
* | Handle signals in Tramp's process-fileMichael Albinus2020-05-073-0/+10
| | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-process-file): * lisp/net/tramp-sh.el (tramp-sh-handle-process-file): Handle signals. * test/lisp/net/tramp-tests.el (tramp-test28-process-file): Adapt test.
* | Refactor browse-url handler selection into separate function.Tassilo Horn2020-05-072-40/+36
| | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-select-handler): New function. (browse-url): Use it. * lisp/dnd.el (dnd-handle-one-url): Use it.