aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/isearch.el (isearch-search-fun-default): Nicer errorArtur Malabarba2015-11-291-10/+17
| | | | message when the search fails.
* Update menu-bar-goto-uses-etags-p for the current xref APIDmitry Gutov2015-11-291-3/+2
| | | | | | * lisp/menu-bar.el (menu-bar-goto-uses-etags-p): Consult xref-backend-functions, instead of now-nonexistent xref-find-function.
* * lisp/isearch.el (isearch-define-mode-toggle): Advertise bindingArtur Malabarba2015-11-291-6/+6
|
* * lisp/menu-bar.el: Use folding in searchesArtur Malabarba2015-11-291-15/+15
| | | | | | | | (nonincremental-search-forward): Use `isearch-search-fun-default' to determine the search function. (nonincremental-search-backward) (nonincremental-repeat-search-forward) (nonincremental-repeat-search-backward): Use it.
* * lisp/menu-bar.el (menu-bar-goto-uses-etags-p): Fix a warningArtur Malabarba2015-11-291-2/+3
|
* * lisp/character-fold.el (character-fold-to-regexp): Be carefulArtur Malabarba2015-11-291-4/+7
| | | | not to return huge regexps.
* Document truncate-string-ellipsisEli Zaretskii2015-11-291-1/+2
| | | | | | | | | | | | * doc/lispref/display.texi (Size of Displayed Text): Document 'truncate-string-ellipsis'. * lisp/international/mule-util.el (truncate-string-ellipsis): Doc fix. (truncate-string-to-width): Mention in the doc string that the default for ELLIPSIS comes from 'truncate-string-ellipsis'. * etc/NEWS: Move the 'truncate-string-ellipsis' entry to the "Lisp Changes" section.
* Byte compiler: Catch missing argument to `funcall'. Fixes bug#22051.Alan Mackenzie2015-11-291-2/+7
| | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-funcall): When there's no argument to `funcall', (i) Output an error message; (ii) Generate code to signal a `wrong-number-of-arguments' error.
* * lisp/window.el (split-window): Don't sanitize sizes when SIZE is non-nil.Martin Rudalics2015-11-291-2/+3
|
* * lisp/character-fold.el (character-fold-to-regexp)Artur Malabarba2015-11-281-0/+4
| | | | | | | | Warn about using long strings. * test/automated/character-fold-tests.el (character-fold--test-lax-whitespace) (character-fold--test-consistency): Reduce string size for tests.
* * lisp/character-fold.el: Also play nice with case-foldingArtur Malabarba2015-11-281-8/+22
| | | | (character-fold-to-regexp): Take `case-fold-search' into account.
* * lisp/character-fold.el: Add support for multi-char matchesArtur Malabarba2015-11-281-60/+113
| | | | | | | | | (character-fold-table): Now has an extra-slot. This is a second char-table that holds multi-character matches. See docstring for details. (character-fold-to-regexp): Can build branching regexps when a character's entry the extra slot of `character-fold-table' matches the characters that succeed it.
* * lisp/character-fold.el: Code simplificationsArtur Malabarba2015-11-281-27/+24
| | | | | | | | | | (character-fold-table): Reduce the scope of a variable. (character-fold-to-regexp): Change logic to work directly on the input string. It's a little easier to understand, probably faster, and sets us up for implementing multi-char matches. * test/automated/character-fold-tests.el (character-fold--test-fold-to-regexp): New test.
* Improve documentation of search and replace commandsEli Zaretskii2015-11-281-0/+14
| | | | | | | | | | | | | | * doc/emacs/search.texi (Replacement and Lax Matches): Document which commands are affected by 'replace-character-fold'. (Lax Search): Add a cross reference to "Replacement and Lax Matches". Improve wording. Fix lost extra whitespace. (Search Customizations): Improve wording. (Bug#22036) See also comments in http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg02376.html. * lisp/replace.el (query-replace, query-replace-regexp) (query-replace-regexp-eval, replace-string, replace-regexp): Mention 'replace-character-fold' in the doc strings.
* Improve documentation of 'replace-character-fold'Eli Zaretskii2015-11-271-2/+4
| | | | | * lisp/replace.el (replace-character-fold): Clarify which commands are affected by this variable.
* Backport: Add interactive seek command.Mark Oteiza2015-11-271-1/+11
| | | | | | | * lisp/mpc.el (mpc-cmd-seekcur): New function. (mpc-seek-current): New command. (mpc-mode-menu): Add entry for mpc-seek-current (mpc-mode-map): Bind mpc-seek-current to "g"
* Autoload etags when using its xref backendDmitry Gutov2015-11-272-3/+4
| | | | | | * lisp/progmodes/xref.el (xref--etags-backend): Rename to etags--xref-backend. Move to etags.el. Autoload. (Bug#22026)
* * lisp/character-fold.el: Allow complex chars to match their decompositionArtur Malabarba2015-11-271-3/+9
| | | | | | | (character-fold-table): When a character's decomposition does not involve a formatting tag (i.e., if it has an "exact" description via other characters), then this character is allowed to match the decomposition.
* * lisp/character-fold.el: More descriptive variable namesArtur Malabarba2015-11-271-33/+39
| | | | | (character-fold-table): Rename a lot of the lexical variables to make the code easier to read.
* * lisp/isearch.el: Ensure we still support `isearch-new-word'Artur Malabarba2015-11-271-0/+8
| | | | | (isearch-new-regexp-function): Define variable. (isearch-new-word): Define as an obsolete alias. (Bug#22018)
* Add ':version' tag to 'checkdoc-package-keywords-flag'Eli Zaretskii2015-11-271-0/+1
| | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-package-keywords-flag): Add a ':version' tag.
* Improve commentary in character-fold.elEli Zaretskii2015-11-271-3/+8
| | | | | * lisp/character-fold.el (character-fold-to-regexp): Move detailed description from commit log message to comments. (Bug#22019)
* Byte Compiler: generate code to adjust stack count after call to `signal'.Alan Mackenzie2015-11-261-1/+2
| | | | | | | Corrects change from earlier today. * lisp/emacs-lisp/bytecomp.el (byte-compile-setq): supply the current value of `byte-compile--for-effect' as argument to `byte-compile-form'.
* After delete, record point location in undo.Phillip Lord2015-11-261-4/+5
| | | | | | | | | | | | | | | | | | | Addresses Bug #21968. * lisp/simple.el (undo-auto--add-boundary): Clean up code to better support intercalating calls. * src/keyboard.c,src/keyboard.h (command_loop_1): Store value of point and current buffer before each command. * src/undo.c (record_point): Now only record the point. * src/undo.c (prepare_record): Functionality removed form record_point. * src/undo.c (record_delete): Check if point needs recording. * src/undo.c (undo-boundary): Record value of point before each boundary. * test/automated/simple-test.el: New tests. Conflicts: src/undo.c
* Check if the file exists on disk before producing the revert diffDmitry Gutov2015-11-261-6/+14
| | | | | * lisp/vc/vc-dispatcher.el (vc-buffer-sync): Check if the file exists on disk (bug#20558).
* Byte compiler: on setq with an odd number of arguments, generate a `signal'Alan Mackenzie2015-11-262-35/+40
| | | | | | | | * lisp/emacs-lisp/cconv.el (cconv-convert): Don't transform `setq' form when it has an odd number of arguments, to allow bytecomp to handle the error. * lisp/emacs-lisp/bytecomp.el (byte-compile-setq): In a `setq' form with an odd number of arguments, generate a `signal' instead of the normal code.
* ; Remove outdated comment (bug#22015)Dmitry Gutov2015-11-261-13/+0
|
* Use find-tag-default for xref-backend-identifier-at-pointDmitry Gutov2015-11-261-6/+10
| | | | | | | | * lisp/progmodes/etags.el (find-tag-tag) (tags-completion-at-point-function): Extract common code as find-tag--default. (xref-backend-identifier-at-point): Define in terms of the new function.
* Improve and update documentation of search commandsEli Zaretskii2015-11-252-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/search.texi (Lax Search): Renamed from "Search Case"; all references changed. Move the description of lax-whitespace here. Add description of the new character folding features and additional customizable options. (Isearch Yank): Move before "Error in Search". (Basic Isearch): Improve wording. Add index entries. Add short description of how to abandon search, making this subsection a complete introduction to search basics. (Repeat Isearch): Add index entries. Describe additional customizable options. Describe mouse clicks. (Isearch Yank): Add index entries. Describe mouse-2 click in echo area. Describe more customizable options. (Error in Isearch): Add index entries. (Special Isearch): Move actual description of some isearch commands to other sections, leaving here just the summary of the commands. Add command that toggles character folding. Describe commands, like "C-h C-h", that were previously omitted for some reason. (Not Exiting Isearch): Describe search-exit-option. Add index entries. (Word Search): Describe eww-search-word and eww-search-prefix. (Symbol Search): Add index entries. (Regexp Search): Describe regexp-search-ring-max. (Replacement and Lax Matches): Renamed from "Replacement and Case"; all references changed. Describe lax-whitespace matching in replace commands and related options. Describe character folding in replace commands and related options. (Query Replace): Describe query-replace-from-to-separator and the new history features. Add index entries for highlighted text. Describe query-replace-skip-read-only. Describe more keys accepted by query-replace. (Other Repeating Search): More index entries for Occur. Describe list-matching-lines-default-context-lines. (Search Customizations): New section, documents customizable options that were not documented until now. * doc/emacs/glossary.texi (Glossary): Add "Case Folding" and "Character Folding". * etc/NEWS: Move search- and replace-related entries to a single parent section. * lisp/replace.el (query-replace-show-replacement): Doc fix. * lisp/isearch.el (search-nonincremental-instead) (isearch-hide-immediately): Doc fixes.
* Remove nnml-retrieve-groups that is unnecessary and somewhat problematicKatsumi Yamaoka2015-11-251-17/+0
| | | | | | * lisp/gnus/nnml.el (nnml-retrieve-groups): Remove. See: <http://thread.gmane.org/gmane.emacs.gnus.general/86308> and <http://thread.gmane.org/gmane.emacs.gnus.general/86321>
* Disambiguate variable help a bit betterPaul Eggert2015-11-241-2/+6
| | | | | | | * lisp/help-fns.el (describe-variable): Quote the variable’s value if it is a symbol other than t or nil. See: T.V Raman in: http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg02147.html
* Pass SVN commit message through log-edit-extract-headersDmitry Gutov2015-11-251-1/+2
| | | | | * lisp/vc/vc-svn.el (vc-svn-checkin): Pass COMMENT through log-edit-extract-headers (bug#18954).
* CC Mode: Eliminate compiler warning messages.Alan Mackenzie2015-11-243-10/+17
| | | | | | | | | | | * lisp/progmodes/cc-mode.el (top level): remove compile time declaration of `font-lock-syntactic-keywords' (which CC Mode doesn't use). * lisp/progmodes/cc-awk.el (awk-mode-syntax-table) (c-awk-set-syntax-table-properties): Clarify comments about `font-lock-syntactic-keywords'. * lisp/progmodes/cc-bytecomp.el (cc-bytecomp-load): Create a dummy declaration of this before the real (interpreted) one, to satisfy the byte compiler.
* Extend the test suite for json.elSimen Heggestøyl2015-11-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/json.el (json-plist-p): Clarify docstring. * test/automated/json-tests.el (json-tests--with-temp-buffer): New macro. (test-json-join, test-json-alist-p) (test-json-plist-p, test-json-advance, test-json-peek) (test-json-pop, test-json-skip-whitespace) (test-json-read-keyword, test-json-encode-keyword) (test-json-read-number, test-json-encode-number) (test-json-read-escaped-char, test-json-read-string) (test-json-encode-string, test-json-encode-key) (test-json-new-object, test-json-add-to-object) (test-json-read-object, test-json-encode-list) (test-json-read-array, test-json-encode-array) (test-json-read, test-json-read-from-string) (test-json-encode): New tests. (json-read-simple-alist): Merged into `test-json-read-object'. (json-encode-string-with-special-chars): Merged into `test-json-encode-string'. (json-read-string-with-special-chars): Split into `test-json-encode-string' and `test-json-read-from-string'.
* Allow completion on dynamic module files in load-libraryEli Zaretskii2015-11-241-4/+5
| | | | | | * lisp/files.el (load-library): Bind completion-ignored-extensions to nil, to allow completion on dynamic modules typed as file names. Reported by Andy Moreton <andrewjmoreton@gmail.com>.
* CC Mode: eliminate almost all byte compilation warningsAlan Mackenzie2015-11-243-46/+49
| | | | | | | | | | | | | | * lisp/progmodes/cc-bytecomp.el (cc-bytecomp-noruntime-functions): Remove. (cc-require): Remove the crude hack that saved and restored byte-compile-noruntime-functions. (cc-conditional-require, cc-conditional-require-after-load): New macros. * lisp/progmodes/cc-defs.el (top level): Reformulate code which loaded cc-fix.el using the new macros in cc-bytecomp.el. * lisp/progmodes/cc-langs.el (c++-template-syntax-table) (c-no-parens-syntax-table): Add extra "(eval ..)"s around "'(lambda ..)" forms to remove the superflous quotes.
* Squashed commit of the following:Alan Mackenzie2015-11-241-7/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit e1ecf76585bef2eb87995f7a7f92cc12003a6f70 Author: Alan Mackenzie <acm@muc.de> Date: Tue Nov 24 16:50:09 2015 +0000 Byte compile: minor amendments. * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment): add a comment to explain the binding of variables around a subsidiary compilation. (byte-compile-new-defuns): Amend the doc string. commit c537bfed1dda1593d218956ff00c6105a3ff0316 Author: Alan Mackenzie <acm@muc.de> Date: Sat Nov 21 18:43:57 2015 +0000 Byte compiler: fix spurious warnings "might not be defined at runtime". Also initialize byte-compile-noruntime-functions between runs. * lisp/emacs-lisp/bytecomp.el (byte-compile-new-defuns): New variable. (byte-compile-initial-macro-environment): For eval-when-compile: bind byte-compile-unresolved-functions and byte-compile-new-defuns around byte-compile-top-level, to prevent spurious entries being made. (byte-compile-warn-about-unresolved-functions): Check whether function is in byte-compile-new-defuns before emitting a warning about it. (byte-compile-from-buffer): Initialize new variable and byte-compile-noruntime-functions to nil. (byte-compile-file-form-require): record all new functions defined by a `require' in byte-compile-new-defuns. (byte-compile-file-form-defmumble): record the new alias in byte-compile-new-defuns.
* Byte compile: Output an error, not a warning, for odd number of args to setqAlan Mackenzie2015-11-241-3/+3
| | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-setq): Amend.
* Don't use package-user-dir in elisp-library-roots if it's not boundDmitry Gutov2015-11-241-2/+3
| | | | | * lisp/progmodes/elisp-mode.el (elisp-library-roots): Don't use package-user-dir if it's not bound (bug#19759).
* * lisp/emacs-lisp/nadvice.el (add-function): Fix debug spec.Johan Bockgård2015-11-231-2/+6
| | | | (remove-function): Ditto. (Bug#20376)
* * lisp/leim/quail/tamil-dvorak.el: Add necessary escapes.Mark Oteiza2015-11-231-5/+5
|
* Add the tamil-dvorak input methodShakthi Kannan2015-11-231-0/+151
| | | | | | * lisp/leim/quail/tamil-dvorak.el: New file. (Bug#21768) * etc/NEWS: Mention the new input method.
* Signal an error when `setf' gets an odd number of arguments.Alan Mackenzie2015-11-231-0/+2
| | | | * lisp/emacs-lisp/gv.el (setf): Amend.
* * lisp/emacs-lisp/smie.el (smie-backward-sexp): Handle BOB better.Stefan Monnier2015-11-231-1/+6
|
* Expunge occurrences of `setq' with an odd number of arguments.Alan Mackenzie2015-11-235-7/+6
| | | | | | | | | | | | * lisp/apropos.el (apropos-documentation): * lisp/obsolete/complete.el (PC-include-file-all-completions): * lisp/progmodes/compile.el (compilation-goto-locus): * lisp/vc/vc-cvs.el (vc-cvs-parse-root): (twice) Insert missing nil at end of `setq' forms. * lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-autoload): Remove an erroneous trailing variable name from a setq, thus allowing a compilation properly to track functions not defined at runtime.
* Issue a warning from the byte compiler on a malformed `setq' form.Alan Mackenzie2015-11-231-1/+5
| | | | | | Partly fixes bug#20241. * lisp/emacs-lisp/bytecomp.el (byte-compile-setq): Issue a warning when a `setq' form with an odd number of arguments is compiled.
* Don't let cconv_convert insert a nil argument into a `setq' form.Alan Mackenzie2015-11-231-4/+6
| | | | | | | Fixes bug#21983. * lisp/emacs-lisp/cconv.el (cconv-convert): Don't silently insert a nil last argument into a `setq' when there're an odd number of args. This enables the byte compiler to issue a message in this case.
* Improve EUDC to BBDB 3 exportThomas Fitzsimmons2015-11-222-2/+10
| | | | | | | | | * eudc-vars.el (eudc-ldap-bbdb-conversion-alist): Change phone entry to single item. Add company conversion. * eudc-export.el (eudc-bbdbify-company): New function. (bbdb-parse-phone): Declare function. (eudc-bbdbify-phone): Add BBDB 3 support. (Bug#21971)
* Add BBDB 3 support for EUDC exportThomas Fitzsimmons2015-11-223-15/+26
| | | | | | | | | | * eudc.el: Add bbdb-version defvar. (eudc--using-bbdb-3-or-newer-p): New function. * eudc-export.el (eudc-create-bbdb-record): Add support for bbdb-create-internal argument list changes introduced in BBDB 3. * eudcb-bbdb.el: Remove bbdb-version defvar. (eudc-bbdb-field): Call eudc--using-bbdb-3-or-newer-p. (Bug#21971)
* Allow loading modules by 'load-file'Eli Zaretskii2015-11-221-2/+6
| | | | | | | | | | | | * src/lread.c (Fload): Call 'unbind_to' with 'Fmodule_load' as the 2nd arg, to avoid the "binding stack not balanced" error. (syms_of_lread) <module-file-suffix>: New Lisp variable. * lisp/files.el (module-file-suffix): Declare. (load-file): Remove 'module-file-suffix' from 'completion-ignored-extensions', to allow completion on modules. * etc/NEWS: Mention 'module-file-suffix'.