summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* ; Auto-commit of loaddefs files.Glenn Morris2017-12-011-438/+227
|
* Add macros `thunk-let' and `thunk-let*'Michael Heerdegen2017-12-011-0/+59
| | | | | | | | | | | | | * lisp/emacs-lisp/thunk.el (thunk-let, thunk-let*): New macros. * test/lisp/emacs-lisp/thunk-tests.el: (thunk-let-basic-test, thunk-let*-basic-test) (thunk-let-bound-vars-cant-be-set-test) (thunk-let-laziness-test, thunk-let*-laziness-test) (thunk-let-bad-binding-test): New tests for `thunk-let' and `thunk-let*. * doc/lispref/eval.texi (Deferred Eval): New section. * doc/lispref/elisp.texi: Update menu.
* Make truncate-lines permanently local (bug#15396)Glenn Morris2017-11-301-1/+1
| | | | | | | Width of lines relative to display is rarely a function of major mode. * src/buffer.c (init_buffer_once) <truncate-lines>: Flag as permanently local. * lisp/bindings.el (truncate-lines): Add permanent-local property.
* Merge from origin/emacs-26Glenn Morris2017-11-2916-31/+45
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 408862f02a (origin/emacs-26) ; * lisp/emacs-lisp/bytecomp.el: Tweak m... 9964db4c34 Restore obsolete method of changing byte-compile-dest-file 3dd25aeecb Some minor Tramp corrections d670a15f25 * doc/misc/url.texi (http/https): Fix typo 99d07e8d5e Remove some bogus definition-prefixes from loaddefs 6067f0c702 Shell-quote wildcards when invoking 'vc-git-grep' 0540df10e6 Update documentation of '.dir-locals-2.el' f2441ab320 ; Fix some tiny doc and comment typos 22ff46e6d8 ; Fix some comment typos # Conflicts: # etc/NEWS
| * ; * lisp/emacs-lisp/bytecomp.el: Tweak message formatting in previous.Glenn Morris2017-11-291-1/+3
| |
| * Restore obsolete method of changing byte-compile-dest-fileGlenn Morris2017-11-291-0/+5
| | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-dest-file): Restore seven-year obsolete feature that was removed for six months, since automake uses it.
| * Some minor Tramp correctionsMichael Albinus2017-11-294-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-handle-directory-file-name): Handle several trailing slashes correctly. (tramp-handle-file-selinux-context): New defun. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use `tramp-handle-file-selinux-context'. * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name): Extend test. (tramp-test17-insert-directory): Make check more robust. (tramp-test42-auto-load): Combine several let forms. (tramp-test42-delay-load, tramp-test42-recursive-load) (tramp-test42-remote-load-path, tramp-test43-unload): Rename.
| * Remove some bogus definition-prefixes from loaddefsGlenn Morris2017-11-281-0/+1
| | | | | | | | | | | | * lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads): Don't register a definition prefix from define-erc-module, which adds an erc- prefix to its argument.
| * Shell-quote wildcards when invoking 'vc-git-grep'Robert Pluim2017-11-281-1/+3
| | | | | | | | | | | | * lisp/vc/vc-git.el (vc-git-grep): Apply shell quoting to filename wildcards to ensure globbing is done by git rather than the shell. (Bug#29303)
| * Update documentation of '.dir-locals-2.el'Kaushal Modi2017-11-281-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | See https://lists.gnu.org/r/emacs-devel/2017-11/msg00649.html for more details. * lisp/files.el (dir-locals-file-2): Remove unused constant. * lisp/files.el (dir-locals-file): Mention ".dir-locals-2.el" in the doc string. * doc/lispref/variables.texi (Directory Local Variables): Mention ".dir-locals-2.el". * etc/NEWS: Replace `dir-locals-file-2' mention with `dir-locals-file'.
| * ; Fix some tiny doc and comment typosGlenn Morris2017-11-285-6/+6
| |
| * ; Fix some comment typosGlenn Morris2017-11-273-4/+4
| |
* | Merge from origin/emacs-26Glenn Morris2017-11-291-4/+11
|\ \ | |/ | | | | | | f2e6961a1b ; * lisp/emacs-lisp/bytecomp.el (byte-compile-dest-file): ... 1c8bd8a119 A few small doc fixes for bytecomp.el
| * ; * lisp/emacs-lisp/bytecomp.el (byte-compile-dest-file):Glenn Morris2017-11-271-1/+1
| | | | | | | | Fix typo in previous.
| * A few small doc fixes for bytecomp.elGlenn Morris2017-11-271-4/+11
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (emacs-lisp-file-regexp) (byte-compile-dest-file-function, byte-compile-dest-file): Doc fixes.
* | Merge from origin/emacs-26Glenn Morris2017-11-295-36/+48
|\ \ | |/ | | | | | | | | | | | | | | | | 02d114d6b8 * lisp/tree-widget.el (tree-widget-end-guide): Escape it. ... 0a85d12474 Fix ELisp "Warning Tips" 06d05fec84 Fix Bug#29163 ac64fdb248 Harden exec_byte_code against redefining 'error' 700f74e4c8 Fix Edebug specs for if-let* and and-let* (Bug#29236) 0ded1b41a9 Fix Edebug's handling of dotted specs (bug#6415) 16358d4fcb Improve documentation of "constant" symbols
| * * lisp/tree-widget.el (tree-widget-end-guide): Escape it. (Bug#27797)Glenn Morris2017-11-271-1/+1
| |
| * Fix Bug#29163Michael Albinus2017-11-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-autoload-file-name-regexp): Do not use "\\'" in regexp. (Bug#29163) (top) Do not run (tramp-register-autoload-file-name-handlers) when loading tramp.el. * test/lisp/net/tramp-tests.el (tramp--test-mock-p): New defun. (tramp-test32-environment-variables-and-port-numbers) (tramp-test41-asynchronous-requests): Use it. (tramp-test42-auto-load): New test. (tramp-test43-recursive-load, tramp-test44-remote-load-path) (tramp-test45-delay-load, tramp-test46-unload): Rename.
| * Fix Edebug specs for if-let* and and-let* (Bug#29236)Gemini Lasswell2017-11-261-3/+5
| | | | | | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/subr-x.el (if-let*, if-let): Change Edebug spec to cause Edebug to instrument tests the results of which are not bound to symbols (the (VALUEFORM) case). (and-let*): Change Edebug spec to allow empty body. *test/lisp/emacs-lisp/subr-x-tests.el: (subr-x-and-let*-test-group-1): Add missing quote to erroneous form so Edebug will work on this test.
| * Fix Edebug's handling of dotted specs (bug#6415)Gemini Lasswell2017-11-262-29/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-destructuring-bind): Use cl-macro-list1 instead of cl-macro-list in Edebug spec. * lisp/emacs-lisp/edebug.el (edebug-after-dotted-spec): Delete unused variable. (edebug-dotted-spec): Add docstring. (edebug-match-specs): Allow &optional and &rest specs to match nothing at the tail of a dotted form. Handle matches of dotted form tails which return non-lists. * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-dotted-forms): New test. * test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el: (edebug-test-code-use-destructuring-bind): New function.
* | * lisp/gnus/message.el: Use pcase and cl-libStefan Monnier2017-11-291-34/+36
| | | | | | | | (message-check-news-body-syntax): Avoid string-to-multibyte.
* | Put most erc autoloads in a dedicated file erc-loaddefs.elGlenn Morris2017-11-2830-26/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are features that are only useful after erc.el is loaded. * lisp/erc/erc.el (top-level): Load erc-loaddefs. * lisp/erc/erc-autoaway.el, lisp/erc/erc-button.el: * lisp/erc/erc-capab.el, lisp/erc/erc-compat.el: * lisp/erc/erc-dcc.el, lisp/erc/erc-desktop-notifications.el: * lisp/erc/erc-ezbounce.el, lisp/erc/erc-fill.el: * lisp/erc/erc-identd.el, lisp/erc/erc-imenu.el: * lisp/erc/erc-join.el, lisp/erc/erc-list.el, lisp/erc/erc-log.el: * lisp/erc/erc-match.el, lisp/erc/erc-menu.el: * lisp/erc/erc-netsplit.el, lisp/erc/erc-notify.el: * lisp/erc/erc-page.el, lisp/erc/erc-pcomplete.el: * lisp/erc/erc-replace.el, lisp/erc/erc-ring.el: * lisp/erc/erc-services.el, lisp/erc/erc-sound.el: * lisp/erc/erc-speedbar.el, lisp/erc/erc-spelling.el: * lisp/erc/erc-stamp.el, lisp/erc/erc-track.el: * lisp/erc/erc-truncate.el, lisp/erc/erc-xdcc.el: Set generated-autoload-file to "erc-loaddefs.el".
* | Fix probable typo in elisp-mode constant nameGlenn Morris2017-11-271-4/+5
| | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (emacs-lisp-byte-code-comment-re): Rename from emacs-list-byte-code-comment-re. Add doc string. (elisp--byte-code-comment, elisp-byte-code-syntax-propertize): Update for the above.
* | * lisp/emacs-lisp/cl-macs.el: Fix bug#26073.Stefan Monnier2017-11-271-52/+60
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Implement Common-Lisp's behavior for symbol-macro's let-rebindings. (cl--letf, cl-letf): Don't get fooled into using a plain `let` for symbol-macros. * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet-hide): New test.
* | * lisp/emacs-lisp/cl-macs.el: Fix &key with no key argStefan Monnier2017-11-271-17/+27
| | | | | | | | | | * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-empty-keyargs): New test. * lisp/emacs-lisp/cl-macs.el (cl--do-arglist): Fix it.
* | Merge from origin/emacs-26Paul Eggert2017-11-2573-245/+392
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a89f0b6f33 maint: shorten https://lists.gnu.org/archive/html/... links 8be3aee281 Merge from Gnulib 265cee553f Work around GCC bug 80776 on Fedora 27 x86 dc7a97fb84 Tweak copy-file, rename-file doc cfa2a944d4 Change font-lock-extend-region-multiline handling in mhtml... a8664cc998 Minor cleanup in tramp-gvfs-handle-file-local-copy 55c5b12fa0 Add test for Bug#29423 in Tramp. 3198a1646e Avoid jumbled order in HTML rendered by shr.el 23bfc2d2db Make sure 'dired-filename' property is always put by ls-lisp f7fdaea4c0 A better solution for bug#29347 86e6ed8521 ; * src/thread.c (acquire_global_lock): Fix thinko in last... f300852037 Avoid a hang after C-g while sit-for on a Unix TTY d7fc719ff1 Improve the doc string of 'list-packages' b4f67ebb92 Improve discoverability of 'defvar' for suppressing warnings 8a2b204e64 Improve discoverability of 'read-buffer-completion-ignore-... eea4e9194c Improve documentation of self-insert-uses-region-functions e6e41dac87 Reflect changes in copy-file and rename-file in doc strings 0ec534070f * lisp/progmodes/cc-vars.el (c-offsets-alist): Doc fix. (... 1d0dbdff6c Reorder type predicates in ELisp manual b081ec9dd7 Fix backward scrolling in buffers with header-line 8e40429c96 ; Fix some doc typos ed2c542920 * lisp/bindings.el (buffer-file-coding-system): Add explic... d82474e452 * src/fns.c (syms_of_fns) <overriding-plist-environment>: ... 292c09ff6d Fix incorrect interaction of drag/drop and double click (b... d6fadb1d26 * lisp/menu-bar.el (menu-bar-options-save): Add display-li... daa959efbc * lisp/menu-bar.el (menu-bar-options-save): Add global-dis... 17fc74d1b9 * lisp/follow.el (follow-mode): Restore mode line lighter.... f20c2e2f3d ; Compare process status against 127 exactly 2d203ffb7e Extract the common part of ruby-flymake-simple and ruby-fl... 09944d499a Add Rubocop Flymake backend c65a0ae7c4 ; Fix a typo 7ab7603125 Update nt/INSTALL.W64 (Bug#28601) 11db253c08 Remove incorrect NEWS item about VC state indicator (Bug#2... 2fdc01c036 * lisp/emacs-lisp/byte-run.el (defsubst): Doc fix. 735c8b516e Make c-defun-name analyze more thoroughly a function type ... 92f0c4cd56 Avoid bogus abbreviated file names if HOME changes 8d450453fa * lisp/emacs-lisp/byte-run.el (inline): Give it a doc. 37a3b4ea40 Fix erc keep-place module with new defaults (Bug#29111) 6c312605bf Add window divider faces to NS (bug#29353) # Conflicts: # etc/NEWS # lisp/ruler-mode.el
| * maint: shorten https://lists.gnu.org/archive/html/... linksPaul Eggert2017-11-2553-133/+133
| |
| * Change font-lock-extend-region-multiline handling in mhtml-modeTom Tromey2017-11-251-2/+7
| | | | | | | | | | | | | | | | Bug#29159 * lisp/textmodes/mhtml-mode.el (mhtml-mode): Remove font-lock-extend-region-multiline from font-lock-extend-region-functions. (mhtml--extend-font-lock-region): Call font-lock-extend-region-multiline.
| * Minor cleanup in tramp-gvfs-handle-file-local-copyMichael Albinus2017-11-251-4/+4
| | | | | | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-local-copy): Move error message up.
| * Add test for Bug#29423 in Tramp.Michael Albinus2017-11-251-1/+1
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Add test for Bug#29423.
| * Avoid jumbled order in HTML rendered by shr.elEli Zaretskii2017-11-251-1/+3
| | | | | | | | | | | | * lisp/net/shr.el (shr-render-td): Preserve point, as shr-render-td-1 might move it as a side effect of save-window-excursion. (Bug#29348)
| * Make sure 'dired-filename' property is always put by ls-lispEli Zaretskii2017-11-251-7/+9
| | | | | | | | | | | | * lisp/ls-lisp.el (ls-lisp-classify): Do not put the 'dired-filename' text property on the file name here... (ls-lisp-classify-file): ...put it here instead. (Bug#29423)
| * Improve the doc string of 'list-packages'Eli Zaretskii2017-11-241-1/+3
| | | | | | | | | | * lisp/emacs-lisp/package.el (list-packages): Describe in the doc string the columns shown by the command. (Bug#29420)
| * Improve discoverability of 'read-buffer-completion-ignore-case'Eli Zaretskii2017-11-241-12/+15
| | | | | | | | | | | | | | | | | | * lisp/window.el (switch-to-buffer) (switch-to-buffer-other-window, switch-to-buffer-other-frame): Mention 'read-buffer' in the doc string. (Bug#29389) * doc/emacs/buffers.texi (Select Buffer): Add a cross-reference to where 'read-buffer-completion-ignore-case' is documented.
| * Improve documentation of self-insert-uses-region-functionsEli Zaretskii2017-11-242-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (self-insert-uses-region-functions): Clarify the doc string. * lisp/delsel.el (delete-selection-uses-region-p): Mention 'self-insert-command' in the doc string. (Bug#29373) * doc/lispref/text.texi (Commands for Insertion): Mention 'self-insert-uses-region-functions'. * doc/lispref/modes.texi (Keymaps and Minor Modes): Add a cross-reference to "Commands for Insertion".
| * * lisp/progmodes/cc-vars.el (c-offsets-alist): Doc fix. (Bug#29407)Eli Zaretskii2017-11-241-2/+2
| |
| * ; Fix some doc typosGlenn Morris2017-11-224-5/+5
| |
| * * lisp/bindings.el (buffer-file-coding-system):Glenn Morris2017-11-221-1/+3
| | | | | | | | | | | | Add explicit permanent-local mark. ; * src/buffer.c (init_buffer_once): Comment.
| * * lisp/menu-bar.el (menu-bar-options-save):Glenn Morris2017-11-211-1/+1
| | | | | | | | Add display-line-numbers-type.
| * * lisp/menu-bar.el (menu-bar-options-save):Glenn Morris2017-11-211-1/+2
| | | | | | | | Add global-display-line-numbers-mode. (Bug#28396)
| * * lisp/follow.el (follow-mode): Restore mode line lighter. (Bug#28495)Glenn Morris2017-11-211-0/+1
| |
| * ; Compare process status against 127 exactlyDmitry Gutov2017-11-221-2/+4
| |
| * Extract the common part of ruby-flymake-simple and ruby-flymake-rubocopDmitry Gutov2017-11-221-77/+64
| | | | | | | | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-flymake-simple) (ruby-flymake-rubocop): Extract the common part as ruby-flymake--helper. (ruby--rubocop-flymake-proc): Remove. Use the first proc variable instead.
| * Add Rubocop Flymake backendDmitry Gutov2017-11-221-18/+100
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-flymake-command): Inline the value. There are no known substitutes. (ruby-flymake): Rename to `ruby-flymake-simple' and simplify the docstring. (ruby-flymake-use-rubocop-if-available): New option. (ruby--rubocop-flymake-proc): New variable. (ruby-rubocop-config): New option. (ruby-flymake-rubocop, ruby-flymake-auto): New functions. (ruby-mode): Use `ruby-flymake-auto'.
| * ; Fix a typoDmitry Gutov2017-11-221-1/+1
| |
| * * lisp/emacs-lisp/byte-run.el (defsubst): Doc fix.Glenn Morris2017-11-211-0/+1
| |
| * Make c-defun-name analyze more thoroughly a function type which is a structAlan Mackenzie2017-11-211-3/+19
| | | | | | | | | | | | | | | | | | This fixes bug #29293. * lisp/progmodes/cc-cmds.el (c-defun-name): When a struct (etc.) type is encountered, check whether it is the return type of a function rather than a declaration of the struct itself. Similarly adapt the cond arm which deals with functions properly to recognize struct return types.
| * Avoid bogus abbreviated file names if HOME changesGlenn Morris2017-11-211-24/+34
| | | | | | | | | | | | * lisp/files.el (abbreviate-file-name): If HOME changes, ignore `abbreviated-home-dir'. (Bug#19657#20) * test/lisp/files-tests.el (files-test-abbreviated-home-dir): New.
| * * lisp/emacs-lisp/byte-run.el (inline): Give it a doc.Glenn Morris2017-11-211-2/+6
| |
| * Fix erc keep-place module with new defaults (Bug#29111)Jay Kamat2017-11-211-1/+13
| | | | | | | | | | | | | | | | * lisp/erc/erc-goodies.el (erc-keep-place): Allow erc keep-place to continue working with switch-to-buffer-preserve-window-point set to t, the new default. Copyright-paperwork-exempt: yes