1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 14:01:43 -08:00
Commit graph

123607 commits

Author SHA1 Message Date
Artur Malabarba
d976561ba2 * lisp/isearch.el (isearch-search-fun-default): Nicer error
message when the search fails.
2015-11-29 22:09:39 +00:00
Dmitry Gutov
0887bdf90b Update menu-bar-goto-uses-etags-p for the current xref API
* lisp/menu-bar.el (menu-bar-goto-uses-etags-p): Consult
xref-backend-functions, instead of now-nonexistent
xref-find-function.
2015-11-29 23:41:58 +02:00
Artur Malabarba
1e010227bb * lisp/isearch.el (isearch-define-mode-toggle): Advertise binding 2015-11-29 21:26:47 +00:00
Artur Malabarba
71d6d631ae * lisp/menu-bar.el: Use folding in searches
(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.
2015-11-29 21:20:33 +00:00
Artur Malabarba
468659cd36 * lisp/menu-bar.el (menu-bar-goto-uses-etags-p): Fix a warning 2015-11-29 21:14:19 +00:00
Artur Malabarba
285ed41605 * lisp/character-fold.el (character-fold-to-regexp): Be careful
not to return huge regexps.
2015-11-29 20:42:25 +00:00
Eli Zaretskii
4c6f368c3d ; * etc/NEWS: Move entries
Move entries of 'bidi-find-overridden-directionality' and
'buffer-substring-with-bidi-context' to the "Lisp Changes"
section.
2015-11-29 19:55:31 +02:00
Eli Zaretskii
36255fba58 Improve documentation of string-collate-* functions
* doc/lispref/strings.texi (Text Comparison): Improve wording and
indexing of 'string-collate-equalp' and 'string-collate-lessp'.

* etc/NEWS: Move the entry of 'string-collate-equalp' and
'string-collate-lessp' to "Lisp Changes" section and mark it as
documented.
2015-11-29 19:52:16 +02:00
Eli Zaretskii
f3bd8262a2 Document truncate-string-ellipsis
* 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.
2015-11-29 19:40:08 +02:00
Eli Zaretskii
c32063e7c0 ; * etc/NEWS: Mark insert-register entry as already documented. 2015-11-29 19:18:43 +02:00
Eli Zaretskii
e67fa7e322 Fix confusion wrt character folding in the Emacs manual
* doc/emacs/search.texi (Nonincremental Search, Regexp Search):
Document that invoking search-forward/backward and
re-search-forward/backward supports only case folding, but not the
rest of the lax-search features.  Reported by Mike Kupfer
<m.kupfer@acm.org>.
2015-11-29 18:31:09 +02:00
Ken Brown
ff21f455b7 Update mod-test-sum-test
* modules/mod-test/test.el (mod-test-sum-test): Update to
accommodate the lack of dladdr on Cygwin.
2015-11-29 11:23:32 -05:00
Alan Mackenzie
5cf012a3a8 Byte compiler: Catch missing argument to `funcall'. Fixes bug#22051.
* 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.
2015-11-29 16:17:07 +00:00
Martin Rudalics
ca6edca242 * lisp/window.el (split-window): Don't sanitize sizes when SIZE is non-nil. 2015-11-29 10:14:00 +01:00
Ken Brown
0c517aa613 ; * modules/mod-test/Makefile: Fix typo. 2015-11-28 20:31:17 -05:00
Artur Malabarba
747f81861c * lisp/character-fold.el (character-fold-to-regexp)
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.
2015-11-28 19:57:14 +00:00
Eli Zaretskii
70d68a9dd1 Document renaming of x-select-enable-* variables
* doc/emacs/killing.texi (Clipboard): Rename
x-select-enable-clipboard to select-enable-clipboard and
x-select-enable-primary to select-enable-primary.  Update index
entries.

* etc/NEWS: Mark entry as documented.
2015-11-28 20:38:27 +02:00
Eli Zaretskii
63f7e4b4b9 Document the shorthand hints displayed by M-x
* doc/emacs/m-x.texi (M-x): Document the numeric meaning of
suggest-key-bindings.  Document the shorthand hints for commands
that have no key bindings.  Document that M-x completion ignores
obsolete commands.

* etc/NEWS: Move the M-x entry to "Editing Changes" and mark it as
documented.
2015-11-28 20:27:52 +02:00
Eli Zaretskii
fadc3e0dfd Update docs of character folding
* doc/emacs/search.texi (Lax Search): Update the description of
character folding for the latest changes.
2015-11-28 19:55:28 +02:00
Artur Malabarba
19141a9be6 * lisp/character-fold.el: Also play nice with case-folding
(character-fold-to-regexp): Take `case-fold-search' into account.
2015-11-28 16:21:54 +00:00
Artur Malabarba
5c5997002b * lisp/character-fold.el: Add support for multi-char matches
(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.
2015-11-28 16:21:54 +00:00
Artur Malabarba
35c7dc06ed * lisp/character-fold.el: Code simplifications
(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.
2015-11-28 15:06:37 +00:00
Eli Zaretskii
ea087151a9 Document changes in "C-h l"
* doc/emacs/help.texi (Misc Help): Document the changes in "C-h l".

* etc/NEWS: mark "C-h l" changes as documented.
2015-11-28 15:49:05 +02:00
Eli Zaretskii
74646d1d1c Finalize documentation of 'custom-prompt-customize-unsaved-options'
* doc/emacs/custom.texi (Saving Customizations): Index the new
function 'custom-prompt-customize-unsaved-options'.

* etc/NEWS: Mention when 'custom-prompt-customize-unsaved-options'
is useful.
2015-11-28 15:43:07 +02:00
Eli Zaretskii
71d23f9503 Document 'comment-line'
* doc/emacs/programs.texi (Comment Commands): Document
'comment-line'.

* etc/NEWS: Move the entry for 'comment-line' into "Editing Changes".
2015-11-28 15:24:28 +02:00
Eli Zaretskii
d4ade2c8fa Document new checkdoc features
* doc/lispref/tips.texi (Tips, Library Headers): Document the
keyword-checking features of checkdoc and the commands
'checkdoc-file' and 'checkdoc-current-buffer'.

* etc/NEWS: Move the checkdoc-related entries to their own
section.
2015-11-28 14:32:04 +02:00
Philipp Stephani
c217802b0f Simplify the prologue of emacs-module.c functions
* emacs-module.c (MODULE_FUNCTION_BEGIN): New macro.
(module_make_global_ref)
(module_free_global_ref, module_make_function, module_funcall)
(module_intern, module_type_of, module_extract_integer)
(module_make_integer, module_extract_float, module_make_float)
(module_copy_string_contents, module_make_string)
(module_make_user_ptr, module_get_user_ptr, module_set_user_ptr)
(module_get_user_finalizer, module_set_user_finalizer)
(module_vec_set, module_vec_get, module_vec_size): Use new helper
macro MODULE_FUNCTION_BEGIN.
2015-11-28 14:08:21 +02:00
Eli Zaretskii
a63d1eca8d Don't reject module calls with no arguments
* src/emacs-module.c (Finternal_module_call): Allow ARGLIST be nil.
2015-11-28 13:59:12 +02:00
Philipp Stephani
b527d609d9 Make module-call be visible from Lisp
* src/emacs-module.c (module_make_function): Use internal--module-call.
(Finternal_module_call): Renamed from Fmodule_call.  Add safety
checks.
(syms_of_module): DEFSYM save-value-p and save-pointer-p.  Do
defsubr internal--module-call.
2015-11-28 13:53:32 +02:00
Eli Zaretskii
40b794bf00 Add etags tests for the recent Lua-related bugfix
* test/etags/lua-src/test.lua: New file, tests the issues raised
by bug#21934.
* test/etags/Makefile (LUASRC): Add test.lua.
* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/ETAGS.good_6:
* test/etags/CTAGS.good: Adapt to the new Lua test.  Also, an old
regression fix, resolved around 25 May 2015, required changes to
the "good" ETAGS files.
2015-11-28 13:11:05 +02:00
Eli Zaretskii
690ccf0f0d Fix Lua tags when a function name includes '.' or ':'
* lib-src/etags.c (Lua_functions): Add a tag for the last element
of a function name after a dot or a colon.  (Bug#21934)
2015-11-28 12:29:18 +02:00
Eli Zaretskii
24703a0a89 Improve documentation of search and replace commands
* 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.
2015-11-28 11:23:02 +02:00
Paul Eggert
f32c79dd0e Fix minor problems found by static checking
* src/undo.c (prepare_record): Add proper prototype for C.
2015-11-27 22:09:11 -08:00
Stefan Monnier
60d8c804cf * src/emacs-module.c (struct env_storage): Delete
(struct emacs_runtime_private): Keep an emacs_env instead.
(Fmodule_load, Fmodule_call): Declare emacs_env_private separately.
(initialize_environment): Split the arg in two.	 Adjust all callers.
Only store the private part in Vmodule_environments.
(finalize_environment): Change the arg to only be the private env.
Adjust all callers.
2015-11-27 15:18:29 -05:00
Eli Zaretskii
88050ec3e4 Improve documentation of 'replace-character-fold'
* lisp/replace.el (replace-character-fold): Clarify which commands
are affected by this variable.
2015-11-27 22:11:59 +02:00
Mark Oteiza
ab10df6097 Backport: Add interactive seek command.
* 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"
2015-11-27 13:14:06 -05:00
Dmitry Gutov
a521310f9e Autoload etags when using its xref backend
* lisp/progmodes/xref.el (xref--etags-backend):
Rename to etags--xref-backend.  Move to etags.el.  Autoload.
(Bug#22026)
2015-11-27 15:22:36 +02:00
Artur Malabarba
a5f2970207 * lisp/character-fold.el: Allow complex chars to match their decomposition
(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.
2015-11-27 12:01:12 +00:00
Artur Malabarba
19e90846c4 * lisp/character-fold.el: More descriptive variable names
(character-fold-table): Rename a lot of the lexical variables to
make the code easier to read.
2015-11-27 12:00:37 +00:00
Artur Malabarba
60e1dfd820 * lisp/isearch.el: Ensure we still support `isearch-new-word'
(isearch-new-regexp-function): Define variable.
(isearch-new-word): Define as an obsolete alias. (Bug#22018)
2015-11-27 11:25:57 +00:00
Eli Zaretskii
9a57376b13 Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25 2015-11-27 13:11:57 +02:00
Lee Bochicchio
7fa3a0c264 * test/lisp/abbrev-tests.el: Define more tests
(abbrev-table-name-test, kill-all-abbrevs-test)
(clear-abbrev-table-test): New tests.
2015-11-27 11:11:26 +00:00
Eli Zaretskii
8dcdca346f Add module tests for wrong-type-argument
* modules/mod-test/test.el (mod-test-sum-test): Add tests for
wrong-type-argument.
2015-11-27 13:11:00 +02:00
Eli Zaretskii
1ed316d275 Improve handling of signals and 'throw' in modules
* src/emacs-module.c: Add commentary explaining how to write
functions in this file.
(module_make_global_ref, module_free_global_ref)
(module_non_local_exit_signal, module_non_local_exit_throw)
(module_make_function, module_funcall, module_intern)
(module_type_of, module_is_not_nil, module_eq)
(module_extract_integer, module_make_integer)
(module_extract_float, module_make_float)
(module_copy_string_contents, module_make_string)
(module_make_user_ptr, module_get_user_ptr, module_set_user_ptr)
(module_get_user_finalizer, module_set_user_finalizer)
(module_vec_set, module_vec_get, module_vec_size)
(module_non_local_exit_signal_1, module_non_local_exit_throw_1):
Do nothing and return with failure indication immediately, if some
previous module call signaled an error or wants to throw.  See
http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg02133.html
for the relevant discussions.
2015-11-27 12:51:52 +02:00
Eli Zaretskii
165d6e3fdd Add ':version' tag to 'checkdoc-package-keywords-flag'
* lisp/emacs-lisp/checkdoc.el (checkdoc-package-keywords-flag):
Add a ':version' tag.
2015-11-27 12:32:44 +02:00
Eli Zaretskii
3f42061bb6 Improve documentation of 'eval-buffer' and 'eval-region'
* src/lread.c (Feval_buffer, Feval_region): Doc fixes.  (Bug#22023)

* doc/lispref/eval.texi (Eval): Mention narrowing to clarify
"accessible portion of buffer".
2015-11-27 12:07:08 +02:00
Eli Zaretskii
33460000f9 Unbreak the Cygwin w32 build
* src/emacs.c (main): Call w32_init_main_thread in the Cygwin w32
build as well.  Reported by Andy Moreton <andrewjmoreton@gmail.com>.
2015-11-27 10:01:40 +02:00
Eli Zaretskii
a41cb8c4d3 Improve commentary in character-fold.el
* lisp/character-fold.el (character-fold-to-regexp): Move detailed
description from commit log message to comments.  (Bug#22019)
2015-11-27 09:54:27 +02:00
Alan Mackenzie
af40b7689a Byte Compiler: generate code to adjust stack count after call to `signal'.
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'.
2015-11-26 20:57:34 +00:00
Eli Zaretskii
3f042f6588 Improve commentary of prepare_to_modify_buffer_1
* src/insdel.c (prepare_to_modify_buffer_1): Mention in commentary
that this function runs Lisp.  Suggested by Richard Stallman
<rms@gnu.org>.
2015-11-26 22:08:54 +02:00