1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

129502 commits

Author SHA1 Message Date
Simen Heggestøyl
ee051688c1 Fix highlighting of CSS selectors with double hyphens
* lisp/textmodes/css-mode.el (css--font-lock-keywords): Fix
highlighting of selectors that contain double hyphens.  They would be
mistaken for a variable.
2017-06-11 19:32:17 +02:00
Philipp Stephani
8160c7d914 Support threads in modules
Rather than checking for the main thread, check for the current
thread.

* emacs-module.c (check_thread): New function.
(MODULE_FUNCTION_BEGIN_NO_CATCH, module_get_environment)
(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_is_not_nil, module_eq): Use it.
2017-06-11 15:24:05 +02:00
Philipp Stephani
9a86966edb Allow non-local exits in module initializers
Previously signals, throws, and quits from module initialization
functions were ignored.  These function aren't special, and better
errors can be reported using signals than with the initialization
return code, so allow non-local exits.

* src/emacs-module.c (module_signal_or_throw): New helper function.
(Fmodule_load, funcall_module): Use it.
(Fmodule_load): Also allow quitting.
2017-06-11 14:54:05 +02:00
Noam Postavsky
cf557fa9c5 Let eshell/sudo handle absolute command names (Bug#27167)
* lisp/eshell/esh-ext.el (eshell-find-interpreter): Don't change
absolute paths into relative ones.
2017-06-11 07:39:40 -04:00
Alan Third
517a0394d2 Don't wait for toolbar in NS native fullscreen
* src/nsterm.m (EmacsView:updateFrameSize): Don't short-circuit the
function when in fullscreen.
2017-06-10 22:49:45 +01:00
Paul Eggert
b94472f188 ; Spelling fixes 2017-06-10 11:44:49 -07:00
Alexander Gramiak
bdf41152af Fix the placement of GTK menus on multi-monitor systems
menu_position_func did not properly use the current monitor's
resolution.  Also see commit '2016-02-06 22:12:53 +0100'.

* lisp/frame.el (frame-monitor-attribute, frame-monitor-geometry)
(frame-monitor-workarea): New functions.

* src/xmenu.c (menu_position_func): Take into account the workarea of
the monitor that contains the mouse.  (Bug#23568)
2017-06-10 12:28:03 +03:00
Eli Zaretskii
187a71df59 Clarify documentation of 'face-spec-set'
* lisp/faces.el (face-spec-set): Clarify the description of
SPEC-TYPE in the doc string.

* doc/lispref/display.texi (Defining Faces): Clarify the
description of 'face-spec-set's SPEC-TYPE argument.  (Bug#27246)
2017-06-10 12:08:45 +03:00
Michael Albinus
f361c54e6a Fix domain port and handling in tramp-gvfs.el
* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-byte-array-to-string):
Return nil if BYTE-ARRAY is nil.
(tramp-gvfs-url-file-name, tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
Fix domain and port handling.

* lisp/net/tramp.el (tramp-handle-file-name-case-insensitive-p):
Ignore errors.
2017-06-10 10:57:19 +02:00
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