summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* ls-lisp: Autoload call instead of cookieTino Calancha2017-08-021-3/+8
| | | | * lisp/ls-lisp.el (eshell-extended-glob): autoload call instead of cookie.
* dired-align-file: Inherit text properties in inserted spacesTino Calancha2017-08-021-1/+1
| | | | | | * lisp/dired.el (dired-align-file): Inherit text properties in inserted spaces (Bug#27899). * test/lisp/dired-tests.el (dired-test-bug27899): Add test.
* Don't assume /bin/sh as the 'sh' location in the local hostTino Calancha2017-08-021-4/+9
| | | | | * lisp/dired.el (dired-insert-directory): Use executable-find in a local host.
* * lisp/gnus/mm-uu.el (mm-uu-org-src-code-block-extract):Katsumi Yamaoka2017-08-021-1/+1
| | | | | Say the handle is already decoded. cf. <yw.87lgnh5cfv.fsf@alex.chromebook> in the info-gnus-english list.
* Fix misalignment in Dired when dired-directory is a consTino Calancha2017-08-021-0/+43
| | | | | | | | * lisp/dired.el (dired--need-align-p, dired--align-all-files): New defuns. (dired-internal-noselect): Call dired--align-all-files when dired-directory is a cons (Bug#27762). * test/lisp/dired-tests.el (dired-test-bug27762): Test should pass.
* Insert subdir content if dir-or-list is a string w/o wildcardsTino Calancha2017-08-011-2/+6
| | | | | | | * lisp/eshell/em-ls.el (eshell-ls--insert-directory): Append '("-d") into 'eshell-ls-dired-initial-args' if 'dired-directory' is a cons or there are wildcars (Bug#27843). * test/lisp/dired-tests.el (dired-test-bug27843): Add test.
* Update todo-mode defcustoms in a less hideous wayStephen Berman2017-08-011-64/+20
| | | | | | | | | | | | | | | | | * lisp/calendar/todo-mode.el (todo-reevaluate-filelist-defcustoms) (todo-reevaluate-default-file-defcustom) (todo-reevaluate-category-completions-files-defcustom) (todo-reevaluate-filter-files-defcustom): Delete these functions. (todo-update-filelist-defcustoms): New function. This replaces todo-reevaluate-filelist-defcustoms, using the 'custom-type' property instead of re-evaluating the defcustoms. (todo-add-file, todo-rename-file, todo-delete-file) (todo-delete-category, todo-move-category) (todo-convert-legacy-files, todo-check-file): Replace call of todo-reevaluate-filelist-defcustoms by todo-update-filelist-defcustoms. (todo-show, todo-category-completions): Replace call of todo-reevaluate-* function by use of 'custom-type' property.
* ; Auto-commit of loaddefs files.Glenn Morris2017-08-011-126/+299
|
* Follow SAUNA recommendations for display-line-numbers-typeMichael Albinus2017-08-012-1/+1
| | | | | | * lisp/display-line-numbers.el (display-line-numbers-type): Do not autoload. * lisp/menu-bar.el (display-line-numbers-type): Declare.
* Small adaptions for directory wildcardsMichael Albinus2017-07-311-0/+5
| | | | | | | | | | * lisp/dired.el (dired-insert-directory): Remove "--dired" when there are wildcards, and the directory is remote. * test/lisp/net/tramp-tests.el (tramp--test-make-temp-name): Adapt docstring. (tramp-test17-dired-with-wildcards): Skip for all methods but those from tamp-sh.p.
* * lisp/dired (dired-trivial-filenames): Use \` and \' to match string boundsTino Calancha2017-07-311-1/+1
|
* ls-lisp: Do not require em-glob at top of the fileTino Calancha2017-07-302-2/+6
| | | | | | | | | | | Require em-glob inside 'ls-lisp--dired'. This is necessary to not break the Emacs build. See following thread for details: https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg01083.html * lisp/ls-lisp.el (dired-goto-next-file) (dired-read-dir-and-switches, eshell-extended-glob): Add function declarations. * lisp/eshell/em-ls.el (dired-goto-next-file): Fix function declaration.
* * lisp/dired.el (dired-insert-directory): Move `file-remote-p' check up.Michael Albinus2017-07-301-10/+16
|
* Change default CSS property faceSimen Heggestøyl2017-07-301-1/+1
| | | | | | * lisp/textmodes/css-mode.el (css-property): Inherit from `font-lock-keyword-face' instead of `font-lock-variable-name-face' to distinguish CSS properties from variables.
* Dired: Handle posix wildcards in directory partTino Calancha2017-07-304-93/+199
| | | | | | | | | | | | | | | | | | | | | | Allow Dired to handle calls like \(dired \"~/foo/*/*.el\"), that is, with wildcards within the directory part of the file argument (Bug#27631). * lisp/files.el (insert-directory-wildcard-in-dir-p): New predicate. (insert-directory-clean): New defun extracted from insert-directory. (insert-directory) * lisp/dired.el (dired-internal-noselect) (dired-insert-directory): Use the new predicate; when it's true, handle the directory wildcards with a shell call. * lisp/eshell/em-ls.el (eshell-ls-use-in-dired): Add/remove both advices. (eshell-ls-unload-hook): New defun. Use it in eshell-ls-unload-hook instead of an anonymous function. (eshell-ls--dired) * lisp/ls-lisp.el (ls-lisp--dired): Advice dired to handle wildcards in the directory part with both eshell-ls and ls-lisp. * etc/NEWS: Announce it. * doc/emacs/dired.texi (Dired Enter): Update manual. * test/lisp/dired-tests.el (dired-test-bug27631): Add test.
* * lisp/find-lisp.el: Enable lexical bindingTino Calancha2017-07-301-1/+1
|
* * lisp/find-dired.el: Enable lexical bindingTino Calancha2017-07-301-1/+1
|
* * lisp/kmacro.el: Use lexical binding.Mark Oteiza2017-07-291-1/+1
|
* Use lexical-binding in dired-aux.elMark Oteiza2017-07-291-3/+1
| | | | | * lisp/dired.el: Use lexical binding. (dired-do-shell-command): Remove unused bindings.
* * lisp/ido.el: Use lexical binding.Mark Oteiza2017-07-291-1/+1
|
* * lisp/whitespace.el: Use lexical binding.Mark Oteiza2017-07-291-1/+1
|
* artist.el: Avoid error with keyboard command invocationStephen Berman2017-07-291-1/+1
| | | | | | | * lisp/textmodes/artist.el (artist-mouse-choose-operation): Call x-popup-menu with t instead of last-nonmenu-event as the value of the position argument; this allows invoking the command from the keyboard without raising an error (bug#27819).
* Preserve point under 'dired-auto-revert-buffer' (third case)Stephen Berman2017-07-291-2/+2
| | | | | | | | | | | | | | | * lisp/files.el (find-file): Use pop-to-buffer-same-window instead of switch-to-buffer. This preserves Dired window point when dired-auto-revert-buffer is non-nil. (Bug#27243) * test/lisp/dired-tests.el (dired-test-bug27243-01) (dired-test-bug27243-02, dired-test-bug27243-03): New tests. The first two replace a previous test that combined them; that test intermittently fails in the Hydra build system, so maybe separating the two cases will help locate the point of failure. The third test involves find-file but is here because it, like the others, is testing the effect of dired-auto-revert-buffer.
* Do not unset user key remaps in dired-xAllen Li2017-07-291-4/+5
| | | | | | | * lisp/dired-x.el (dired-x-bind-find-file): Don't map any keys if user sets dired-x-hands-off-my-keys. (Bug#27828) Copyright-paperwork-exempt: yes
* Improve documentation of 'occur'Eli Zaretskii2017-07-291-0/+5
| | | | | | * doc/emacs/search.texi (Other Repeating Search): * lisp/replace.el (occur): Make the documentation of 'occur' be more accurate when matches overlap. (Bug#27818)
* Minor copyedits of comments in faces.elEli Zaretskii2017-07-291-1/+3
| | | | | * lisp/faces.el (face-font-family-alternatives): More info about requirements from "Monospace Serif".
* * lisp/password-cache.el (password-data): Use a hash-tableStefan Monnier2017-07-282-36/+30
| | | | | | | | | | | | * lisp/auth-source.el (auth-source-magic): Remove. (auth-source-forget+, auth-source-forget-all-cached): Adjust to new format of password-data. (auth-source-format-cache-entry): Just use a cons. (password-cache-remove, password-cache-add, password-reset) (password-read-from-cache, password-in-cache-p): Adjust accordingly. Fixes: bug#26699
* * lisp/subr.el (define-symbol-prop): New functionStefan Monnier2017-07-284-29/+48
| | | | | | | | (symbol-file): Make it find symbol property definitions. * lisp/emacs-lisp/pcase.el (pcase-defmacro): * lisp/emacs-lisp/ert.el (ert-set-test): Use it instead of `put'. (ert-describe-test): Adjust call to symbol-file accordingly.
* * lisp/subr.el (method-files): Move function to cl-generic.elStefan Monnier2017-07-283-21/+20
| | | | | | | | * lisp/emacs-lisp/cl-generic.el (cl-generic-p): New function. (cl--generic-method-files): New function, moved from subr.el. * lisp/emacs-lisp/edebug.el (edebug-instrument-function): Use them. * test/lisp/emacs-lisp/cl-generic-tests.el: * test/lisp/subr-tests.el: Move and adjust method-files tests accordingly.
* Improve doc string of 'locate-dominating-file'Eli Zaretskii2017-07-281-2/+5
| | | | * lisp/files.el (locate-dominating-file): Doc fix. (Bug#27798)
* New commands 'apropos-local-variable', 'apropos-local-value'Drew Adams2017-07-281-0/+42
| | | | | | | | | * lisp/apropos.el (apropos-local-variable, apropos-local-value): New functions. (Bug#27424) * doc/emacs/help.texi (Apropos): Document 'apropos-local-variable' and 'apropos-local-value'. * etc/NEWS: Mention the new commands.
* * lisp/loadhist.el (unload-feature): Remove ad-hoc ELP codeStefan Monnier2017-07-272-5/+5
| | | | * lisp/emacs-lisp/elp.el (loadhist-unload-element): Un-instrument functions.
* Fix C++ class initializers not always being fontified at mode start.Alan Mackenzie2017-07-271-3/+10
| | | | | | | | | | | | The problem here happened when an "outer list" of declarations moved beyond an "inner list" containing class initializers. These weren't being checked for by the code. Also, fix places in c-get-fontification-context where point is undefined. * lisp/progmodes/cc-fonts.el (c-get-fontification-context): when argument not-front-decl is set, test for class initializers. Also, anchor point in places where it is moved and is otherwise undefined.
* Fix variables in C++ "for" statement not always being fontified.Alan Mackenzie2017-07-271-4/+9
| | | | | | | The error happened when there was a comma inside template delimiters. * lisp/progmodes/cc-fonts.el (c-get-fontification-context): In "for" statements, recognise template delimiters containing "," and "&".
* CC Mode: Fix declarator being cut off from terminator by end of jit-lock chunkAlan Mackenzie2017-07-271-7/+20
| | | | | | | If a declarator is so cut off, extend the fontification chunk to include it. * lisp/progmodes/cc-mode.el (c-fl-decl-end): New function. (c-change-expand-fl-region, c-context-expand-fl-region): Use the new function.
* * lisp/vc/smerge-mode.el: Avoid N² blow up in degenerate casesStefan Monnier2017-07-271-17/+49
| | | | | (smerge--refine-long-words): New var. (smerge--refine-chopup-region): Use it.
* * lisp/url/url-cookie.el: Use lexical-bindingStefan Monnier2017-07-271-26/+15
| | | | | | | | | (url-cookie-host-can-set-p): Remove unused var `last'. Use string-suffix-p. (url-cookie-list): De morgan. (url-cookie-quit): Remove. (url-cookie-mode): Inherit from special-mode. (url-cookie-mode-map): Simplify accordingly.
* * lisp/calendar/todo-mode.el (todo-print-buffer-function): Rework docstring.Stefan Monnier2017-07-271-5/+3
|
* * lisp/ruler-mode.el (ruler-mode-ruler): Document problem.Stefan Monnier2017-07-271-0/+4
|
* * lisp/emacs-lisp/cl-generic.el (cl-generic-define-method):Stefan Monnier2017-07-261-17/+18
| | | | Record this as the function's definition site if it's the first def.
* Stop using unibyte buffers for ert backtracesGlenn Morris2017-07-261-2/+1
| | | | | | | | * lisp/emacs-lisp/ert.el (ert-results-pop-to-backtrace-for-test-at-point): Set multibyte true, not false. This copies a debugger-setup-buffer change from 2009-08-30, and stops the "Backtrace for" header line containing ^X and ^Y.
* Fix semantic-symref-parse-tool-output-one-line after 644cdd1aa0Dmitry Gutov2017-07-261-17/+16
| | | | | | | * lisp/cedet/semantic/symref/grep.el (semantic-symref-grep--line-re): Delete. (semantic-symref-parse-tool-output-one-line): Use regexp and group numbers from (grep-regexp-alist).
* Fix cl-defmethod indentationGrégoire Jadi2017-07-261-1/+1
| | | | | * lisp/emacs-lisp/cl-generic.el (cl-defmethod): Declare (indent defun). Fixes bug#23994.
* Fix two customization types in frame.elMartin Rudalics2017-07-261-2/+2
| | | | | * lisp/frame.el (window-divider-default-bottom-width) (window-divider-default-right-width): Fix customization types.
* Dired: Support eshell-ls from the beginning if the user wants toTino Calancha2017-07-261-0/+1
| | | | | | * lisp/dired.el (dired-insert-directory): Check for eshell-ls as well (Bug#27817). * test/lisp/dired-tests.el (dired-test-bug27817): Add test.
* * lisp/progmodes/sh-script.el (sh-mode): Recognize mkshrc.Mark Oteiza2017-07-251-0/+1
|
* * lisp/emacs-lisp/eieio-compat.el (eieio--defgeneric-init-form):Stefan Monnier2017-07-251-1/+2
| | | | Adjust to change in cl-generic-ensure-function.
* ls-lisp: Add an unload function and enable lexical bindingTino Calancha2017-07-251-1/+7
| | | | | | Enable lexical binding. * lisp/ls-lisp.el (ls-lisp-unload-function): New defun. * test/lisp/ls-lisp.el (ls-lisp-unload): Add test.
* register-read-with-preview: Quit if user input C-g or ESCTino Calancha2017-07-251-0/+4
| | | | | | | * lisp/register.el (register-read-with-preview): Quit if user input C-g or ESC (bug#27634). * doc/emacs/regs.texi (Registers): Update manual. * test/lisp/register-tests.el (register-test-bug27634): Add test.
* ; Fix previous commitMark Oteiza2017-07-241-3/+2
| | | | | | | Functions prefixed with `turn-on-foo' are quite old, and in general subsumed by the corresponding `foo-mode` command. * lisp/display-line-numbers.el (turn-on-display-line-numbers-mode): Rename with library prefix, mark as internal. Nix autoload.