]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years agoAvoid compiler warning in image.c on MS-Windows
Eli Zaretskii [Wed, 14 Jun 2017 16:09:21 +0000 (19:09 +0300)]
Avoid compiler warning in image.c on MS-Windows

* src/image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Avoid
compilation warning under -Warray-bounds by temporarily disabling
the -Warray-bounds option.

7 years agoFix Bug#27315
Michael Albinus [Wed, 14 Jun 2017 12:17:22 +0000 (14:17 +0200)]
Fix Bug#27315

* lisp/net/tramp-cache.el (tramp-cache-read-persistent-data):
New defvar.
(top): Use it.

* lisp/net/tramp.el (tramp-handle-file-name-case-insensitive-p):
Check for connected, not for connectable.  (Bug#27315)
(tramp-process-actions):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
Use `tramp-cache-read-persistent-data'.

* test/lisp/net/tramp-tests.el (top): Set also
`tramp-cache-read-persistent-data'.

7 years agoGive a fixed default value for icomplete-prospects-height (Bug#26939)
Noam Postavsky [Mon, 5 Jun 2017 23:18:14 +0000 (19:18 -0400)]
Give a fixed default value for icomplete-prospects-height (Bug#26939)

* lisp/icomplete.el (icomplete-prospects-height): Default to 2.
(icomplete-prospects-length): Remove.
* etc/NEWS: Announce removal.

7 years agoRemove some tautological comparisons involving rlim_t
Philipp Stephani [Wed, 14 Jun 2017 10:35:58 +0000 (12:35 +0200)]
Remove some tautological comparisons involving rlim_t

Clang on macOS warns about these with -Wtautological-compare.  POSIX
guarantees that rlim_t is
unsigned (cf.
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html),
so these resource limits can never be negative.

* src/emacs.c (main): Remove tautological comparisons.

7 years agoUse --module-assertions if modules are available
Philipp Stephani [Wed, 14 Jun 2017 10:18:36 +0000 (12:18 +0200)]
Use --module-assertions if modules are available

Using --module-assertions helps us find bugs in the test module.  But
we can use it only if Emacs was compiled with module support.

* test/Makefile.in (MODULES_EMACSOPT): New variable.
(emacs): Use it.

7 years agoDefine --module-assertions only of modules are available
Philipp Stephani [Wed, 14 Jun 2017 08:46:45 +0000 (10:46 +0200)]
Define --module-assertions only of modules are available

Fixes Bug#27352.

* src/emacs.c (usage_message, standard_args): Define
--module-assertions only if Emacs has been compiled with module
support.

7 years ago; Fix typo in INSTALL
Michael Albinus [Wed, 14 Jun 2017 07:08:45 +0000 (09:08 +0200)]
; Fix typo in INSTALL

7 years agognus-article-read-summary-keys: Don't move point for WDD and WDW commands
Katsumi Yamaoka [Wed, 14 Jun 2017 05:35:39 +0000 (05:35 +0000)]
gnus-article-read-summary-keys: Don't move point for WDD and WDW commands

* lisp/gnus/gnus-art.el (gnus-article-read-summary-keys):
No need to restore window config for WDD and WDW commands.

7 years agolisp/net/soap-client.el: Bump version to 3.1.3
Thomas Fitzsimmons [Wed, 14 Jun 2017 00:56:25 +0000 (20:56 -0400)]
lisp/net/soap-client.el: Bump version to 3.1.3

* lisp/net/soap-client.el: Bump version to 3.1.3.
(soap-name-p): Fix checkdoc issue.

7 years agoFix an HTTP encoding error in soap-client.el
Alex Harsanyi [Wed, 14 Jun 2017 00:49:59 +0000 (20:49 -0400)]
Fix an HTTP encoding error in soap-client.el

* lisp/net/soap-client.el (soap-invoke-internal): Make
SOAPAction header a UTF-8 encoded string.

7 years agoPort cleanup attribute to Oracle Studio 12.5
Paul Eggert [Wed, 14 Jun 2017 01:19:30 +0000 (18:19 -0700)]
Port cleanup attribute to Oracle Studio 12.5

* INSTALL (--with-modules): List cleanup attribute as prereq.
* src/conf_post.h (__has_attribute_cleanup): Remove; no longer needed.
* src/emacs-module.c (MODULE_SETJMP_1): Don’t attempt to verify
(__has_attribute (cleanup)), as Oracle Studio 12.5 supports
__has_attribute only inside preprocessor expressions.  The C
compiler should check the cleanup attribute in the next line anyway.
(module_reset_handlerlist): Remove an unnecessary ‘const’
that causes Oracle Studio 12.5 to refuse to compile.

7 years agoFix running tests in without-modules builds
Glenn Morris [Tue, 13 Jun 2017 22:53:38 +0000 (18:53 -0400)]
Fix running tests in without-modules builds

* test/Makefile.in (EMACSOPT): Remove option that is only defined
with-modules.  emacs-module-tests.el passes it where needed.

7 years ago* test/Makefile.in (src/emacs-module-tests.log): Out-of-tree fix.
Glenn Morris [Tue, 13 Jun 2017 19:41:56 +0000 (15:41 -0400)]
* test/Makefile.in (src/emacs-module-tests.log): Out-of-tree fix.

7 years agoInline test module Makefile into main test Makefile
Philipp Stephani [Tue, 13 Jun 2017 18:46:03 +0000 (20:46 +0200)]
Inline test module Makefile into main test Makefile

The test/data/emacs-module/Makefile only built a single target, and
inlining it into test/Makefile simplifies dependency tracking and
reduces code duplication.

* configure.ac: Don't build test/data/emacs-module/Makefile.

* Makefile.in ($(test_module)): Inline compilation.
(clean): Also clean test module outputs.

7 years ago* lisp/net/tramp-sh.el (tramp-set-file-uid-gid): Do not handle locally on w32.
Michael Albinus [Tue, 13 Jun 2017 13:54:09 +0000 (15:54 +0200)]
* lisp/net/tramp-sh.el (tramp-set-file-uid-gid): Do not handle locally on w32.

7 years agoMinor tweaks in Tramp manual
Michael Albinus [Tue, 13 Jun 2017 13:20:43 +0000 (15:20 +0200)]
Minor tweaks in Tramp manual

* doc/misc/trampver.texi: Add prefixwithspace flag.

* doc/misc/tramp.texi (Password handling): Harmonize example.
(File name completion): Use prefixwithspace flag.
(Frequently Asked Questions): Explain `tramp-histfile-override'.

7 years agoSilence two Clang warnings by introducing additional local variables
Philipp Stephani [Tue, 13 Jun 2017 11:55:44 +0000 (13:55 +0200)]
Silence two Clang warnings by introducing additional local variables

* lib/strftime.c (libc_hidden_def):
* lib-src/make-docfile.c (put_filename): Introduce local variables to
silence Clang warnings.

7 years agoFix wrong indentation after string literal (Bug#27306)
Noam Postavsky [Sat, 10 Jun 2017 13:50:48 +0000 (09:50 -0400)]
Fix wrong indentation after string literal (Bug#27306)

* lisp/emacs-lisp/lisp-mode.el (lisp-indent-state)
(lisp-indent-calc-next): Remove `depth' field, use (car ppss) instead.
* test/lisp/emacs-lisp/lisp-mode-tests.el
(lisp-indent-region-after-string-literal): New test.

7 years agoFix version checks for emacs-module.h
Philipp Stephani [Tue, 13 Jun 2017 07:53:33 +0000 (09:53 +0200)]
Fix version checks for emacs-module.h

We don't need C11 or C++11 because stdbool.h is in C99, and for C++ we
don't need it at all.

7 years ago; Fix docstring
Lele Gaifax [Tue, 13 Jun 2017 05:31:53 +0000 (14:31 +0900)]
; Fix docstring

* lisp/bindings.el (mode-line-percent-position):
End docstring first sentence with a period (Bug#27339).

Copyright-paperwork-exempt: yes

7 years agoButtonize #<bytecode> part of printed functions (Bug#25226)
Noam Postavsky [Sun, 11 Jun 2017 13:49:44 +0000 (09:49 -0400)]
Buttonize #<bytecode> part of printed functions (Bug#25226)

* lisp/emacs-lisp/cl-print.el: Autoload `disassemble-1'.
(cl-print-compiled-button): New variable.
(help-byte-code): New button type, calls `disassemble' in its action.
(cl-print-object): Use it if `cl-print-compiled-button' is
non-nil.

7 years agoPrint module structure sizes when initializing test module
Philipp Stephani [Mon, 12 Jun 2017 21:45:18 +0000 (23:45 +0200)]
Print module structure sizes when initializing test module

* test/data/emacs-module/mod-test.c (emacs_module_init): Print
compile-time and runtime sizes of module structures to ease debugging

7 years agoSmall portability fix for emacs-module.h (bug#27346)
Glenn Morris [Mon, 12 Jun 2017 21:43:28 +0000 (17:43 -0400)]
Small portability fix for emacs-module.h (bug#27346)

* src/emacs-module.h (EMACS_ATTRIBUTE_NONNULL) [!__has_attribute]:
Avoid 'error: missing binary operator before token "("'.

7 years agoGive a more informative failure in module assertion test
Glenn Morris [Mon, 12 Jun 2017 21:37:30 +0000 (17:37 -0400)]
Give a more informative failure in module assertion test

* test/src/emacs-module-tests.el (module--test-assertions):
Rephrase final check to give a more informative failure.

7 years agoFix off-by-one error
Philipp Stephani [Mon, 12 Jun 2017 21:35:23 +0000 (23:35 +0200)]
Fix off-by-one error

* test/data/emacs-module/mod-test.c (emacs_module_init): Fix
off-by-one error.

7 years agoClean up after module assertion tests
Glenn Morris [Mon, 12 Jun 2017 21:31:25 +0000 (17:31 -0400)]
Clean up after module assertion tests

* test/src/emacs-module-tests.el (module--test-assertions):
Use a temporary directory to contain any core dumps.

7 years agoSmall improvement for module assertion test
Glenn Morris [Mon, 12 Jun 2017 21:17:20 +0000 (17:17 -0400)]
Small improvement for module assertion test

* test/src/emacs-module-tests.el (module--test-assertions):
Don't rely on the precise form of an "Abort" message.

7 years agoImprove previous test/data/emacs-module/Makefile change
Glenn Morris [Mon, 12 Jun 2017 20:52:49 +0000 (16:52 -0400)]
Improve previous test/data/emacs-module/Makefile change

* test/data/emacs-module/Makefile.in (clean):
Avoid doing unpleasant things if run in a build without modules.

7 years agoSmall improvements for test/data/emacs-module/Makefile
Glenn Morris [Mon, 12 Jun 2017 20:35:39 +0000 (16:35 -0400)]
Small improvements for test/data/emacs-module/Makefile

* test/data/emacs-module/Makefile.in (%.o):
Fix emacs-module dependency.
(SECONDARY): Stop make automatically deleting *.o.
(clean): New rule.

7 years ago* make-dist: Skip some more generated files in test/.
Glenn Morris [Mon, 12 Jun 2017 17:53:38 +0000 (13:53 -0400)]
* make-dist: Skip some more generated files in test/.

7 years agoNote how fullscreen differs on the NS port
Alan Third [Mon, 12 Jun 2017 17:26:23 +0000 (18:26 +0100)]
Note how fullscreen differs on the NS port

doc/lispref/frames.texi (Size Parameters):
doc/emacs/frames.texi (Tool Bars): Add a description of how macOS
hides the tool-bar and menu-bar in fullscreen.

7 years agoAdd no-focus-on-map to NS build (bug#25408)
Alan Third [Sun, 11 Jun 2017 16:07:28 +0000 (17:07 +0100)]
Add no-focus-on-map to NS build (bug#25408)

* src/nsfns.m (ns_frame_parm_handlers): Add x_set_no_focus_on_map.
(x-create-frame): Check for no-focus-on-map.
* src/nsterm.h (x_set_no_focus_on_map): New function.
* src/nsterm.m (x_set_no_focus_on_map): New function.
(ns_raise_frame): Add parameter for specifying whether to focus the
frame.
(ns_frame_raise_lower):
(x_make_frame_visible): Handle new parameter for ns_raise_frame.

7 years ago_Noreturn not noreturn
Paul Eggert [Mon, 12 Jun 2017 17:38:27 +0000 (10:38 -0700)]
_Noreturn not noreturn

_Noreturn is more portable to non-C11 platforms.  See:
https://www.gnu.org/software/gnulib/manual/html_node/stdnoreturn_002eh.html
* src/emacs-module.c: Use _Noreturn, not noreturn.  No need to
include <stdnoreturn.h>.  Reindent to fit in 80 columns.

7 years agoUpdate make-dist for recent test/ changes
Glenn Morris [Mon, 12 Jun 2017 16:33:37 +0000 (12:33 -0400)]
Update make-dist for recent test/ changes

* make-dist: No longer distribute test/data/emacs-module/Makefile.

7 years ago; Instrument `tramp-handle-file-name-case-insensitive-p' for debugging
Michael Albinus [Mon, 12 Jun 2017 15:54:53 +0000 (17:54 +0200)]
; Instrument `tramp-handle-file-name-case-insensitive-p' for debugging

7 years agoHandle port and domain in Tramp's password cache
Michael Albinus [Mon, 12 Jun 2017 15:52:42 +0000 (17:52 +0200)]
Handle port and domain in Tramp's password cache

* doc/misc/tramp.texi (Password handling): Explain port and
domain handling in authinfo.

* lisp/net/tramp.el (tramp-process-actions, tramp-clear-passwd):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handler-askpassword):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl)
(tramp-smb-maybe-open-connection): Handle also domain and port.

7 years agoAvoid compilation warnings with pre-C99 libc
Eli Zaretskii [Mon, 12 Jun 2017 15:04:04 +0000 (18:04 +0300)]
Avoid compilation warnings with pre-C99 libc

* src/emacs-module.c (module_free_global_ref)
(module_assert_runtime, module_assert_env, value_to_lisp): Use 'pD'
instead of C99 't' format descriptor.

7 years agoFlush all output streams before aborting
Philipp Stephani [Mon, 12 Jun 2017 14:39:15 +0000 (16:39 +0200)]
Flush all output streams before aborting

Maybe the stdout buffer still contains something interesting that
should be flushed.

* src/emacs-module.c (module_abort): Flush all output streams before
aborting.

7 years agoRemove an assertion that doesn't test Emacs invariants
Philipp Stephani [Mon, 12 Jun 2017 14:37:45 +0000 (16:37 +0200)]
Remove an assertion that doesn't test Emacs invariants

* src/emacs-module.c (module_copy_string_contents): Remove an
assertion that doesn't test Emacs invariants.

7 years agoTest module: add necessary version checks
Philipp Stephani [Mon, 12 Jun 2017 14:28:16 +0000 (16:28 +0200)]
Test module: add necessary version checks

* test/data/emacs-module/mod-test.c (emacs_module_init): Add necessary
version checks.

7 years agoUse additional CFLAGS from configure
Philipp Stephani [Mon, 12 Jun 2017 14:18:01 +0000 (16:18 +0200)]
Use additional CFLAGS from configure

7 years agoUse Autoconf to generate the test module Makefile
Philipp Stephani [Mon, 12 Jun 2017 14:09:37 +0000 (16:09 +0200)]
Use Autoconf to generate the test module Makefile

This makes it easier to pass compilation flags around.

* configure.ac: Also build test module Makefile.

* test/data/emacs-module/Makefile.in: New makefile template.

* test/Makefile.in ($(test_module)): No longer necessary to pass
@MODULES_SUFFIX@ around.

* .gitignore: Test module Makefile can now be ignored.

7 years agoAlso compile test module as C11
Philipp Stephani [Mon, 12 Jun 2017 13:27:18 +0000 (15:27 +0200)]
Also compile test module as C11

* test/data/emacs-module/Makefile (CFLAGS): Compile test module as C11

7 years agoImplement module assertions for users
Philipp Stephani [Mon, 5 Jun 2017 11:29:14 +0000 (13:29 +0200)]
Implement module assertions for users

Add a new command-line option '-module-assertions' that users can
enable developing or debugging a module.  If this option is present,
Emacs performs additional checks to verify that modules fulfill their
requirements.  These checks are expensive and crash Emacs if modules
are invalid, so disable them by default.

This is a command-line option instead of an ordinary variable because
changing it while Emacs is running would cause data structure
imbalances.

* src/emacs.c (main): New command line option '-module-assertions'.

* src/emacs-module.c (module_assert_main_thread)
(module_assert_runtime, module_assert_env, module_assert_value):
New functions to assert module requirements.
(syms_of_module): New uninterned variable 'module-runtimes'.
(init_module_assertions, in_main_thread, module_abort): New helper
functions.
(initialize_environment): Initialize value list.  If assertions are
enabled, use a heap-allocated environment object.
(finalize_environment): Add assertion that environment list is never
empty.
(finalize_runtime_unwind): Pop module runtime object stack.
(value_to_lisp): Assert that the value is valid.
(lisp_to_value): Record new value if assertions are enabled.
(mark_modules): Mark allocated object list.
(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): Assert thread and environment.
(module_get_environment): Assert thread and runtime.
(module_make_function, module_funcall, module_intern)
(module_funcall, module_make_integer, module_make_float)
(module_make_string, module_make_user_ptr, module_vec_get)
(funcall_module, Fmodule_load): Adapt callers.
(module_make_global_ref): If assertions are enabled, use the global
environment to store global values.
(module_free_global_ref): Remove value from global value list.

* test/Makefile.in (EMACSOPT): Enable module assertions when testing
modules.

* test/data/emacs-module/mod-test.c (Fmod_test_invalid_store)
(Fmod_test_invalid_load): New functions to test module assertions.
(emacs_module_init): Bind the new functions.

* test/src/emacs-module-tests.el (mod-test-emacs): New constant for
the Emacs binary file.
(mod-test-file): New constant for the test module file name.
(module--test-assertions): New unit test.

7 years agoemacs-module: Use __attribute__((nonnull))
Philipp Stephani [Mon, 12 Jun 2017 08:57:39 +0000 (10:57 +0200)]
emacs-module: Use __attribute__((nonnull))

Annotate all parameters with __attribute__((nonnull)) that may not be
NULL.

7 years agoExplicitly require C11 or C++11 in emacs-module.h
Philipp Stephani [Mon, 12 Jun 2017 08:54:29 +0000 (10:54 +0200)]
Explicitly require C11 or C++11 in emacs-module.h

We already implicitly require them by including stdbool.h.  Just make
the error message a bit clearer, and remove an unnecessary version
comparison.

7 years agoAdd missing 'require' forms to prevent compiler warnings.
Philipp Stephani [Mon, 12 Jun 2017 08:01:25 +0000 (10:01 +0200)]
Add missing 'require' forms to prevent compiler warnings.

* lisp/eshell/esh-ext.el (esh-arg, esh-proc): Add missing
requirements.

7 years agoMerge from gnulib
Paul Eggert [Mon, 12 Jun 2017 00:29:21 +0000 (17:29 -0700)]
Merge from gnulib

This incorporates:
2017-06-11 getopt-posix: port to glibc 2.25.90
2017-06-04 same-inode: port better to VMS 8.2 and later
* doc/misc/texinfo.tex, lib/getopt-pfx-core.h, lib/getopt-pfx-ext.h:
* m4/sys_types_h.m4: Copy from gnulib.

7 years agoRemove Lisp_Misc_Float
Paul Eggert [Mon, 12 Jun 2017 00:05:03 +0000 (17:05 -0700)]
Remove Lisp_Misc_Float

* src/data.c (Ftype_of): Do not worry about Lisp_Misc_Float.
* src/lisp.h (Lisp_Misc_Float): Remove.  This placeholder has been
unused for two decades; if we ever want to change floats to be a
misc type we can bring it back then.

7 years agoMake two symbols private to emacs-module.c
Paul Eggert [Mon, 12 Jun 2017 00:02:10 +0000 (17:02 -0700)]
Make two symbols private to emacs-module.c

* src/lisp.h (allocate_module_function, XSET_MODULE_FUNCTION):
Move from here ...
* src/emacs-module.c: ... to here.

7 years agoMerge from origin/emacs-25
Glenn Morris [Sun, 11 Jun 2017 23:20:41 +0000 (16:20 -0700)]
Merge from origin/emacs-25

da62c1532e4 (origin/emacs-25) Improve the documentation of filesets

7 years ago; Merge from origin/emacs-25
Glenn Morris [Sun, 11 Jun 2017 23:20:41 +0000 (16:20 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

16ef7539cb3 Don't advertise s_client in tls.el docs
94a6c964a45 Remove s_client usage from tls.el

7 years agoMerge from origin/emacs-25
Glenn Morris [Sun, 11 Jun 2017 23:20:41 +0000 (16:20 -0700)]
Merge from origin/emacs-25

e80f6a210b0 Describe problems with Microsoft Intellipoint
a73ec1edb07 More accurate documentation of the ':box' face attribute

7 years ago; Merge from origin/emacs-25
Glenn Morris [Sun, 11 Jun 2017 23:20:40 +0000 (16:20 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

50b4f85720a ; Bump Emacs version past 25.2

7 years agoMerge from origin/emacs-25
Glenn Morris [Sun, 11 Jun 2017 23:20:40 +0000 (16:20 -0700)]
Merge from origin/emacs-25

eaa00584ceb Improve documentation of 'gnutls-verify-error'
908498cc01b ; etc/PROBLEMS: Describe GTK-related crashes on elementar...
741daec617e ; Describe the problem with ksh when resizing shell window

7 years agoSome further improvements for tramp-gvfs.el
Michael Albinus [Sun, 11 Jun 2017 21:16:13 +0000 (23:16 +0200)]
Some further improvements for tramp-gvfs.el

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name)
(tramp-gvfs-get-file-attributes)
(tramp-gvfs-maybe-open-connection): Handle davs? properly.
(tramp-gvfs-handler-askquestion): Improve `yes-or-no-p' prompt.
Show question also in batch mode.  Cache result.

* test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion):
Support completion for host names and ports.

7 years agoFix highlighting of CSS selectors with double hyphens
Simen Heggestøyl [Sun, 11 Jun 2017 15:41:09 +0000 (17:41 +0200)]
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.

7 years agoSupport threads in modules
Philipp Stephani [Sat, 22 Apr 2017 14:51:44 +0000 (16:51 +0200)]
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.

7 years agoAllow non-local exits in module initializers
Philipp Stephani [Sun, 11 Jun 2017 12:50:20 +0000 (14:50 +0200)]
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.

7 years agoLet eshell/sudo handle absolute command names (Bug#27167)
Noam Postavsky [Wed, 7 Jun 2017 22:48:39 +0000 (18:48 -0400)]
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.

7 years agoDon't wait for toolbar in NS native fullscreen
Alan Third [Sat, 10 Jun 2017 21:44:01 +0000 (22:44 +0100)]
Don't wait for toolbar in NS native fullscreen

* src/nsterm.m (EmacsView:updateFrameSize): Don't short-circuit the
function when in fullscreen.

7 years ago; Spelling fixes
Paul Eggert [Sat, 10 Jun 2017 18:44:27 +0000 (11:44 -0700)]
; Spelling fixes

7 years agoFix the placement of GTK menus on multi-monitor systems
Alexander Gramiak [Sat, 10 Jun 2017 09:28:03 +0000 (12:28 +0300)]
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)

7 years agoClarify documentation of 'face-spec-set'
Eli Zaretskii [Sat, 10 Jun 2017 09:08:45 +0000 (12:08 +0300)]
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)

7 years agoFix domain port and handling in tramp-gvfs.el
Michael Albinus [Sat, 10 Jun 2017 08:57:19 +0000 (10:57 +0200)]
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.

7 years agoImprove documentation of 'face-spec-set-2'
Eli Zaretskii [Sat, 10 Jun 2017 08:39:59 +0000 (11:39 +0300)]
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)

7 years agoFix handling of Python/Guile commands with arguments in gdb-mi.el
Eli Zaretskii [Sat, 10 Jun 2017 08:29:58 +0000 (11:29 +0300)]
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.

7 years agoPreserve point in Dired windows under 'dired-auto-revert-buffer'
Eli Zaretskii [Sat, 10 Jun 2017 08:22:50 +0000 (11:22 +0300)]
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)

7 years agoGive test files a -tests.el suffix
Philipp Stephani [Fri, 19 May 2017 08:58:58 +0000 (10:58 +0200)]
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.

7 years agoFix another compiler warning on macOS
Philipp Stephani [Thu, 8 Jun 2017 23:27:39 +0000 (01:27 +0200)]
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.

7 years agoAdd garbage collection support for module environments
Philipp Stephani [Thu, 8 Jun 2017 23:25:47 +0000 (01:25 +0200)]
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.

7 years agoMake autogen.sh report relevant environment variables
Glenn Morris [Thu, 8 Jun 2017 16:48:59 +0000 (12:48 -0400)]
Make autogen.sh report relevant environment variables

* autogen.sh (check_version):
Indicate if using an environment variable.

7 years agoSplit variable macro env from function env
Noam Postavsky [Sat, 22 Apr 2017 03:37:05 +0000 (23:37 -0400)]
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.

7 years ago; ChangeLog fixes
Glenn Morris [Wed, 7 Jun 2017 19:55:33 +0000 (15:55 -0400)]
; ChangeLog fixes

7 years ago* make-dist: Directory modules/mod-test no longer exists.
Glenn Morris [Wed, 7 Jun 2017 18:39:59 +0000 (14:39 -0400)]
* make-dist: Directory modules/mod-test no longer exists.

7 years agoMore authors.el updates
Glenn Morris [Wed, 7 Jun 2017 18:27:21 +0000 (14:27 -0400)]
More authors.el updates

* admin/authors.el (authors-ignored-files, authors-valid-file-names)
(authors-renamed-files-alist): Additions.

; ChangeLog fixes

7 years ago* make-dist: Check a release has a ChangeLog with a release notice.
Glenn Morris [Wed, 7 Jun 2017 17:41:46 +0000 (13:41 -0400)]
* make-dist: Check a release has a ChangeLog with a release notice.

7 years ago* make-dist: Use existing ChangeLog if present.
Glenn Morris [Wed, 7 Jun 2017 17:26:25 +0000 (13:26 -0400)]
* make-dist: Use existing ChangeLog if present.

7 years ago* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Fix port handling.
Michael Albinus [Wed, 7 Jun 2017 14:24:31 +0000 (16:24 +0200)]
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Fix port handling.

7 years ago(url-cookie-host-can-set-p): Protect against zero-length domains
Lars Ingebrigtsen [Wed, 7 Jun 2017 14:17:47 +0000 (16:17 +0200)]
(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()

7 years agoMore authors.el updates
Glenn Morris [Tue, 6 Jun 2017 20:19:10 +0000 (16:19 -0400)]
More authors.el updates

* admin/authors.el (authors-obsolete-files-regexps)
(authors-valid-file-names, authors-renamed-files-alist)
(authors-renamed-files-regexps): Additions.

7 years ago; * admin/authors.el (authors-obsolete-files-regexps): Tweak previous.
Glenn Morris [Tue, 6 Jun 2017 19:19:58 +0000 (15:19 -0400)]
; * admin/authors.el (authors-obsolete-files-regexps): Tweak previous.

7 years agoMore small authors.el updates
Glenn Morris [Tue, 6 Jun 2017 19:08:41 +0000 (15:08 -0400)]
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.

7 years ago; Update some more Maintainer: header comments
Glenn Morris [Tue, 6 Jun 2017 01:08:07 +0000 (21:08 -0400)]
; Update some more Maintainer: header comments

; This removes some people who are absent from commit logs or mailing
; lists for upwards of a decade.

7 years ago; Update some Maintainer: header comments
Glenn Morris [Tue, 6 Jun 2017 00:48:49 +0000 (20:48 -0400)]
; Update some Maintainer: header comments

7 years agoMake authors.el report names that were ignored
Glenn Morris [Tue, 6 Jun 2017 00:39:29 +0000 (20:39 -0400)]
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.

7 years ago* admin/authors.el (authors-aliases): Additions.
Glenn Morris [Tue, 6 Jun 2017 00:38:31 +0000 (20:38 -0400)]
* admin/authors.el (authors-aliases): Additions.

7 years ago; Small fixes for some Author: header comments
Glenn Morris [Tue, 6 Jun 2017 00:35:17 +0000 (20:35 -0400)]
; Small fixes for some Author: header comments

7 years ago; ChangeLog fixes
Glenn Morris [Tue, 6 Jun 2017 00:33:55 +0000 (20:33 -0400)]
; ChangeLog fixes

7 years ago* test/lisp/subr-tests.el (subr-tests-bug22027): Add test.
Tino Calancha [Mon, 5 Jun 2017 00:35:29 +0000 (09:35 +0900)]
* test/lisp/subr-tests.el (subr-tests-bug22027): Add test.

7 years ago* lisp/subr.el (read-passwd): Don't delete return value (Bug#22027).
Noam Postavsky [Sun, 4 Jun 2017 03:41:53 +0000 (23:41 -0400)]
* lisp/subr.el (read-passwd): Don't delete return value (Bug#22027).

7 years agoEnable ElDoc messages after the newline command
Dmitry Gutov [Mon, 5 Jun 2017 22:23:41 +0000 (01:23 +0300)]
Enable ElDoc messages after the newline command

* lisp/emacs-lisp/eldoc.el:
Add "newline" to the eldoc-add-command-completions call (bug#27228).

7 years agoEnable eldoc-mode explicitly inside read--expression
Dmitry Gutov [Mon, 5 Jun 2017 22:04:04 +0000 (01:04 +0300)]
Enable eldoc-mode explicitly inside read--expression

* lisp/simple.el (read--expression): Call eldoc-mode (bug#27202).

7 years agoFix check for package-unsigned-archives during retrieval
Andy Moreton [Mon, 5 Jun 2017 22:01:55 +0000 (01:01 +0300)]
Fix check for package-unsigned-archives during retrieval

* lisp/emacs-lisp/package.el (package--download-one-archive):
Fix check for package-unsigned-archives.

7 years agoMerge etc/emacs-buffer.gdb from emacs-25 to master.
Noah Friedman [Mon, 5 Jun 2017 21:08:22 +0000 (14:08 -0700)]
Merge etc/emacs-buffer.gdb from emacs-25 to master.

7 years agoFix undefined behavior in mapbacktrace
Philipp Stephani [Mon, 5 Jun 2017 20:09:00 +0000 (22:09 +0200)]
Fix undefined behavior in mapbacktrace

* src/eval.c (Fmapbacktrace): Don't assume that PDL is still valid.

7 years agoFix emacs-module-tests on MS-Windows
Eli Zaretskii [Mon, 5 Jun 2017 16:16:04 +0000 (19:16 +0300)]
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.

7 years agoUse unwind protection to clean up data structures in modules
Philipp Stephani [Mon, 5 Jun 2017 11:05:51 +0000 (13:05 +0200)]
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.

7 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Mon, 5 Jun 2017 11:00:07 +0000 (13:00 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

7 years agoSome minor tweaks in tramp-tests.el
Michael Albinus [Mon, 5 Jun 2017 10:59:26 +0000 (12:59 +0200)]
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.