1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 22:40:46 -08:00
Commit graph

129475 commits

Author SHA1 Message Date
Glenn Morris
0cd94b8a03 ; Update some more Maintainer: header comments
; This removes some people who are absent from commit logs or mailing
; lists for upwards of a decade.
2017-06-05 21:08:07 -04:00
Glenn Morris
5cb286064f ; Update some Maintainer: header comments 2017-06-05 20:48:49 -04:00
Glenn Morris
6aa1466713 Make authors.el report names that were ignored
* admin/authors.el (authors-ignored-names): New.
(authors-canonical-author-name): Add file and position arguments.
Record ignored authors.
(authors-scan-change-log, authors-scan-el):
Pass file and position to authors-canonical-author-name.
(authors): Also print authors that were ignored.
2017-06-05 20:39:29 -04:00
Glenn Morris
fcaf9327c1 * admin/authors.el (authors-aliases): Additions. 2017-06-05 20:38:31 -04:00
Glenn Morris
ac5422fd23 ; Small fixes for some Author: header comments 2017-06-05 20:35:17 -04:00
Glenn Morris
6a757bead9 ; ChangeLog fixes 2017-06-05 20:33:55 -04:00
Tino Calancha
695d50fa0a * test/lisp/subr-tests.el (subr-tests-bug22027): Add test. 2017-06-05 18:57:50 -04:00
Noam Postavsky
882f81fdb4 * lisp/subr.el (read-passwd): Don't delete return value (Bug#22027). 2017-06-05 18:57:32 -04:00
Dmitry Gutov
3632633cab Enable ElDoc messages after the newline command
* lisp/emacs-lisp/eldoc.el:
Add "newline" to the eldoc-add-command-completions call (bug#27228).
2017-06-06 01:23:41 +03:00
Dmitry Gutov
a003e87be7 Enable eldoc-mode explicitly inside read--expression
* lisp/simple.el (read--expression): Call eldoc-mode (bug#27202).
2017-06-06 01:04:17 +03:00
Andy Moreton
f858c585a3 Fix check for package-unsigned-archives during retrieval
* lisp/emacs-lisp/package.el (package--download-one-archive):
Fix check for package-unsigned-archives.
2017-06-06 01:04:17 +03:00
Noah Friedman
096eb7d671 Merge etc/emacs-buffer.gdb from emacs-25 to master. 2017-06-05 14:08:22 -07:00
Philipp Stephani
3d9d976aa4 Fix undefined behavior in mapbacktrace
* src/eval.c (Fmapbacktrace): Don't assume that PDL is still valid.
2017-06-05 22:09:22 +02:00
Eli Zaretskii
9ae5c0a2e1 Fix emacs-module-tests on MS-Windows
* src/print.c (print_vectorlike): Make sure module function's
address prints with a leading "0x".  This fixes emacs-module-tests
on MS-Windows.  Fix whitespace.
* src/dynlib.c (dynlib_addr): Remove unused variable.  Update
commentary.
2017-06-05 19:16:04 +03:00
Philipp Stephani
5d29c0f006 Use unwind protection to clean up data structures in modules
Reuse existing functionality and simplify the code a bit.

* src/emacs-module.c (Fmodule_load): Use unwind protection to clean up
runtime object.
(funcall_module): Use unwind protection to clean up environment
object.
(finalize_environment): Simplify signature.
(finalize_environment_unwind, finalize_runtime_unwind): New functions.
2017-06-05 15:10:24 +02:00
Michael Albinus
9f496c591d Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2017-06-05 13:00:07 +02:00
Michael Albinus
751d5920be Some minor tweaks in tramp-tests.el
* test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name-relative):
Let it pass for all gfvs based methods.
(tramp-test24-file-name-completion): Run method and host
completion for all syntaxes only when expensive tests are enabled.
Do not check host completion for gvfs based methods.
(tramp--test-gvfs-p): Add optional METHOD argument.
(tramp--test-afp-or-smb-p): Remove.
2017-06-05 12:59:26 +02:00
Michael Albinus
792de924d5 Fix error in Tramp rsync method
* lisp/net/tramp-sh.el (tramp-methods) <rsync>: Add "-c" argument.
Otherwise, `tramp-test10-write-region' could fail.
2017-06-05 12:58:59 +02:00
Philipp Stephani
13e9493ea3 Inline module_has_cleanup
This constant is only used once, and we fail compilation anyway if
it's false.

* src/emacs-module.c (MODULE_SETJMP_1): Inline __has_attribute.
2017-06-05 10:19:59 +02:00
Philipp Stephani
98e107ff0c Add missing dependency to test module source file 2017-06-05 10:05:17 +02:00
Paul Eggert
646b74e50e Omit space that broke ‘make check’
* src/print.c (print_vectorlike): Omit stray space.
2017-06-05 00:17:47 -07:00
Paul Eggert
6e4abc9d10 Remove easserts etc. from emacs-module.c
Most of these seem to run afoul of the comment "Do NOT use
'eassert' for checking validity of user code in the module."
* src/emacs-module.c (MODULE_FUNCTION_BEGIN_NO_CATCH)
(module_non_local_exit_check, module_non_local_exit_clear)
(module_non_local_exit_get, module_non_local_exit_signal)
(module_non_local_exit_throw, module_make_string):
Remove unnecessary easserts that pointers are nonnull.
Hardware checks this for us nowadays, and the checks
just clutter up the code.
(module_extract_integer): Remove unnecessary verify that
a C signed integer is in the range INTMAX_MIN..INTMAX_MAX.
The C standard guarantees this.
(module_copy_string_contents): Remove unnecessary eassert
that Lisp strings are null-terminated.
(module_function_arity): Remove unnecessary easserts that
function arities are in range.
2017-06-04 23:53:47 -07:00
Paul Eggert
620d65370a Remove unnecessary checking in emacs-module.c
* src/emacs-module.c (module_copy_string_contents):
Remove checking, as string lengths are always nonnegative and less
than STRING_BYTES_BOUND, and this is checked elsewhere.
(module_make_string): Check length against STRING_BYTES_BOUND, a
tighter bound than MOST_POSITIVE_FIXNUM.  (funcall_module): Don't
assume that an out-of-range integer is nonnegative.
2017-06-04 23:53:47 -07:00
Paul Eggert
cef90102cb SCHARS and STRING_BYTES are nonnegative
Tell the compiler that SCHARS and STRING_BYTES are nonnegative, in
the hopes that this will optimize a bit better.  Also, check this
at runtime if ENABLE_CHECKING.
* src/lisp.h (SCHARS, STRING_BYTES):
eassume that these functions return nonnegative values.
(STRING_SET_CHARS) [ENABLE_CHECKING]:
eassert that newsize is nonnegative.
2017-06-04 23:53:47 -07:00
Noam Postavsky
24f011d56a * lisp/desktop.el (desktop-clear): Skip the daemon's frame (Bug#26912). 2017-06-05 00:08:43 -04:00
Philipp Stephani
2aa8b1564e Remove an unused error symbol
* src/emacs-module.c (syms_of_module): Remove unused error symbol
'invalid-module-call'.
2017-06-04 19:50:52 +02:00
Philipp Stephani
66da3f4afa Support quitting in modules
The idea is that modules should call env->should_quit from time to
time and return as quickly as possible if it returns true.

* src/emacs-module.c (module_should_quit): New module function.
(initialize_environment): Use it.
(funcall_module): Process potential pending quit.

* src/eval.c (maybe_quit): Add reference to module_should_quit.
2017-06-04 19:50:52 +02:00
Philipp Stephani
d37201722e Use more specific errors for module load failure
* src/emacs-module.c (syms_of_module): Add more specific error
symbols.
(Fmodule_load): Use them.
2017-06-04 19:50:51 +02:00
Philipp Stephani
27445a82f0 Remove an unneeded assertion
* src/emacs-module.c (module_copy_string_contents): Remove unneeded
assertion.  If this assertion triggers, we raise an error anyway.
2017-06-04 19:50:51 +02:00
Philipp Stephani
a8a93b11cf Guard against signed integer overflows
* src/emacs-module.c (module_extract_integer)
(module_copy_string_contents, module_make_string): Guard against
signed integer overflows.
2017-06-04 19:50:51 +02:00
Philipp Stephani
549706241e Add a couple more assertions to the module code
These can help module authors debug crashes.

* emacs-module.c (module_non_local_exit_check)
(module_non_local_exit_clear, module_non_local_exit_get)
(module_non_local_exit_signal, module_non_local_exit_throw)
(module_copy_string_contents, module_make_string)
(funcall_module, initialize_environment): Add assertions
2017-06-04 19:50:51 +02:00
Philipp Stephani
fb3a9fd318 ; Grammar fix 2017-06-04 19:50:50 +02:00
Philipp Stephani
034275ebe8 ; Small comment fix
* emacs-module.c (MODULE_FUNCTION_BEGIN): Don't say that the error
value should be a sentinel value, because in almost all cases it
isn't.
2017-06-04 19:50:50 +02:00
Philipp Stephani
9be8b2bf1d Use ATTRIBUTE_MAY_ALIAS where alias violations are likely
In particular, alias violations are likely for the return values of
dlsym(3), which get cast around arbitrarily.

* src/emacs-module.c (Fmodule_load): Use ATTRIBUTE_MAY_ALIAS.
2017-06-04 19:50:50 +02:00
Philipp Stephani
366e25a6d1 Simplify interface of dynlib_attr.
Instead of returning bool, set the argument pointers to NULL if the
information is not available.

* src/dynlib.c (dynlib_addr): Don't return bool.
2017-06-04 19:50:50 +02:00
Philipp Stephani
045d21c20a Rationalize environment lifetime management functions
* src/emacs-module.c (Fmodule_load, funcall_module): Adapt callers.
(finalize_environment): Add parameter for public part of the
environment, like 'initialize_environment'.  Add assertions.
2017-06-04 19:50:50 +02:00
Philipp Stephani
3b0080de52 Rework printing of module functions
Fix a FIXME in emacs-module.c.  Put the printing into print.c, like
other types.

* src/print.c (print_vectorlike): Add code to print module functions.

* src/emacs-module.c (funcall_module): Stop calling
'module_format_fun_env'.  Now that module functions are first-class
objects, they can be added to signal data directly.
(module_handle_signal): Remove now-unused function
'module_format_fun_env'.

* test/src/emacs-module-tests.el (mod-test-sum-test): Adapt unit test.

* src/eval.c (funcall_lambda): Adapt call to changed signature of
'funcall_module'.
2017-06-04 19:50:49 +02:00
Philipp Stephani
18396997b3 Define helper macro to reduce code duplication
* src/emacs-module.c (MODULE_FUNCTION_BEGIN_NO_CATCH): New helper
macro.
(MODULE_FUNCTION_BEGIN, module_type_of, module_is_not_nil, module_eq):
Use it.
2017-06-04 19:50:49 +02:00
Philipp Stephani
db7438426a Remove two FIXMEs that can't be fixed 2017-06-04 19:50:49 +02:00
Eli Zaretskii
bd3c6eeca1 Avoid slow startup in daemon mode when global-linum-mode is on
* lisp/linum.el (linum-on): Don't turn on linum-mode in a
non-client frame of a daemon session.  (Bug#27210)
2017-06-04 19:27:13 +03:00
Paul Eggert
7dd9e7e95c Fix eldoc bug with curved quote
* lisp/progmodes/elisp-mode.el (elisp-get-fnsym-args-string):
Substitute quotes in documentation before returning it (Bug#27159).
2017-06-04 09:13:37 -07:00
Paul Eggert
d5fcf9e458 Tune ‘format’ after recent fix
* doc/lispref/strings.texi (Formatting Strings):
* src/editfns.c (Fformat): Format field numbers no longer need
to be unique, reverting the previous doc change since that has
now been fixed.  Also, document that %% should not have modifiers.
* src/editfns.c (styled_format): Improve performance.  Remove
the need for the new prepass over the format string, by using
a typically-more-generous bound for the info array size.
Initialize the info array lazily.  Move string inspection to
the same area to help caching.  Avoid the need for a
converted_to_string bitfield by using EQ.  Cache arg in a
local and avoid some potential aliasing issues to help the
compiler.  Info array is now 0-origin, not 1-origin.
2017-06-04 08:42:53 -07:00
Nikolay Kudryavtsev
6ad42aecc2 Improve of file-local-name use in vc-git-checkin
* lisp/vc/vc-git.el (vc-git-checkin): Use file-local-name only
when calling git commit.
2017-06-04 09:59:49 +02:00
Simen Heggestøyl
d2d6e4452c Support a new CSS indentation style
* lisp/textmodes/css-mode.el (css-smie-rules): Indent after property
immediately followed by a newline.

* test/manual/indent/css-mode.css: Add test for the change above.

* test/manual/indent/scss-mode.scss: Ditto.
2017-06-03 15:09:01 +02:00
Philipp Stephani
e3b7eeade4 ; Fix off-by-one error 2017-06-03 11:42:07 +02:00
Philipp Stephani
7d413cb4da Fix a bug when using format field numbers
Previously styled_format overwrite the argument vector.  This is no
longer possible because there might be more than one specification per
argument.  Use the existing auxiliary info array instead.

* src/editfns.c (styled_format): Record arguments in the info
structure instead of overwriting them.
* test/src/editfns-tests.el (format-with-field): Add unit test.
2017-06-03 11:19:02 +02:00
Paul Eggert
0147cdd4d9 Document uniqueness limitation of ‘format’
* doc/lispref/strings.texi (Formatting Strings):
* src/editfns.c (Fformat):
Document that field numbers should be unique within a format.
2017-06-03 01:31:52 -07:00
Glenn Morris
73635edb43 Small rmailmm fix (bug#27203)
* lisp/mail/rmailmm.el (rmail-mime-insert-bulk):
Fall back to HOME if no match in rmail-mime-attachment-dirs-alist.
2017-06-02 20:42:01 -04:00
Glenn Morris
606bfcf00e * admin/authors.el (authors-aliases): Addition. 2017-06-02 20:29:34 -04:00
Glenn Morris
182912c7a9 Add watch for password back to inferior python comint filter
It was removed along with other items for speed (bug#16875),
but doesn't seem to have been causing an issue, and it's useful to
have it there (bug#27154).
* lisp/progmodes/python.el (inferior-python-mode):
Add comint-watch-for-password-prompt to comint-output-filter-functions.
2017-06-02 20:06:12 -04:00