summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* scheme.el: Turn literal tabs into \tJorgen Schaefer2016-05-071-3/+3
| | | | | | * lisp/progmodes/scheme.el: The last change to turn tabs into spaces also caught some literal tabs in character classes. Fix this by adding \t to those classes.
* Make 'backtab' work in table-mode on text terminalsTino Calancha2016-05-071-0/+1
| | | | | * lisp/textmodes/table.el (table-cell-bindings): Bind 'backtab' explicitly. (Bug#23456)
* Correct hack-local-variables change from Thu May 5 11:05:49 2016 +0000Alan Mackenzie2016-05-061-1/+4
| | | | | | | | | | | Prevent hack-local-variables being called from the fundamental-mode mode call early in normal-mode. This fixes bug #23460 and bug #23463. * lisp/files.el (normal-mode) Replace call to fundamental-mode with calls to the things it calls, with the exception of hack-local-variables. * etc/NEWS: Add an entry to note the calling of hack-local-variables at each major mode initialization.
* Merge from origin/emacs-25Paul Eggert2016-05-0511-101/+158
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 50650cb Doc fixes for fclist and grep 5e814e0 Minor doc fixes for quoting 3347a73 `nreverse' the marker pairs list 1a4127d Use save-excursion in xref-location-marker more ab3ba91 shell-quote-argument DIR when appropriate 922c7a3 Rework xref-query-replace-in-results 3fe3510 * lisp/replace.el (query-replace-read-from): Use minibuffer-w... 0932b94 Fix todo-mode bug involving archived items (bug#23447) e68ad1f ; * etc/NEWS: Tiny edit. (Bug#23432) adc80b7 ; * test/automated/xref-tests.el: Add copyright and license. 4d8fd9c Handle "empty line" regexp in xref searches f559b37 Add tests for xref-collect-matches 6428aa0 Use grep-find-ignored-directories instead of vc-directory-exc... 6f82d8e Clear buffer-undo-list when showing xrefs c68a091 Note the quote translation in `message' in section "incompati... 52f86a7 * etc/NEWS: Mention (message "%s" (format ...)). 93703c5 (Common Keywords): Correct what missing :group means 79e5800 Improve documentation of Dired's 'A' and 'Q' commands 2ea2a2f Doc fixes for quoting 8544b98 posnp doc clarification 805204f Mention what a missing :group does ec554d7 Fix documentation of dired-aux search/replace commands
| * Doc fixes for fclist and grepPaul Eggert2016-05-053-3/+3
| | | | | | | | | | | | A newline is needed between two fc-list calls. egrep and fgrep have been withdrawn from POSIX, so document grep -E and grep -F instead.
| * `nreverse' the marker pairs listDmitry Gutov2016-05-051-1/+1
| | | | | | | | | | * lisp/progmodes/xref.el (xref--buf-pairs-iterator): `nreverse' the marker pairs list for each buffer before returning.
| * Use save-excursion in xref-location-marker moreDmitry Gutov2016-05-052-4/+6
| | | | | | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (xref-location-marker): Use save-excursion, in order not to alter the value of point if the buffer is currently open in the background (problem reported by Robert Weiner). * lisp/progmodes/etags.el (xref-location-marker): Same.
| * shell-quote-argument DIR when appropriateDmitry Gutov2016-05-052-3/+5
| | | | | | | | | | | | | | | | | | * lisp/progmodes/project.el (project-file-completion-table): `shell-quote-argument' DIR as well. * lisp/progmodes/xref.el (xref--rgrep-command): Pass DIR through `shell-quote-argument' (bug#23453). Thanks for Kaushal Modi for pointing out the problem. Assert that DIR doesn't start with `~'.
| * Rework xref-query-replace-in-resultsDmitry Gutov2016-05-051-50/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref-query-replace-in-results): Collect all xrefs from the buffer first, then delegate most of the processing to the value returned by xref--buf-pairs-iterator. (xref--buf-pairs-iterator): New function. Return an "iterator" which partitions returned markers into buffers, and only processes markers from one buffer at a time. When an xref is out of date, skip it with a message instead of signaling error (bug#23284). (xref--outdated-p): Extract from xref--buf-pairs-iterator. Trim CR from both strings before comparing. (xref--query-replace-1): Remove the variable current-buf, no need to track it anymore. Simplify the filter-predicate and search functions accordingly. Iterate over buffer-markers pairs returned by the iterator, and call `perform-replace' for each of them. Use multi-query-replace-map (bug#23284). Use `switch-to-buffer' every time after the first, in order not to jump between windows. * test/automated/xref-tests.el (xref--buf-pairs-iterator-groups-markers-by-buffers-1) (xref--buf-pairs-iterator-groups-markers-by-buffers-2) (xref--buf-pairs-iterator-cleans-up-markers): New tests.
| * * lisp/replace.el (query-replace-read-from): Use minibuffer-with-setup-hookJuri Linkov2016-05-041-12/+9
| | | | | | | | | | to set minibuffer-local value of text-property-default-nonsticky. (Bug#23418, bug#23127)
| * Fix todo-mode bug involving archived items (bug#23447)Stephen Berman2016-05-041-20/+19
| | | | | | | | | | | | | | | | | | | | | | * lisp/calendar/todo-mode.el (todo-jump-to-category): When jumping from Todo Categories mode to a category with only archived items and todo-skip-archived-categories is non-nil, make sure the archive file buffer is in Todo Archive mode to prevent todo-category-select from raising an error, and don't set todo-current-todo-file, since that makes todo-show display the archived category. Remove a no-op call to kill-buffer, which is already called in todo-insert-category-line.
| * Handle "empty line" regexp in xref searchesDmitry Gutov2016-05-041-1/+5
| | | | | | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref--collect-matches-1): Stop after one match if re-search-forward doesn't move point (bug#23426). * test/automated/xref-tests.el (xref-collect-matches-finds-an-empty-line-regexp-match): Uncomment test.
| * Use grep-find-ignored-directories instead of vc-directory-exclusion-listDmitry Gutov2016-05-042-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired-aux.el (dired-do-find-regexp): Use grep-find-ignored-directories instead of vc-directory-exclusion-list. The result should be functionally similar (the former uses the latter as the default value), but it should be more consistent and appropriate WRT user customizations. (dired-do-find-regexp-and-replace): Update the docstring. * lisp/dired.el: Update the corresponding autoloads. * doc/emacs/dired.texi (Operating on Files): Update the documentation accordingly.
| * Clear buffer-undo-list when showing xrefsDmitry Gutov2016-05-041-1/+3
| | | | | | | | | | | | * lisp/progmodes/xref.el (xref--show-xref-buffer): Clear buffer-undo-list and temporarily bind it to t while rendering the buffer contents.
| * Improve documentation of Dired's 'A' and 'Q' commandsEli Zaretskii2016-05-032-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/dired-aux.el (dired-do-find-regexp) (dired-do-find-regexp-and-replace): Mention 'grep-find-ignored-files' and 'vc-directory-exclusion-list', and also the fact that REGEXP should be palatable by Grep. (Bug#23426) * lisp/dired.el: Update the corresponding autoload forms. * doc/emacs/dired.texi (Operating on Files): Mention 'grep-find-ignored-files' and 'vc-directory-exclusion-list'. (Bug#23429)
| * Doc fixes for quotingPaul Eggert2016-05-031-4/+10
| | | | | | | | | | | | | | | | | | * doc/emacs/text.texi, doc/lispintro/emacs-lisp-intro.texi: * doc/lispref/control.texi, doc/lispref/display.texi: * doc/lispref/help.texi, doc/lispref/strings.texi, lisp/subr.el: * src/callint.c, src/doprnt.c, src/editfns.c: Document quoting a bit more systematically. Problem reported by Alan Mackenzie (Bug#23425).
| * posnp doc clarificationLars Ingebrigtsen2016-05-031-0/+1
| | | | | | | | | | * lisp/subr.el (posnp): Mention that a posn object is returned from `event-start' (bug#18211).
| * Fix documentation of dired-aux search/replace commandsEli Zaretskii2016-05-022-5/+11
| | | | | | | | | | | | * lisp/dired-aux.el (dired-do-find-regexp) (dired-do-find-regexp-and-replace): Doc fixes. (Bug#23429) * lisp/dired.el: Update the corresponding autoload forms.
* | Support completion of HTML tags in CSS selectorsSimen Heggestøyl2016-05-051-3/+31
| | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/css-mode.el (css--html-tags): New variable holding a list of HTML tags for completion. (css--nested-selectors-allowed): New variable for determining whether nested selectors are allowed in the current mode. (css--complete-selector): New function for completing part of a CSS selector. (css-completion-at-point): Support completion of selectors. (scss-mode): Allow nested selectors.
* | Make `R' in eww work more reliablyLars Ingebrigtsen2016-05-051-3/+5
| | | | | | | | | | * lisp/net/eww.el (eww-score-readability): Protect against null children.
* | Call hack-local-variables from major modes rather than from file visitingAlan Mackenzie2016-05-052-16/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents file/directory local variables from being lost when the major mode is set or changed. This fixes bug #15577 and bug #23407. * lisp/files.el (normal-mode): Call `hack-local-variables' when the major mode function hasn't already done so. (hack-local-variables): Rename parameter `mode-only' to `handle-mode', make its previous non-nil setting be t, and introduce the following action for a non-nil non-t value: apply all settings apart from `mode'. * lisp/subr.el (run-mode-hooks): call `hack-local-variables' for buffers which are visiting files. * doc/emacs/custom.texi (File Variables): Note that setting a major mode also sets file variables. (Directory Variables): Note that `mode', `eval', and `unibyte' can be set as dir local variables, but `coding' can't. * doc/lispref/modes.texi (Major Mode Conventions): Say that `run-mode-hooks' also calls `hack-local-variables'. (Auto Major Mode): Say that `find-file' no longer runs `hack-local-variables', as from 25.2. Remove vagueness from `normal-mode' and `set-auto-mode' by saying that the mode IS SET, not merely "selected" or "chosen". (Mode Hooks): Document change to `run-mode-hooks'. * doc/lispref/variables.texi (File Local Variables): Document change to `hack-local-variables'.
* | tramp-sh.el: Work around a stat bugMichael Albinus2016-05-051-2/+4
| | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-get-remote-stat): Do not use stat versions which produce shell quoted output. See also coreutils Bug#23422.
* | Allow `text-quoting-style' to be `leave', i.e. no translation of quotes.Alan Mackenzie2016-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/help-fns.el (describe-function-1): Don't set coding system to UTF-8 when text-quoting-style is `leave'. * src/lisp.h (enum text_quoting_style): Add identifier LEAVE_QUOTING_STYLE. * src/doc.c (syms_of_doc): New symbol "leave". Amend doc string of `text_quoting_style'. (text_quoting_style): Handle `leave' by returning LEAVE_QUOTING_STYLE. (Fsubstitute_command_keys): Don't translate quotes when quoting_style is LEAVE_QUOTING_STYLE. * src/editfns.c (styled_format): Set quoting_style to -1 when text-quoting-style is `leave'.
* | * lisp/emulation/viper(-cmd)?.el: Use lexical-binding.Stefan Monnier2016-05-042-313/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emulation/viper-cmd.el: Use lexical-binding. (viper-change-state-to-vi, viper-change-state-to-emacs): Allow dummy args, for use in advice-add. (viper--init-message): Rename from init-message. (viper-minibuffer-standard-hook): Adjust accordingly. (viper-undo): Remove unused var `modified'. (viper-read-string-with-history, viper-set-searchstyle-toggling-macros): Don't use dynamic vars as args. (viper-submit-report): Clarify use of dynamic vars. * lisp/emulation/viper.el: Use lexical-binding and nadvice. Remove redundant :group keywords. Group the (if viper-mode) at top-level. Use add-function rather than a `(lambda ...). (viper--advice-list): New var. (viper--advice-add, viper--deactivate-advice-list): New funs. (viper-go-away, viper-set-hooks, viper-non-hook-settings): Use them. (viper-non-hook-settings): Don't hook into find-file any more.
* | * lisp/vc/ediff-util.el: Use lexical-binding.Stefan Monnier2016-05-041-12/+16
| |
* | * lisp/progmodes/js.el (js-syntax-propertize): Recognize shebang line.Stefan Monnier2016-05-041-7/+9
| |
* | Add an animation sanity checkLars Ingebrigtsen2016-05-041-4/+9
| | | | | | | | | | * lisp/image.el (image-multi-frame-p): Give up on animations if it seems like they are too slow (bug#23431).
* | (shr-rescale-image): Clarify logic slightlyLars Ingebrigtsen2016-05-031-2/+2
| | | | | | | | * lisp/net/shr.el (shr-rescale-image): Clarify logic slightly.
* | Bind `widget-button-click' to mouse-1/-2 instead of down-mouse-1/-2Martin Rudalics2016-05-031-2/+2
| | | | | | | | | | | | * lisp/wid-edit.el (widget-keymap): Bind `widget-button-click' to mouse-1/-2 instead of down-mouse-1/-2. Suggested by Stefan Monnier. (Bug#19185, Bug#20398)
* | Allow eval-ing named character literalsPhilipp Stephani2016-05-021-0/+11
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (elisp--preceding-sexp): Skip over named character literals. * test/lisp/progmodes/elisp-mode-tests.el (elisp--preceding-sexp--char-name): Add test for skipping over named character literals (bug#23354). Copyright-paperwork-exempt: yes
* | Revert "alas, a map can have only one parent"Lars Ingebrigtsen2016-05-022-2/+0
| | | | | | | | | | | | | | This reverts commit d05806fda1cbba2db112bc783597fbe9d27175b2. This had already been fixed by using `make-composed-map'. And we don't want image-map to inherit from special-mode-map, anyway.
* | Merge from origin/emacs-25Paul Eggert2016-05-023-5/+10
|\| | | | | | | | | | | | | bf21c84 Fix quoting problem in cc-engine debug message 8f36614 Add electric-quote-string unit test 6280531 Don’t electrically quote ‘'’ in Python fd7b430 `nreverse' Grep hits before passing them to xref--convert-hits
| * Fix quoting problem in cc-engine debug messagePaul Eggert2016-05-021-1/+1
| | | | | | | | | | | | * lisp/progmodes/cc-engine.el (c-replay-parse-state-state): Use "%s" format to pass through ‘'’ unscathed (Bug#23425), and likewise for ‘`’, and ‘%’.
| * Don’t electrically quote ‘'’ in PythonPaul Eggert2016-05-021-3/+8
| | | | | | | | | | | | Problem reported by Philipp Stephani (Bug#23387). * lisp/electric.el (electric-quote-post-self-insert-function): Do not requote a string starter or ender.
| * `nreverse' Grep hits before passing them to xref--convert-hitsDmitry Gutov2016-05-021-1/+1
| | | | | | | | | | | | * lisp/progmodes/xref.el (xref-collect-matches): `nreverse' hits before passing them to xref--convert-hits. Fixes a regression from cc0b7132.
* | alas, a map can have only one parentSam Steingold2016-05-022-0/+2
| | | | | | | | | | * lisp/image-mode.el (image-model-map): Cannot have two parents. * lisp/image.el (image-map): Inherit from `special-mode-map'.
* | Fix Bug#10085Michael Albinus2016-05-021-4/+13
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-find-foreign-file-name-handler): Add optional arguments OPERATION and COMPETION. Handle `file-name-as-directory', `file-name-directory' and `file-name-nondirectory' also in completion mode. (tramp-file-name-handler): Use it. (Bug#10085) * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name): Extend test.
* | ; Spelling and quoting fixesPaul Eggert2016-05-014-4/+4
| |
* | Merge from origin/emacs-25Paul Eggert2016-05-013-2/+3
|\| | | | | | | | | | | c695fb3 ; Spelling fixes 03750c0 * doc/misc/texinfo.tex: Sync from gnulib. 42fed3b * lisp/isearch.el (isearch-forward-symbol-at-point): Add isea...
| * ; Spelling fixesPaul Eggert2016-05-012-2/+2
| |
| * * lisp/isearch.el (isearch-forward-symbol-at-point): Add isearch-push-state.Juri Linkov2016-05-011-0/+1
| | | | | | | | (Bug#23410)
| * cua-prefix-override-inhibit-delay doc fixLars Ingebrigtsen2016-05-011-1/+1
| | | | | | | | | | | | | | | | * lisp/emulation/cua-base.el (cua-prefix-override-inhibit-delay): Typo fix in doc string (bug#23401). (cherry picked from commit 2b4c099822811ede787fc6e575bfbb17b3cc0681)
| * global-eldoc-mode doc fixLars Ingebrigtsen2016-05-011-2/+10
| | | | | | | | | | | | | | * lisp/emacs-lisp/eldoc.el (global-eldoc-mode): Be more specific about what "applicable" means (bug#23071). (cherry picked from commit 25e95b5dd8cd92e03788e589bf99a4b399f03114)
| * normal-top-level-add-subdirs-to-load-path doc fixLars Ingebrigtsen2016-05-011-1/+1
| | | | | | | | | | | | | | * lisp/startup.el (normal-top-level-add-subdirs-to-load-path): Doc fix (bug#21962). (cherry picked from commit 28aaa6d20586e3330a23b017a65e56dd6461c003)
| * isearch-search-fun-function doc tweakLars Ingebrigtsen2016-05-011-2/+3
| | | | | | | | | | | | | | * lisp/isearch.el (isearch-search-fun-function): Mention what the STRING parameter is (bug#21552). (cherry picked from commit cafc2a5940cdc523cfea6dcf1cf540f48367c62a)
| * Fill some imenu--index-alist doc linesLars Ingebrigtsen2016-05-011-5/+8
| | | | | | | | | | | | * lisp/imenu.el (imenu--index-alist): Fill some doc lines (bug#21269). (cherry picked from commit 4b7bb8f596550628eaa83b82c0f7eabe59a84964)
| * Further define-obsolete-* doc fixupsLars Ingebrigtsen2016-05-011-2/+2
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/byte-run.el (define-obsolete-face-alias): Fix up last change. (define-obsolete-variable-alias): Ditto. (cherry picked from commit 28e9f4390d8391c2c36be4ef515cf3a2c679a5a5)
| * Describe WHEN in all the define-obsolete- macrosLars Ingebrigtsen2016-05-011-2/+8
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/byte-run.el (define-obsolete-face-alias): Say more verbosely what WHEN is (bug#21225). (define-obsolete-function-alias): Describe the WHEN parameter. (define-obsolete-variable-alias): Ditto. (cherry picked from commit 247c388f160581d207e41ca5926990bbf69d4a0f)
| * with-silent-modifications doc clarificationLars Ingebrigtsen2016-05-011-4/+3
| | | | | | | | | | | | | | | | * lisp/subr.el (with-silent-modifications): Rearrange the doc string a bit so that the most pertinent information is at the top (bug#21171). (cherry picked from commit e0e70f030e69d9696a963a86f5f7caaff4df06eb)
| * clear-visited-file-modtime doc string fixLars Ingebrigtsen2016-05-011-1/+1
| | | | | | | | | | | | | | * lisp/files.el (clear-visited-file-modtime): Fix possibly confusing doc string wording (bug#21169). (cherry picked from commit 1aaeaf1450756a71c9254a2a5b174c72084ca67a)