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

129493 commits

Author SHA1 Message Date
Eli Zaretskii
1a3feb8ead Improve documentation of 'face-spec-set-2'
* lisp/faces.el (face-spec-recalc, face-spec-set-2): Rename 'spec'
to 'face-attrs'.
(face-spec-choose, face-spec-set-2): Doc fix.  (Bug#27238)
2017-06-10 11:39:59 +03:00
Eli Zaretskii
30c0f81f9f Fix handling of Python/Guile commands with arguments in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-python-guile-commands-regexp): New
variable.
(gdb-control-commands-regexp): Use it.
(gdb-send): Don't increment gdb-control-level if the command
matches gdb-python-guile-commands-regexp and has non-empty
arguments.  Reported by David Boles <boles@ieee.org> in
http://lists.gnu.org/archive/html/emacs-devel/2017-06/msg00009.html.
2017-06-10 11:29:58 +03:00
Eli Zaretskii
6b4b13eb38 Preserve point in Dired windows under 'dired-auto-revert-buffer'
* lisp/dired.el (dired-find-file): When dired-auto-revert-buffer
is non-nil, bind switch-to-buffer-preserve-window-point to nil
while calling find-file.  (Bug#27243)
2017-06-10 11:22:50 +03:00
Philipp Stephani
39121649be Give test files a -tests.el suffix
Rename a couple of test files that have the same name as the library
they test.  This harmonizes the naming pattern and makes it possible
to have the tests directories in the load path.
2017-06-09 15:56:49 +02:00
Philipp Stephani
517c704a63 Fix another compiler warning on macOS
* src/image.c (x_query_frame_background_color): Don't define if we
have NextStep but no image support.
2017-06-09 01:27:39 +02:00
Philipp Stephani
6e00ffe317 Add garbage collection support for module environments
* src/emacs-module.c (mark_modules): New function.
(initialize_environment): Properly initialize Lisp objects.
* src/alloc.c (garbage_collect_1): Call it.
2017-06-09 01:25:47 +02:00
Glenn Morris
a62d15763d Make autogen.sh report relevant environment variables
* autogen.sh (check_version):
Indicate if using an environment variable.
2017-06-08 12:48:59 -04:00
Noam Postavsky
0648edf3e0 Split variable macro env from function env
* lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Remove.
(cl-symbol-macrolet): Instead of adding each binding directly into the
main environment with a special key format, put all symbol macro
bindings into a single entry in the main environment under
`:cl-symbol-macros'.
(cl--sm-macroexpand): Look up symbol bindings in the
`:cl-symbol-macros' entry of the environment.
2017-06-07 20:03:31 -04:00
Glenn Morris
b52e40d756 ; ChangeLog fixes 2017-06-07 15:55:33 -04:00
Glenn Morris
622306b3fd * make-dist: Directory modules/mod-test no longer exists. 2017-06-07 14:39:59 -04:00
Glenn Morris
9d63c87e91 More authors.el updates
* admin/authors.el (authors-ignored-files, authors-valid-file-names)
(authors-renamed-files-alist): Additions.

; ChangeLog fixes
2017-06-07 14:27:21 -04:00
Glenn Morris
b1103a2c4f * make-dist: Check a release has a ChangeLog with a release notice. 2017-06-07 13:41:46 -04:00
Glenn Morris
ed226a5b34 * make-dist: Use existing ChangeLog if present. 2017-06-07 13:26:25 -04:00
Michael Albinus
a9327a0afc * lisp/net/tramp-sh.el (tramp-maybe-open-connection): Fix port handling. 2017-06-07 16:24:31 +02:00
Lars Ingebrigtsen
6252386378 (url-cookie-host-can-set-p): Protect against zero-length domains
* lisp/url/url-cookie.el (url-cookie-host-can-set-p): Protect
against zero-length domains.

Backtrace of a real-world site that triggers a bug:

Debugger entered--Lisp error: (args-out-of-range "" 0)
  url-cookie-host-can-set-p("www.washingtonpost.com" "")
  url-cookie-handle-set-cookie("utm_term=0;Expires=Thursday,
  01-January-1970 00:00:00 GMT; path=/; domain=")
  url-http-handle-cookies()
2017-06-07 16:17:47 +02:00
Glenn Morris
43885eac09 More authors.el updates
* admin/authors.el (authors-obsolete-files-regexps)
(authors-valid-file-names, authors-renamed-files-alist)
(authors-renamed-files-regexps): Additions.
2017-06-06 16:19:10 -04:00
Glenn Morris
30e33e967b ; * admin/authors.el (authors-obsolete-files-regexps): Tweak previous. 2017-06-06 15:19:58 -04:00
Glenn Morris
a203e717eb More small authors.el updates
* admin/authors.el (authors-aliases): Fix recent addition.
(authors-obsolete-files-regexps, authors-no-scan-regexps)
(authors-ignored-files, authors-valid-file-names)
(authors-renamed-files-alist): Additions.
; * lisp/vc/pcvs.el, test/lisp/emacs-lisp/checkdoc-tests.el:
; Fix Author headers.
; * ChangeLog.2: Fixes.
2017-06-06 15:08:41 -04:00
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