aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Don't override SSH_AUTH_SOCK in the example emacs.service fileLars Ingebrigtsen2019-07-211-1/+3
| | | | | | | | | | | | | | | | | | * etc/emacs.service (ExecStop): Don't override SSH_AUTH_SOCK by default, because it varies by distribution where the socket is (bug#27620).
* | | Fill footnotes better on `M-q'Lars Ingebrigtsen2019-07-211-0/+10
| | | | | | | | | | | | | | | | | | * lisp/mail/footnote.el (footnote--fill-paragraph): New function (bug#27775). (footnote-mode): Use it.
* | | Fix expand-file-name for names starting with '~'Ken Brown2019-07-212-25/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/fileio.c: (file_name_absolute_no_tilde_p): New static function. (Fexpand_file_name): If the current buffer's default-directory starts with "~user" where "user" is not a valid user name, don't give the '~' a special meaning. Just treat the value of default-directory as a relative name. (Bug#36502) * test/src/fileio-tests.el (fileio-tests--relative-default-directory): Add a test.
* | | Fix inline-quote Edebug specGemini Lasswell2019-07-211-1/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/inline.el (inline-quote): Fix the edebug spec (bug#31051).
* | | Tweak recent hash-table fixPaul Eggert2019-07-201-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | * src/fns.c (maybe_resize_hash_table): Completely initialize the new ‘next’ vector before allocating more vectors, as this preserves locality a bit better and it’s safer not to leave an uninitialized Lisp object around. Use next_size instead of new_size to compute new index size.
* | | Fix crash if user test munges hash tablePaul Eggert2019-07-208-31/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/fns.c (restore_mutability) (hash_table_user_defined_call): New functions. (cmpfn_user_defined, hashfn_user_defined): Use them. (make_hash_table, copy_hash_table): Mark new hash table as mutable. (check_mutable_hash_table): New function. (Fclrhash, Fputhash, Fremhash): Use it instead of CHECK_IMPURE. * src/lisp.h (struct hash_table_test): User-defined functions now take pointers to struct Lisp_Hash_Table, not to struct hash_table_test. All uses changed. (struct Lisp_Hash_Table): New member ‘mutable’. * src/pdumper.c (dump_hash_table): Copy it. * test/src/fns-tests.el (test-hash-function-that-mutates-hash-table): New test, which tests for the bug.
* | | Simplify hashfn/cmpfn calling conventionPaul Eggert2019-07-2012-106/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/fns.c (cmpfn_eql, cmpfn_equal, cmpfn_user_defined) (hashfn_eq, hashfn_equal, hashfn_eql, hashfn_user_defined): * src/profiler.c (cmpfn_profiler, hashfn_profiler): Use new calling convention where the return value is a fixnum instead of EMACS_UINT. While we’re at it, put the hash table at the end, since that’s a bit simpler and generates better code (at least on the x86-64). All callers changed. * src/fns.c (hash_lookup): Store fixnum rather than EMACS_UINT. All callers changed. (hash_put): Take a fixnum rather than an EMACS_UINT. All callers changed. Remove unnecessary eassert (XUFIXNUM does it). * src/lisp.h (struct hash_table_test): Adjust signatures of cmpfn and hashfn.
* | | Inhibit GC after inhibit_garbage_collectionPaul Eggert2019-07-201-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this patch, there are unlikely ways that garbage collection could occur (sometimes causing undefined behavior) even when inhibit_garbage_collection is in effect. * src/alloc.c (garbage_collection_inhibited): New var. (pure_alloc): Increment it if pure space is exhausted, so that garbage_collect_1 no longer needs to inspect pure_bytes_used_before_overflow. (allow_garbage_collection): New function. (inhibit_garbage_collection): Increment the new variable rather than specbinding a user variable. (garbage_collect_1): Do not garbage collect if the new variable is set, rather than if pure_bytes_used_before_overflow is set.
* | | Simplify maybe_gc implementationPaul Eggert2019-07-202-42/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (consing_until_gc): New variable, replacing the combination of consing_since_gc and gc_relative_threshold. All uses changed. (byte_ct): Move decl here from lisp.h. (memory_full_cons_threshold): New an enum constant. (free_cons): Check for integer overflow in statistics calculation. * src/lisp.h (object_ct): Move decl here from alloc.c. (OBJECT_CT_MAX): New macro. (maybe_gc): Simplify accordingly.
* | | Rename ‘pure’ to ‘purecopy’Paul Eggert2019-07-205-12/+12
| | | | | | | | | | | | | | | | | | * src/lisp.h (struct Lisp_Hash_Table): Rename ‘pure’ member to ‘purecopy’, as the old name was quite confusing (it did not mean the hash table was pure). All uses changed.
* | | Fix hash table overallocation etc.Paul Eggert2019-07-201-58/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/fns.c (set_hash_key_and_value, set_hash_next) (set_hash_hash, set_hash_index): Remove. All uses removed. (maybe_resize_hash_table): Don’t update h->next until it’s known that all the allocations succeeded, to avoid trashing the hash table if memory is exhausted. Don’t overallocate the other vectors. Don’t output growth message if the hash table didn’t actually grow due to allocation failure. Assume C99 decls after statements.
* | | Merge from emacs-26Noam Postavsky2019-07-206-9/+33
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 150bdfe43a Handle completely undecoded input in term (Bug#29918) 021f32cca1 * doc/misc/forms.texi (Control File Format): Fix a doc error. 76538d09b7 Fix typo in package-alist docstring b2fde4b5e8 * doc/lispref/text.texi (Mode-Specific Indent): Fix a typo... 7e62778548 ; Another minor change in 'bidi-display-reordering's doc s... 4455ddbe56 Improve doc string of 'bidi-display-reordering' 34ee26dd93 Add warning to bidi-display-reordering doc string # Conflicts: # lisp/term.el # test/lisp/term-tests.el
| * | Handle completely undecoded input in term (Bug#29918)Noam Postavsky2019-07-202-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/term.el (term-emulate-terminal): Avoid errors if the whole decoded string is eight-bit characters. Don't attempt to save the string for next iteration in that case. * test/lisp/term-tests.el (term-decode-partial) (term-undecodable-input): New tests.
| * | * doc/misc/forms.texi (Control File Format): Fix a doc error.N. Jackson2019-07-201-1/+1
| | | | | | | | | | | | | | | | | | (Bug#36693) Copyright-paperwork-exempt: yes
| * | Fix typo in package-alist docstringBasil L. Contovounesios2019-07-171-2/+2
| | | | | | | | | | | | | | | | | | Pointed out by Michael Heerdegen <michael_heerdegen@web.de>. * lisp/emacs-lisp/package.el (package-alist): Fix docstring grammar (bug#17403).
| * | * doc/lispref/text.texi (Mode-Specific Indent): Fix a typo (bug#36646).Markus Triska2019-07-141-1/+1
| | |
| * | ; Another minor change in 'bidi-display-reordering's doc string.Eli Zaretskii2019-07-131-2/+2
| | |
| * | Improve doc string of 'bidi-display-reordering'Eli Zaretskii2019-07-131-1/+4
| | | | | | | | | | | | | | | * src/buffer.c (syms_of_buffer) <bidi-display-reordering>: Further doc fix.
| * | Add warning to bidi-display-reordering doc stringStefan Kangas2019-07-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This explanation was given by Eli Zaretskii on emacs-devel. For discussion, see: https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00294.html * src/buffer.c (syms_of_buffer): Add warning to doc string of bidi-display-reordering to explain that it should only be used for debugging.
* | | Use lexical-binding in compface.elBasil L. Contovounesios2019-07-211-6/+4
| | | | | | | | | | | | | | | | | | * lisp/image/compface.el: Use lexical-binding. Extend Keywords header. (uncompface): Call call-process-region directly.
* | | * lisp/files.el (file-size-function): Add :version tagOleh Krehel2019-07-201-5/+6
| | |
* | | * test/manual/indent/octave.m (spmd): Add test for last changeStefan Monnier2019-07-201-0/+4
| | |
* | | * lisp/progmodes/octave.el (matchedrules): Add `spmd...end` (bug#36703)Stefan Monnier2019-07-201-0/+1
| | |
* | | Fix last change to format-specBasil L. Contovounesios2019-07-202-9/+8
| | | | | | | | | | | | | | | | | | | | | * doc/lispref/text.texi (Interpolated Strings): Use @result and fix typos. * lisp/format-spec.el: Avoid loading subr-x at runtime. (format-spec--parse-modifiers): Optimize slightly.
* | | Allow counter-clockwise rotations in image-rotateBasil L. Contovounesios2019-07-204-10/+43
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/image.el (image-rotate): Extend with an optional argument specifying the rotation in degrees (bug#35421). * doc/lispref/display.texi (Showing Images): * etc/NEWS: Document the change. * test/lisp/image-tests.el (image-rotate): New test.
* | | Mark the gnus-article-date-headers NEWS entry as documentedLars Ingebrigtsen2019-07-201-0/+1
| | |
* | | Enable showing local time and lapsed time in GnusAdam Sjøgren2019-07-203-16/+33
| | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-art.el (article-make-date-combine-with-lapsed) factor code out into new function, used for providing both combined-lapsed and combined-local-lapsed.
* | | Clean up code in nnimap-parse-flags slightlyLars Ingebrigtsen2019-07-201-7/+5
| | | | | | | | | | | | | | | * lisp/gnus/nnimap.el (nnimap-parse-flags): Clean up code slightly, removing redundant checks for `end'.
* | | Fix last changeEli Zaretskii2019-07-202-2/+6
| | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Call out the change in matching REGEXP. * lisp/files.el (magic-mode-alist) (magic-fallback-mode-alist): Doc fix. (Bug#36401)
* | | Make REs in magic-(fallback-)mode-alist case-sensitive.Benjamin Riefenstahl2019-07-202-8/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These variables are used for well-defined file formats where relaxed case matching is not wanted usually. * lisp/files.el (magic-mode-alist, magic-fallback-mode-alist): Update the doc string. (set-auto-mode): Make looking-at for elements of magic-mode-alist and magic-fallback-mode-alist use case-fold-search == nil. * lisp/files.el (files-test-magic-mode-alist-re-baseline) (files-test-magic-mode-alist-re-no-match) (files-test-magic-mode-alist-re-case-diff): Add.
* | | Make finder-exit use quit-window (Bug#33610)Stefan Kangas2019-07-201-3/+4
| | | | | | | | | | | | | | | | | | | | | * lisp/finder.el (finder-exit): Quit window instead of deleting. This restores previous contents of the window, if any, that was usurped by "C-h p" to show the list of packages.
* | | Remove duplicated code in octave-eldoc-functionMauro Aranda2019-07-201-6/+1
| | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/octave.el (octave-eldoc-function): The test of position of the opening parenthesis in inferior-octave-process was duplicated. Remove one of the tests. (Bug#36557)
* | | * lisp/files.el (file-size-function): New defcustomOleh Krehel2019-07-192-1/+10
| | |
* | | Neater free disk space formattingMattias Engdegård2019-07-191-5/+2
| | | | | | | | | | | | | | | * lisp/files.el (get-free-disk-space): Update doc string. Use `iec' style and proper spacing.
* | | Have 'display-buffer-reuse-window' prefer window on selected frame (Bug#36680)Martin Rudalics2019-07-192-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/window.el (display-buffer-reuse-window): Preferably reuse window on selected frame (Bug#36680). * doc/lispref/windows.texi (Buffer Display Action Functions): Say that 'display-buffer-reuse-window' prefers window on the selected frame.
* | | Don't load elec-pair in elisp-mode (Bug#36539)Noam Postavsky2019-07-181-6/+18
| | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (emacs-lisp-set-electric-text-pairs): New function. (emacs-lisp-mode): Add it to electric-pair-mode-hook, if elec-pair hasn't been loaded yet.
* | | Use lexical-binding in help-fns-tests.el (Bug#36585)Stefan Kangas2019-07-181-2/+2
| | | | | | | | | | | | * test/lisp/help-fns-tests.el: Use lexical-binding. Doc fix.
* | | Declare mwheel-install obsolete (Bug#36553)Stefan Kangas2019-07-182-10/+18
| | | | | | | | | | | | | | | | | | * lisp/mwheel.el: Update `Commentary' section. (mwheel-install): Declare obsolete in favor of mouse-wheel-mode. * etc/NEWS: Announce it.
* | | * lisp/vc/vc-git.el (vc-git-log-search): Remove shell-quote-argument.Juri Linkov2019-07-191-3/+1
| | | | | | | | | | | | (Bug#36644)
* | | Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsMichael Albinus2019-07-182-13/+83
|\ \ \
| * | | Use lexical-binding in asm-mode.el and add testsSimen Heggestøyl2019-07-182-13/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/asm-mode.el: Use lexical-binding. (asm-comment-char): Remove redundant :group arg. (asm-mode): Use `setq-local'. (asm-calculate-indentation): Remove moot `or'. * test/lisp/progmodes/asm-mode-tests.el: New file with tests for asm-mode.el.
* | | | ; Fix last commit in tramp-sh.elMichael Albinus2019-07-181-3/+3
|/ / /
* | | Determine `file-notify' handler in Tramp from `special-event-map'.Michael Albinus2019-07-181-3/+3
| | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-gio-monitor-process-filter) (tramp-sh-gvfs-monitor-dir-process-filter) (tramp-sh-inotifywait-process-filter): Determine `file-notify' handler from `special-event-map'.
* | | * lisp/server.el (server-ensure-safe-dir): Revert part of b663c8372495Stefan Monnier2019-07-181-10/+0
| | | | | | | | | | | | A non-cosmetic change that was mistakenly included.
* | | Update a tramp test for get-free-disk-space changeGlenn Morris2019-07-181-1/+1
| | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Handle optional unit suffix in free space.
* | | * lisp/files.el (get-free-disk-space): Use file-size-human-readableOleh Krehel2019-07-181-1/+1
| | | | | | | | | | | | | | | | | | Since there is no longer an option to do: (setq directory-free-space-args "-Pmh")
* | | * lisp/abbrev.el (abbrev-prefix-mark): Fix a typo. (Bug#36715)Eli Zaretskii2019-07-181-2/+2
| | |
* | | Fix indexing of Gnus entry in gnus-group-unsubscribe-groupEric Abrahamsen2019-07-171-1/+1
| | | | | | | | | | | | | | | * lisp/gnus/gnus-group.el (gnus-group-unsubscribe-group): Hopefully that's the last of these.
* | | Add xref-file-name-displayStephen Leake2019-07-172-1/+12
| | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref-file-name-display): New user variable. (xref-location-group): Use it. * etc/NEWS: Mention it.
* | | * test/lisp/progmodes/cc-mode-tests.el: Add a test with /***/ in #define linesNick Drozd2019-07-171-0/+9
| | |