aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | c-beginning-of-statement-1: Handle syntactic WS macros properly.Alan Mackenzie2019-05-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | | | | * lisp/custom.el: Avoid adding vars to load-history multiple timesStefan Monnier2019-05-062-32/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Fix verilog-mode module backticks; whitespace from prev commits.Wilson Snyder2019-05-061-11/+11
|/ / / / / | | | | | | | | | | | | | | | | | | | | * verilog-mode.el (verilog-read-inst-module-matcher): Work when point is near backtick. Reported by Mattias Engdegard.
* | | | | Use lambda in tramp-compat-* functionsMichael Albinus2019-05-061-106/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | ; Make /etc/NEWS more consistentMichael Albinus2019-05-061-118/+124
| | | | |
* | | | | Use simpler way to print function pointersPaul Eggert2019-05-052-21/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | * lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode.Juri Linkov2019-05-051-1/+2
| | | | | | | | | | | | | | | | | | | | Check for the value of flymake-mode after hooks are finished (bug#34294)
* | | | | * lisp/progmodes/flymake.el: Rename flymake-start-on-newline (bug#34294)Juri Linkov2019-05-054-27/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map): Remove Git prefixes.Juri Linkov2019-05-051-9/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Use ngettext instead of dired-plural-s in Dired (bug#35287)Juri Linkov2019-05-052-26/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | * lisp/emacs-lisp/lisp.el (insert-pair-alist): Precompute default value.Juri Linkov2019-05-051-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Use unicode-property-table-internal with 'paired-bracket to append pairs of open/close characters to the default value (bug#35480).
* | | | | Rename shell-command-width to async-shell-command-width (bug#35055)Juri Linkov2019-05-056-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | Port mod-test to --enable-gcc-warningsPaul Eggert2019-05-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | ; * doc/emacs/display.texi (Displaying Boundaries): Fix a typo.Eli Zaretskii2019-05-051-1/+1
| | | | |
* | | | | Fix compilation of mod-test.c on MinGWEli Zaretskii2019-05-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | Fixed fill-column-indicator face removing background.Jimmy Aguilar Mena2019-05-053-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *lisp/faces.el: Removed background in default fill-column-indicator face. *src/xdisp.c: fill-column-indicator face merged with saved face.
* | | | | ;Corrected display-fill-column-indicator mode.Jimmy Aguilar Mena2019-05-056-87/+69
| | | | | | | | | | | | | | | | | | | | Small corrections in the documentation and code format to merge into master.
* | | | | *src/xdisp.c: Fixed fill column indicator position in terminal mode.Jimmy Aguilar Mena2019-05-051-2/+2
| | | | |
* | | | | display-fill-column-indicator interface correctionsJimmy Aguilar Mena2019-05-053-34/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *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.
* | | | | ;Small changes in the documentationJimmy Aguilar Mena2019-05-053-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *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.
* | | | | Added correction in the texinfo manual.Jimmy Aguilar Mena2019-05-052-22/+28
| | | | | | | | | | | | | | | | | | | | | | | | | *doc/emacs/text.texi: Added a reference to the display-fill-column-indicator section.
* | | | | Added fill-column-indicator manual documentationJimmy Aguilar Mena2019-05-052-10/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *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
* | | | | Fixed fill-column-indicator for continuation linesJimmy Aguilar Mena2019-05-051-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *src/xdisp.c: Grouped the test conditions for display-fill-column-indicator mode in a macro to simplify future modifications.
* | | | | Display-fill-column-indicator NEWS info.Jimmy Aguilar Mena2019-05-054-20/+92
| | | | | | | | | | | | | | | | | | | | | | | | | *etc/NEWS: Added information about the fill-column-indicator mode. *lisp/faces.el: Added a face for the display fill column indicator.
* | | | | Start display-fill-column-indicator-mode.Jimmy Aguilar Mena2019-05-056-10/+308
| | | | |
* | | | | Describe, how to adapt shell command output width in TrampMichael Albinus2019-05-051-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Quick Start Guide, GVFS based methods): Fix @cindex. (Remote processes): Add some @vindex. Describe shell command output width.
* | | | | Avoid compiler warning in print.cEli Zaretskii2019-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/print.c (print_vectorlike): Don't use %hh, as that is not portable enough; we don't yet assume a C99-compliant library.
* | | | | Avoid crashes in read_integerEli Zaretskii2019-05-051-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * src/lread.c (read_integer): Always allocate a buffer, since we need to use it even when the radix is invalid. (Bug#35576)
* | | | | * lisp/files.el (hack-local-variables): Don't burp when files-x isn't loadedStefan Monnier2019-05-051-1/+3
| | | | |
* | | | | ; SOme changes in filenotify-tests.el for EMBAMichael Albinus2019-05-051-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | Adapt tests for recent file-notification changes in TrampMichael Albinus2019-05-053-27/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | Reorganise (auto-)revert nodes in the manualMattias Engdegård2019-05-055-43/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Avoid suppressing -Wcast-function-type warning.Philipp Stephani2019-05-052-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Fix compilation of test module.Philipp Stephani2019-05-051-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Use extract_time in test module.Philipp Stephani2019-05-052-18/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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’.
* | | | | * test/Makefile.in (src/emacs-module-tests.elc): Require test modulePhilipp Stephani2019-05-051-1/+1
| | | | |
* | | | | Refactoring: Factor out a function to set an mpz_t from a Lisp int.Philipp Stephani2019-05-042-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/bignum.h (mpz_set_integer): New function. * src/emacs-module.c (module_make_big_integer): Use it.
* | | | | Avoid undefined behavior when printing function pointers.Philipp Stephani2019-05-041-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | Notify broken file notification from TrampMichael Albinus2019-05-043-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | Port new fingerprinting scheme to clang + LTOPaul Eggert2019-05-041-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | | Avoid slow overlay ansi coloring in eshell (Bug#29854)Noam Postavsky2019-05-043-15/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ansi-color.el (ansi-color-apply-on-region): Reset temporary markers after finishing with them. (ansi-color-apply-text-property-face): New function. * lisp/eshell/esh-mode.el (eshell-handle-ansi-color): * lisp/man.el (Man-fontify-manpage): Use it as the `ansi-color-apply-face-function' while calling `ansi-color-apply-on-region'. Use `font-lock-face' to propertize instead of `face'.
* | | | | Fix bytecode optimization typoPaul Eggert2019-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Simon Frankau (Bug#35562). * src/bytecode.c (exec_byte_code): Fix typo when optimizing varset.
* | | | | Fix Bug#35506John Shahid2019-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-interrupt-process): Kill the entire process group. (Bug#35506)
* | | | | Minor fix in .gdbinitEli Zaretskii2019-05-041-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/.gdbinit (xprintsym): Don't attempt to print the symbol's name if it is not yet set. This happens with built-in symbols at the beginning of 'main'.
* | | | | ; * src/minibuf.c (Fread_buffer): Doc fix. (Bug#35361)Eli Zaretskii2019-05-041-1/+2
| | | | |
* | | | | ; * src/xfaces.c (merge_face_ref): Improve commentary.Eli Zaretskii2019-05-041-8/+10
| | | | |
* | | | | Skip tests if test subdir is missingPaul Eggert2019-05-031-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Jeffrey Walton in: https://lists.gnu.org/r/emacs-devel/2019-05/msg00041.html * Makefile.in (CHECK_TARGETS): New macro; use it to simplify 'check' and similar rules. ($(CHECK_TARGETS)): If tests are missing, do not fail after issuing a diagnostic. Just skip the tests.
* | | | | Modernize INSTALL a bitPaul Eggert2019-05-031-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * INSTALL: Omit filesystem space estimates. These estimates were (1) wrong and (2) no longer important nowadays, as people have plenty of space. Instead, start with how to get and unpack an Emacs tarball. Don’t say "disk" as it’s often not disk nowadays. Update URLs.
* | | | | Simplify use of NDEBUG in etags.cPaul Eggert2019-05-031-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib-src/etags.c [!DEBUG]: Do not define NDEBUG, as that’s conf_post.h’s job now. [NDEBUG]: Do not redefine ‘assert’, as that works around ancient bugs (e.g., sunos4 pcc) that don’t matter any more, as can be seen that other Emacs source files that successfully use assert.h without this workaround.
* | | | | Pacify librsvg 2.45.1 and laterPaul Eggert2019-05-031-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | * src/image.c (svg_load_image): Pacify librsvg 2.45.1 and later, and add a FIXME comment about the deprecated librsvg functions.