aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Fix the interactive spec for set-frame-width/heightLars Ingebrigtsen2019-08-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * src/frame.c (Fset_frame_width): (Fset_frame_height): Use `prefix-numeric-value' to get the proper numeric value (bug#9970).
| * | | * lisp/mail/flow-fill.el: Change todo comment to not mention XEmacs.Stefan Kangas2019-08-211-2/+1
| | | |
| * | | ; Fix typo introduced by last autorevert-tests patchMichael Albinus2019-08-211-1/+1
| | | |
| * | | ; Fix typos in commentary section of xdisp.cMartin Rudalics2019-08-211-2/+2
| | | |
| * | | ; Add traces to auto-revert-test02-auto-revert-deleted-fileMichael Albinus2019-08-211-1/+4
| | | |
| * | | Be more careful about pointers to bignum valsPaul Eggert2019-08-218-55/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This uses ‘const’ to be better at catching bugs that mistakenly attempt to modify a bignum value. Lisp bignums are supposed to be immutable. * src/alloc.c (make_pure_bignum): * src/fns.c (sxhash_bignum): Accept Lisp_Object instead of struct Lisp_Bignum *, as that’s simpler now. Caller changed. * src/bignum.h (bignum_val, xbignum_val): New inline functions. Prefer them to &i->value and XBIGNUM (i)->value, since they apply ‘const’ to the result. * src/timefns.c (lisp_to_timespec): Use mpz_t const * to point to a bignum value.
| * | | Update mini-gmpPaul Eggert2019-08-201-5/+5
| | | | | | | | | | | | | | | | | | | | * src/mini-gmp.c: Sync from upstream. This incorporates: 2019-08-13 Silence a couple of warnings
| * | | Avoid some excess precision in time arithmeticPaul Eggert2019-08-207-60/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/emacs-mime.texi (time-date): Adjust example to match new behavior. * etc/NEWS: Mention this. * lisp/calendar/time-date.el (decoded-time-add) (decoded-time--alter-second): Don’t lose underestimate precision of seconds component. * src/bignum.c (mpz): Grow by 1. * src/timefns.c (trillion_factor): New function. (timeform_sub_ps_p): Remove. (time_arith): Avoid unnecessarily-large hz, by reducing the hz to a value no worse than the worse hz of the two arguments. The result is always exact unless an error is signaled. * test/src/timefns-tests.el (timefns-tests--decode-time): New function. (format-time-string-with-zone): Test (decode-time LOOK ZONE t) resolution as well as its numeric value.
| * | | Respect global-eldoc-mode in minibuffers (Bug#36886)Noam Postavsky2019-08-205-25/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Accept a BODY parameter. * doc/lispref/modes.texi (Defining Minor Modes): Document new parameter. * etc/NEWS: Announce it. * lisp/simple.el (read--expression): Move eldoc-mode setup to... * lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): ... here, new function. (global-eldoc-mode): Add or remove it to eval-expression-minibuffer-setup-hook when enabling or disabling global-eldoc-mode. This enables eldoc in the minibuffer (solving Bug#27202), only when global-eldoc-mode is enabled.
| * | | Support larger TIMEs in (time-convert TIME t)Paul Eggert2019-08-203-20/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, improve the doc to match current behavior. * doc/lispref/os.texi (Time Conversion): Document that time-convert signals an error for infinite or NaN args, and that (time-convert TIME t) is exact otherwise. Mention float-time as an alternative to time-convert. (Time Calculations): Document that time-add and time-subtract are exact and do not decrease HZ below the minimum of their args. * src/timefns.c (decode_float_time): Don’t signal an error for floating-point arguments whose base-FLT_RADIX exponent is not less than DBL_MANT_DIG. Instead, convert them to (TICKS . 1) values. Use two (instead of three) integer exponent comparisons in the typical case. * test/src/timefns-tests.el (time-arith-tests): Add more floating-point tests, including some tests that the old code fails.
* | | | Support `cl-defstruct' in autoloadsStephen Leake2019-09-102-1/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/autoload.el (make-autoload): Add `cl-defstruct' to "complex cases" list. * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Add :autoload-end to limit what is declared in autoloads.el for a defstruct.
* | | Delete built-in ada-mode; Gnu ELPA is a good replacementStephen Leake2019-08-207-10547/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/Makefile.in (INFO_COMMON): Delete ada-mode. * doc/misc/ada-mode.texi: Delete. * etc/NEWS: Mention ada-mode deleted. * lisp/progmodes/ada-mode.el: Delete. * lisp/progmodes/ada-prj.el: Delete. * lisp/progmodes/ada-stmt.el: Delete. * lisp/progmodes/ada-xref.el: Delete.
* | | Another attempt to fix bug#32645Michael Albinus2019-08-202-3/+6
| | | | | | | | | | | | | | | | | | | | | * test/lisp/autorevert-tests.el () (auto-revert-test02-auto-revert-deleted-file): * test/lisp/filenotify-tests.el (file-notify-test04-autorevert): Check `file-notify-valid-p', not that the descriptor is nil.
* | | ; * etc/NEWS: Move one incorrectly placed item.Stefan Kangas2019-08-201-3/+3
| | |
* | | Merge from origin/emacs-26Glenn Morris2019-08-203-19/+44
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | 615cff4 (origin/emacs-26) Fix process filter documentation (Bug#13400) beb1d22 Fix query-replace-regexp undo feature # Conflicts: # test/lisp/replace-tests.el
| * | Fix process filter documentation (Bug#13400)Noam Postavsky2019-08-191-16/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Asynchronous Processes): Note that input may read when sending data as well. (Output from Processes): Note that functions which send data may also trigger reading from processes. (Input to Processes, Filter Functions): Note that filter functions may be called recursively.
| * | Fix query-replace-regexp undo featureTino Calancha2019-08-192-3/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that non-regexp strings used with `looking-at' are quoted. * lisp/replace.el (perform-replace): Quote regexp (Bug#37073). * test/lisp/replace-tests.el (replace-tests-perform-replace-regexp-flag): New variable. (replace-tests-with-undo): Use it. (query-replace-undo-bug37073): Add tests.
* | | ; Merge from origin/emacs-26Glenn Morris2019-08-200-0/+0
|\ \ \ | |/ / | | | | | | | | | | | | The following commit was skipped: 190565b Support the new Japanese era name
| * | Support the new Japanese era nameEli Zaretskii2019-08-184-37/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/unidata/NormalizationTest.txt: * admin/unidata/UnicodeData.txt: Add U+32FF SQUARE ERA NAME REIWA. Do not merge to master. * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-tests--failing-lines-part1) (ucs-normalize-tests--failing-lines-part2): Update. Do not merge to master. * etc/NEWS: Mention the change.
* | | Merge from origin/emacs-26Glenn Morris2019-08-209-199/+250
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0b810eb Fix a typo in char-width-table 3f00db7 Minor update in admin/notes/unicode bcd0115 Fix lisp indent infloop on unfinished strings (Bug#37045) 5f992d1 Improve commentary in composite.el 3a04be2 ; Improve commentary in xdisp.c 15de1d1 Fix markup in dired-x.texi bda7fc7 ; Fix typo in a doc string of speedbar.el 6f57ef9 * src/callproc.c (Fcall_process): Doc fix. # Conflicts: # doc/misc/dired-x.texi # lisp/international/characters.el # src/callproc.c
| * | Fix a typo in char-width-tableEli Zaretskii2019-08-181-2/+2
| | | | | | | | | | | | | | | * lisp/international/characters.el (char-width-table): Fix a typo in zero-width characters.
| * | Minor update in admin/notes/unicodeEli Zaretskii2019-08-171-0/+3
| | | | | | | | | | | | | | | * admin/notes/unicode: Mention changes to be done in setup-default-fontset in fontset.el. (Bug#14461)
| * | Fix lisp indent infloop on unfinished strings (Bug#37045)Noam Postavsky2019-08-172-6/+15
| | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp-indent-calc-next): Stop trying to skip over strings if we've hit the end of buffer. * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-indent-unfinished-string): New test.
| * | Improve commentary in composite.elEli Zaretskii2019-08-171-1/+8
| | | | | | | | | | | | | | | | | | | | | * lisp/composite.el (compose-gstring-for-graphic) (compose-gstring-for-terminal): Add comments that explain Unicode General Category mnemonics in human-readable terms. (Bug#14461)
| * | ; Improve commentary in xdisp.cEli Zaretskii2019-08-171-24/+73
| | | | | | | | | | | | | | | * src/xdisp.c: Add to the commentary the description of stop_charpos, and how it is used during iteration.
| * | Fix markup in dired-x.texiEli Zaretskii2019-08-161-182/+161
| | | | | | | | | | | | | | | | | | | | | * doc/misc/dired-x.texi (Omitting Variables) (Local Variables, Shell Command Guessing) (Advanced Cleaning Variables, Special Marking Function): Fix markup and indexing. (Bug#14212)
| * | ; Fix typo in a doc string of speedbar.elEli Zaretskii2019-08-161-1/+1
| | | | | | | | | | | | | | | * lisp/speedbar.el (speedbar-supported-extension-expressions): Fix a typo in the doc string. (Bug#37041)
| * | * src/callproc.c (Fcall_process): Doc fix.Eli Zaretskii2019-08-101-1/+1
| | |
* | | * configure.ac (HAVE_JPEG): Test for window system. (Bug#36995)Ulrich Müller2019-08-201-38/+40
| | |
* | | Don't display wrong ElDoc information when inside ELisp strings or commentsMauro Aranda2019-08-201-8/+6
| | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (elisp--fnsym-in-current-sexp): Since forward-sexp assumes point is not in a string or comment, avoid calling it and then checking if point is inside a string, since that sometimes will fail with awkward results. (Bug#35567)
* | | Output `auto-coding-alist' in `describe-current-coding-system'Lars Ingebrigtsen2019-08-191-1/+2
| | | | | | | | | | | | | | | | | | | | | * lisp/international/mule-diag.el (describe-current-coding-system): Also output the contents of `auto-coding-alist', which take precedence over `file-coding-system-alist' (bug#9575).
* | | Add a new hook: `quit-window-hook'Lars Ingebrigtsen2019-08-193-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/windows.texi (Quitting Windows): Mention in. * lisp/window.el (quit-restore-window): Run the new `quit-window-hook' before doing anything else (bug#9867). (quit-window): Note that the hook will be run in the doc string. * lisp/window.el (quit-window-hook): New variable.
* | | Fix org-table 65536-second bugPaul Eggert2019-08-191-1/+1
| | | | | | | | | | | | | | | | | | * lisp/org/org-table.el (org-table-message-once-per-second): Fix bug when clock difference goes past a 65536-second boundary. Don’t assume particular format for current-time result.
* | | Fix time-add/time-sub validity checkingPaul Eggert2019-08-192-3/+7
| | | | | | | | | | | | | | | | | | * src/timefns.c (time_arith): Check the first arg for validity even if the second arg is not finite. * test/src/timefns-tests.el (time-arith-tests): Test this.
* | | * lisp/erc/erc-stamp.el: Fix erc-echo-timestamp (bug#22700)Stefan Monnier2019-08-191-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | Use lexical-binding. (erc-add-timestamp): Store the timestamp in a closure placed in cursor-sensor-functions rather than stashing it in an ad-hoc `timestamp` property. (erc-echo-timestamp): Simplify accordingly.
* | | Allow set-frame-height/set-frame-width to be used interactivelyLars Ingebrigtsen2019-08-183-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/frames.texi (Frame Size): Document it. * src/frame.c (Fset_frame_height): (Fset_frame_width): Make into commands that use the numeric prefix to set height/width (bug#9970).
* | | Add an advice-add/interactive spec exampleŠtěpán Němec2019-08-181-0/+24
| | | | | | | | | | | | | | | * doc/lispref/functions.texi (Core Advising Primitives): Add an advice-add example that extends the `interactive' spec (bug#17871).
* | | Invalidate dir-locals-directory-cache when writing dir-local fileJohan Claesson2019-08-181-0/+7
| | | | | | | | | | | | | | | | | | * lisp/files-x.el (modify-dir-local-variable): Remove file from the cache when writing to ensure that we load the new version later (bug#13860).
* | | Handle more subprocess chunking in M-x man (Bug#36927)Noam Postavsky2019-08-182-16/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/man.el (Man-bgproc-filter): Make sure not to chop man sections by narrowing. (Man-highlight-references0): Revert previous fix, as it's no longer needed. * test/lisp/man-tests.el (man-tests-filter-strings): New function. (man-bgproc-filter-buttonize-includes): New test.
* | | Improve bignum_integer static checkingPaul Eggert2019-08-183-14/+14
| | | | | | | | | | | | | | | | | | | | | * src/bignum.h (bignum_integer): Now returns pointer-to-const, to catch trivial mistakes where the caller might try to modify a Lisp bignum. Lisp bignums are supposed to be immutable. All callers changed.
* | | Attempt to fix assertion violation in eval.cEli Zaretskii2019-08-181-1/+1
| | | | | | | | | | | | | | | * src/eval.c (Fautoload): Fix an assertion violation in make_fixnum. Reported by martin rudalics <rudalics@gmx.at>.
* | | Make `browse-url-of-buffer' work from zip filesLars Ingebrigtsen2019-08-171-10/+12
| | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-of-buffer): Make `C-c C-v' work in HTML buffers visited from zip files and the like (bug#10318).
* | | Fix org-timer-show-remaining-time > 1 hourPaul Eggert2019-08-171-11/+6
| | | | | | | | | | | | | | | | | | | | | * lisp/org/org-timer.el (org-timer-show-remaining-time): Don’t assume the remaining time is less than one hour. Simplify. The simplification removes the need for a decode-time, and fixes a typo I introduced recently.
* | | Make `describe-function' say that disabled functions are disabledLars Ingebrigtsen2019-08-171-0/+6
| | | | | | | | | | | | | | | | | | * lisp/help-fns.el (help-fns--disabled): New function (bug#10853). (help-fns-describe-function-functions): Add it to the list of function help functions.
* | | Make newline-and-indent take a numeric prefixLars Ingebrigtsen2019-08-172-5/+15
| | | | | | | | | | | | | | | * lisp/simple.el (newline-and-indent): Take a prefix argument to say how many times to perform its action (bug#10927).
* | | Issue a message on `C-x o' and there's no other windowLars Ingebrigtsen2019-08-171-0/+5
| | | | | | | | | | | | | | | * lisp/window.el (other-window): Issue a message when the user types `C-x o' and there's no other window to select (bug#10999).
* | | Issue a message on `C-x 1' when there's nothing to doLars Ingebrigtsen2019-08-171-1/+5
| | | | | | | | | | | | | | | * lisp/window.el (delete-other-windows): Make `C-x 1' issue a message when there's no other windows to delete (bug#10999).
* | | Doc clarification in two comment-* functionsLars Ingebrigtsen2019-08-171-3/+7
| | | | | | | | | | | | | | | * lisp/newcomment.el (comment-padright, comment-padleft): Note that `comment-normalize-vars' must be called first (bug#11944).
* | | Add FIXMEs for subsecond supportPaul Eggert2019-08-179-18/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds FIXMEs to areas where Lisp code should support subsecond information in broken-down timestamps. It also fixes some unnecessary truncation of timestamps, and ports the code to a hypothetical future Emacs version where (decode-time) returns subsecond timestamps by default. * lisp/calc/calc-forms.el (calc-time, math-iso-dt-to-date) (calcFunc-now): * lisp/calendar/icalendar.el (icalendar--add-decoded-times): * lisp/calendar/iso8601.el (iso8601-parse-interval): Truncate seconds to an integer, and add a FIXME about subseconds support. * lisp/calendar/icalendar.el (icalendar--decode-isodatetime) (icalendar--decode-isoduration): Add a FIXME about subseconds support. * lisp/gnus/gnus-delay.el (gnus-delay-article): Don’t truncate seconds to an integer, as there’s no need to do that here. * lisp/gnus/gnus-util.el (gnus-seconds-today) (gnus-seconds-month, gnus-seconds-year): * lisp/gnus/message.el (message-make-expires-date): * lisp/org/org-timer.el (org-timer-show-remaining-time): * lisp/vc/ediff-mult.el (ediff-format-date): Truncate seconds to an integer, as that’s what’s wanted here. * lisp/midnight.el (midnight-next): Ceiling seconds to an integer, as that’s what wanted here.
* | | * lisp/frameset.el (frameset-restore): Make sure last-focus frame has focus.Juri Linkov2019-08-181-0/+10
| | | | | | | | | | | | | | | | | | Call select-frame-set-input-focus to restore focus on the frame that had last-focus-update frame parameter before saving frameset. (Bug#36894)