1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

136411 Commits

Author SHA1 Message Date
Basil L. Contovounesios
c972da907d Clarify what constitutes an event (bug#35238)
* doc/lispref/commands.texi (Input Events): Specify that events are
non-nil and remove vestiges of bug#10190.
* doc/lispref/os.texi (Recording Input): Document optional argument
of recent-keys.
* lisp/subr.el (eventp): Check that the car of conses is non-nil.
* etc/NEWS: Announce it as an incompatible change.
* src/keyboard.c (Frecent_keys): Clarify that returned "events" are
not real events.
2019-05-07 18:00:20 +01:00
Eli Zaretskii
e10d08df7e Fix 'load-average' on MS-Windows
* src/w32.c (getloadavg): Always return at least one element
of the array.
2019-05-07 17:48:32 +03:00
Vitalie Spinu
37436fe6d3 Fix cloning of eieio-named objects (Bug#22840)
* lisp/emacs-lisp/eieio-base.el (clone): Correctly set the name of the
  cloned objects from eieio-named instances.
2019-05-07 13:45:00 +02:00
Basil L. Contovounesios
fb65a36f45 Fix ibuffer-unmark-backward synopsis (bug#35572)
* lisp/ibuffer.el (ibuffer-mode): Fix synopsis of
ibuffer-unmark-backward along with other minor copy-edits.
2019-05-07 01:43:46 +01:00
Wilson Snyder
921d279e15 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2019-05-06 18:35:59 -04:00
Wilson Snyder
01963fbbe1 Fix verilog-mode module backticks; whitespace from prev commits.
* verilog-mode.el (verilog-read-inst-module-matcher):
Work when point is near backtick. Reported by Mattias Engdegard.
2019-05-06 18:35:31 -04:00
Juri Linkov
6fa99f06b9 * lisp/emacs-lisp/lisp.el (insert-pair-alist): Turn defvar into defcustom.
Revert to old default value.  (Bug#35480)
2019-05-06 22:32:26 +03:00
Stefan Monnier
c31823a51b Make combine-after-change-calls work in the common case again
* src/insdel.c (signal_after_change): Allow combine_after_change_calls
even when syntax-ppss-flush-cache is on before-change-functions.
2019-05-06 14:58:20 -04:00
Eli Zaretskii
f77bd2b4ed ; * src/lisp.h (DEFSYM): Fix inaccurate comment. 2019-05-06 21:52:19 +03:00
John Shahid
66c388c21a Prevent accidental edits in the ansi-term buffer from breaking resizing
* lisp/term.el (term-unwrap-line, term-emulate-terminal): Prevent the
  `term-line-wrap` property of newlines from spreading accidentally
  when inserting text next to it.
2019-05-06 14:35:40 -04:00
Alan Mackenzie
77b1148b51 c-beginning-of-statement-1: Handle syntactic WS macros properly.
* lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): The variable
before-sws-pos should record the position of a closing paren/brace/bracket
before moving backwards over a sexp.  When there is a syntactic WS macro
between the starting point and the closing p/b/b, setq before-sws-pos again
after moving backward over the macro.
2019-05-06 17:36:28 +00:00
Stefan Monnier
6309131349 * lisp/custom.el: Avoid adding vars to load-history multiple times
Avoid the abuse of (eval `(defvar ...)) which tends to end up
adding redundant entries in `load-history`, as discussed in
https://lists.gnu.org/r/help-gnu-emacs/2019-03/msg00237.html

(custom-initialize-default): Don't add to load-history.
(custom-declare-variable): Use internal--define-uninitialized-variable
and only add the var to load-history once.  Do it before calling
`initialize` so the special-variable-p flag is set.

* src/eval.c (Finternal__define_uninitialized_variable): New function.
(Fdefvar, Fdefconst): Use it.
(syms_of_eval): Defsubr' it.
2019-05-06 12:37:00 -04:00
Michael Albinus
f0c0b2cea3 Use lambda in tramp-compat-* functions
* lisp/net/tramp-compat.el (tramp-handle-temporary-file-directory):
Declare.
(tramp-compat-temporary-file-directory-function): Use function symbol.
(tramp-compat-file-attribute-type)
(tramp-compat-file-attribute-link-number)
(tramp-compat-file-attribute-user-id)
(tramp-compat-file-attribute-group-id)
(tramp-compat-file-attribute-modification-time)
(tramp-compat-file-attribute-size)
(tramp-compat-file-attribute-modes)
(tramp-compat-directory-name-p, tramp-compat-file-local-name)
(tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote, tramp-compat-exec-path)
(tramp-compat-time-equal-p, tramp-compat-flatten-tree):
Make them lambdas.
2019-05-06 12:04:24 +02:00
Michael Albinus
1ac5c6c3cf ; Make /etc/NEWS more consistent 2019-05-06 11:23:54 +02:00
Paul Eggert
926a394997 Use simpler way to print function pointers
The module code can’t possibly work on weird platforms where
function pointers are wider than data pointers, so there’s no need
to bother with the stackoverflow-like approach that is intended
only for portability to such platforms.  Besides, the
stackoverflow-like approach does not work well on weird platforms
where CHAR_BIT is not a multiple of 4.
* src/lisp.h (pMx): New macro.
* src/print.c (data_from_funcptr) [HAVE_MODULES]: New function.
(print_vectorlike) [HAVE_MODULES]: Use it.
(print_object): Make sure buf is big enough for this.
2019-05-05 17:40:55 -07:00
Juri Linkov
31c60dfbd8 * lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode.
Check for the value of flymake-mode after hooks are finished (bug#34294)
2019-05-05 23:07:44 +03:00
Juri Linkov
be3ab9f301 * lisp/progmodes/flymake.el: Rename flymake-start-on-newline (bug#34294)
* lisp/progmodes/flymake.el (flymake-start-on-newline): Rename from
flymake-start-syntax-check-on-newline.
(flymake-start-syntax-check-on-newline): Define obsolete alias.
(flymake-no-changes-timeout): Add customization option nil.

* doc/misc/flymake.texi (Using Flymake): Rename variable.
2019-05-05 23:05:01 +03:00
Juri Linkov
4bfde2a790 * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map): Remove Git prefixes.
Strip possible source/destination prefixes such as a/ and b/
from directory names.   (Bug#35420)
(ediff-fixup-patch-map, ediff-dispatch-file-patching-job)
(ediff-patch-file-internal): Replace string-match with string-match-p.
2019-05-05 22:51:14 +03:00
Juri Linkov
7bba702e1a Use ngettext instead of dired-plural-s in Dired (bug#35287)
* lisp/dired-aux.el (dired-map-over-marks-check): Use ngettext
instead of dired-plural-s.
(dired-create-files): Also add colon after operation name.
(dired-compare-directories): Use ngettext and format-message.
(dired-do-compress-to): Use ngettext.

* lisp/dired.el (dired-internal-do-deletions)
(dired-clean-up-after-deletion): Use ngettext instead of dired-plural-s.
2019-05-05 22:43:27 +03:00
Juri Linkov
c64cb02cca * lisp/emacs-lisp/lisp.el (insert-pair-alist): Precompute default value.
Use unicode-property-table-internal with 'paired-bracket to append
pairs of open/close characters to the default value (bug#35480).
2019-05-05 22:34:03 +03:00
Juri Linkov
df9b56ecff Rename shell-command-width to async-shell-command-width (bug#35055)
* lisp/simple.el (async-shell-command-width):
* lisp/net/tramp.el (tramp-handle-shell-command):
* test/lisp/net/tramp-tests.el (tramp-test32-shell-command):
* doc/misc/tramp.texi (Remote processes): Rename this variable.

* doc/emacs/misc.texi (Single Shell): Add async-shell-command-width.
2019-05-05 22:27:33 +03:00
Paul Eggert
81487bf891 Port mod-test to --enable-gcc-warnings
* test/data/emacs-module/mod-test.c (NDEBUG): Undef, to prevent
GCC from complaining “error: unused variable ‘dummy’” and failing
to build the test, if --enable-gcc-warnings.
2019-05-05 09:08:24 -07:00
Eli Zaretskii
f9939b24eb ; * doc/emacs/display.texi (Displaying Boundaries): Fix a typo. 2019-05-05 18:10:15 +03:00
Eli Zaretskii
6709240b7a Fix compilation of mod-test.c on MinGW
* test/data/emacs-module/mod-test.c (Fmod_test_nanoseconds)
[__MINGW32__]: Use _Static_assert, not static_assert, as the
latter is not available in mingw.org's MinGW's assert.h.
2019-05-05 18:07:26 +03:00
Jimmy Aguilar Mena
cca81f22d9 Fixed fill-column-indicator face removing background.
*lisp/faces.el: Removed background in default fill-column-indicator
 face.
*src/xdisp.c: fill-column-indicator face merged with saved face.
2019-05-05 16:59:25 +02:00
Jimmy Aguilar Mena
a336300ccf ;Corrected display-fill-column-indicator mode.
Small corrections in the documentation and code format to merge into master.
2019-05-05 16:27:37 +02:00
Jimmy Aguilar Mena
5b842bd782 *src/xdisp.c: Fixed fill column indicator position in terminal mode. 2019-05-05 16:27:37 +02:00
Jimmy Aguilar Mena
491e145f96 display-fill-column-indicator interface corrections
*lisp/display-fill-column-indicator.el: Fixed character selection for
the indicator based in the current faces. Extended condition to set
display-fill-column-indicator-character in graphical displays.

*src/xdisp.c: Fixed some long lines.
2019-05-05 16:27:37 +02:00
Jimmy Aguilar Mena
18ea7605c0 ;Small changes in the documentation
*src/xdisp.c: Fixed docstring for display-fill-column-indicator-column
*etc/NEWS: Concordance fix in the display-fill-column-indicator part.
*doc/emacs/display.texi: Name mismatch fix.
2019-05-05 16:27:37 +02:00
Jimmy Aguilar Mena
d8089ad2c2 Added correction in the texinfo manual.
*doc/emacs/text.texi: Added a reference to the
display-fill-column-indicator section.
2019-05-05 16:27:37 +02:00
Jimmy Aguilar Mena
c7ff15c6eb Added fill-column-indicator manual documentation
*etc/NEWS: reduced the comments about fill-column-indicator
*doc/emacs/display.texi: Added documentation for fill-column-indicator
 in this section in the manual
2019-05-05 16:27:37 +02:00
Jimmy Aguilar Mena
c34f00b58c Fixed fill-column-indicator for continuation lines
*src/xdisp.c: Grouped the test conditions for
display-fill-column-indicator mode in a macro to simplify future
modifications.
2019-05-05 16:27:37 +02:00
Jimmy Aguilar Mena
ab4619e7c3 Display-fill-column-indicator NEWS info.
*etc/NEWS: Added information about the fill-column-indicator mode.
*lisp/faces.el: Added a face for the display fill column indicator.
2019-05-05 16:27:37 +02:00
Jimmy Aguilar Mena
245dff16e3 Start display-fill-column-indicator-mode. 2019-05-05 16:27:37 +02:00
Michael Albinus
f8625bc8f7 Describe, how to adapt shell command output width in Tramp
* doc/misc/tramp.texi (Quick Start Guide, GVFS based methods):
Fix @cindex.
(Remote processes): Add some @vindex.  Describe shell command
output width.
2019-05-05 16:20:14 +02:00
Eli Zaretskii
d45d5c339c Avoid compiler warning in print.c
* src/print.c (print_vectorlike): Don't use %hh, as that is
not portable enough; we don't yet assume a C99-compliant
library.
2019-05-05 17:17:24 +03:00
Eli Zaretskii
708d117a85 Avoid crashes in read_integer
* src/lread.c (read_integer): Always allocate a buffer, since
we need to use it even when the radix is invalid.  (Bug#35576)
2019-05-05 17:06:01 +03:00
Stefan Monnier
64f95e4011 * lisp/files.el (hack-local-variables): Don't burp when files-x isn't loaded 2019-05-05 08:57:04 -04:00
Michael Albinus
10aa44a1dd ; SOme changes in filenotify-tests.el for EMBA
* test/lisp/filenotify-tests.el (file-notify-test03-events)
(file-notify-test05-file-validity)
(file-notify-test09-watched-file-in-watched-dir): Adapt for EMBA.
2019-05-05 13:34:26 +02:00
Michael Albinus
f82e0e5b76 Adapt tests for recent file-notification changes in Tramp
* lisp/net/tramp.el (tramp-file-notify-process-sentinel):
Pacify byte compiler.

* test/lisp/autorevert-tests.el
(auto-revert-test02-auto-revert-deleted-file):
* test/lisp/filenotify-tests.el (file-notify-test03-events)
(file-notify-test05-file-validity)
(file-notify-test09-watched-file-in-watched-dir): Adapt for remote
files.
2019-05-05 12:20:44 +02:00
Mattias Engdegård
ab64228883 Reorganise (auto-)revert nodes in the manual
Put all information about auto-revert into a section of its own, and
organise the text in a more logical way.  Previously it was mainly
described in the section about reverting (bug#35418).

* doc/emacs/files.texi (Files): Adjust menu.
(Reverting, Auto Revert, Autorevert): Add node `Auto Revert' and move
text on that topic from `Reverting', rearranged.  Turn the old
`Autorevert' node into a subsection under `Auto Revert'.
* doc/emacs/arevert-xtra.texi (Autorevert): Rename and turn into
subsubsection.
* doc/emacs/buffers.texi (Several Buffers): Adjust references.
* doc/emacs/emacs.texi (Top): Adjust menu.
* doc/emacs/emacs-xtra.texi (Top): Adjust menu.
(Non-File Buffers): Add node and section lines.
2019-05-05 11:47:14 +02:00
Noam Postavsky
3b86e0b812 Clarify handling of long options (Bug#24949)
* doc/emacs/cmdargs.texi (Emacs Invocation): Note that space can be
used instead of "=" only if an option requires an argument.
2019-05-04 23:55:50 -04:00
Philipp Stephani
b5aeb86a7e Avoid suppressing -Wcast-function-type warning.
GCC special-cases the type ‘void (*)(void)’ to not emit warnings when
cast, see
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcast-function-type.
Make use of this to remove a warning suppression.

* src/dynlib.h: Use void (*)(void) as generic function pointer type.

* src/emacs-module.c: Remove warning suppression.
2019-05-05 01:56:15 +02:00
Philipp Stephani
a976602066 Fix compilation of test module.
Because all other objects are compiled without -fPIC, we can’t use
them when linking the test module.  Instead, use the source files
directly.

* test/Makefile.in (HYBRID_MALLOC, LIBEGNU_ARCHIVE): Remove.
($(test_module)): Use source files instead of objects and archives.
2019-05-05 01:35:11 +02:00
Philipp Stephani
e95ecbe146 Use extract_time in test module.
* test/data/emacs-module/mod-test.c (Fmod_test_sleep_until): Use
extract_time for time argument.
(signal_wrong_type_argument): Remove unused function.

* test/src/emacs-module-tests.el (mod-test-sleep-until): Remove
unnecessary ‘float-time’.
2019-05-05 01:34:07 +02:00
Philipp Stephani
27a9377d42 * test/Makefile.in (src/emacs-module-tests.elc): Require test module 2019-05-05 00:27:19 +02:00
Philipp Stephani
9684296a5d Refactoring: Factor out a function to set an mpz_t from a Lisp int.
* src/bignum.h (mpz_set_integer): New function.

* src/emacs-module.c (module_make_big_integer): Use it.
2019-05-04 23:31:40 +02:00
Philipp Stephani
1242a63671 Avoid undefined behavior when printing function pointers.
* src/print.c (print_vectorlike): Don’t pass a function pointer to
‘snprintf’, as that is undefined behavior.  Instead, print the
individual bytes making up the function pointer.
2019-05-04 23:04:24 +02:00
Michael Albinus
2e0947abbc Notify broken file notification from Tramp
* lisp/net/tramp.el (tramp-file-notify-process-sentinel): New defun.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Set process sentinel.
2019-05-04 22:29:27 +02:00
Paul Eggert
ebecafbd19 Port new fingerprinting scheme to clang + LTO
* lib-src/make-fingerprint.c (main): Don't consider multiple
instances of the fingerprint to be an error, as this can
happen with clang and -flto.  Instead, replace all instances
of the fingerprint.  There is a tiny chance that this will
silently corrupt the Emacs executable.

This patch suggests that we should go back to fingerprinting
the inputs to the linker instead of its output, as the new
fingerprinting scheme is unnecessarily complicated and this
complexity reduces reliability. The old scheme (i.e., before
commit 2019-05-14T23:31:24Z!eggert@cs.ucla.edu) was simpler
and more portable and good enough, and it's looking like it
would be less trouble in practice than the new scheme.
2019-05-04 13:16:15 -07:00