]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoAdd a selector function as a way to avoid running all the tasks scratch/benchmarks
Gemini Lasswell [Tue, 27 Nov 2018 20:24:21 +0000 (12:24 -0800)]
Add a selector function as a way to avoid running all the tasks

* lisp/emacs-lisp/erb.el (erb-task-select-function): New variable.
(erb--benchmark-one-commit): Use it.

5 years agoFix bugs in output report
Gemini Lasswell [Mon, 26 Nov 2018 19:20:02 +0000 (11:20 -0800)]
Fix bugs in output report

* lisp/emacs-lisp/erb.el (erb-write-result-org-file): Add missing
backslash.  Add name for xtics table.

5 years agoBetter instrumentation for bug#33198
Gemini Lasswell [Mon, 26 Nov 2018 17:38:22 +0000 (09:38 -0800)]
Better instrumentation for bug#33198

5 years agoCreate benchmark directory and add some benchmark tasks
Gemini Lasswell [Fri, 23 Nov 2018 20:36:32 +0000 (12:36 -0800)]
Create benchmark directory and add some benchmark tasks

* benchmark/lisp/cus-theme-tasks.el:
* benchmark/lisp/emacs-lisp/bytecomp-tasks.el:
* benchmark/lisp/kmacro-tasks.el:
* benchmark/lisp/textmodes/fill-tasks.el:
* benchmark/src/cmds-tasks.el:
* benchmark/src/data-tasks.el:
* benchmark/src/emacs-tasks.el:
* benchmark/src/syntax-tasks.el: New files.

5 years agoAdd ERB, a tool for running historical benchmarks
Gemini Lasswell [Fri, 23 Nov 2018 20:35:57 +0000 (12:35 -0800)]
Add ERB, a tool for running historical benchmarks

* lisp/emacs-lisp/erb-task.el: New file.
* lisp/emacs-lisp/erb.el: New file.

5 years agoBug#31671 band-aid
Gemini Lasswell [Wed, 21 Nov 2018 20:20:34 +0000 (12:20 -0800)]
Bug#31671 band-aid

5 years agoInstrument file descriptor mask code (bug#33198)
Gemini Lasswell [Sat, 3 Nov 2018 20:57:55 +0000 (13:57 -0700)]
Instrument file descriptor mask code (bug#33198)

5 years agoAdd per-symbol mutexes
Gemini Lasswell [Mon, 15 Oct 2018 15:28:43 +0000 (08:28 -0700)]
Add per-symbol mutexes

* lisp/thread.el (make-symbol-mutex): New function.
(with-symbol-mutex): New macro.

5 years agoAdd thread-safe messages and thread-safe queues
Gemini Lasswell [Mon, 8 Oct 2018 19:35:00 +0000 (12:35 -0700)]
Add thread-safe messages and thread-safe queues

* lisp/thread.el (thread--message): New cl-defstruct.
(thread-message-value, thread-message-send)
(thread-message-cancel, thread-message-wait): New functions.
(thread--queue): New cl-defstruct.
(thread-queue-empty-p, thread-queue-full-p)
(thread-queue-length, thread-queue-remove-all)
(thread-queue-put, thread-queue-get): New
functions.

5 years agoAdd Isearch commands for going to absolute occurrence of matches (bug#29321)
Juri Linkov [Thu, 22 Nov 2018 22:02:56 +0000 (00:02 +0200)]
Add Isearch commands for going to absolute occurrence of matches (bug#29321)

* lisp/isearch.el (isearch-mode-map): Bind 'M-s M-<' to
'isearch-beginning-of-buffer' and 'isearch-end-of-buffer' to 'M-s M->'.
(isearch-beginning-of-buffer, isearch-end-of-buffer): New commands.

5 years agoemacsclient: coalesce WINDOWSNT-specific code
Paul Eggert [Thu, 22 Nov 2018 17:32:33 +0000 (09:32 -0800)]
emacsclient: coalesce WINDOWSNT-specific code

* lib-src/emacsclient.c (sock_err_message) [WINDOWSNT]:
Do nothing if w32_window_app () && alternate_editor.
Both callers changed.

5 years agoemacsclient: sockaddr portability fixes
Paul Eggert [Thu, 22 Nov 2018 17:21:22 +0000 (09:21 -0800)]
emacsclient: sockaddr portability fixes

* lib-src/emacsclient.c (get_server_config, set_tcp_socket)
(set_local_socket): Initialize any platform-specific extensions
of struct to zero, just in case.
(set_tcp_socket, set_local_socket): Don’t assume struct
layout details that POSIX does not specify.
Use union to sidestep some problems with strict aliasing.
Remove unnecessary casts.

5 years agoSome minor Tramp cleanups
Michael Albinus [Thu, 22 Nov 2018 15:29:25 +0000 (16:29 +0100)]
Some minor Tramp cleanups

* lisp/net/tramp-adb.el (tramp-adb-file-name-p):
* lisp/net/tramp-ftp.el (tramp-ftp-file-name-p):
* lisp/net/tramp-smb.el (tramp-smb-file-name-p): Make it more robust.

* lisp/net/tramp.el (tramp-handle-file-truename): Cache only the
localname.

5 years agoemacsclient: getopt minor cleanup
Paul Eggert [Thu, 22 Nov 2018 02:37:44 +0000 (18:37 -0800)]
emacsclient: getopt minor cleanup

* lib-src/emacsclient.c (shortopts): New constant.
(decode_options): Use it.  Do not assume EOF == -1.

5 years agoemacsclient: omit EXTRA_SPACE guesswork
Paul Eggert [Wed, 21 Nov 2018 22:47:53 +0000 (14:47 -0800)]
emacsclient: omit EXTRA_SPACE guesswork

* lib-src/emacsclient.c: Include <intprops.h>.
(EXTRA_SPACE): Remove; code no longer guesses this is enough.
(open_config): New function.
(get_server_config): Use it.
(set_local_socket): Compute upper bound of buffer size
instead of guessing via EXTRA_SPACE.

5 years agoAdd prefix arg to isearch-forward-symbol-at-point (bug#29321)
Juri Linkov [Wed, 21 Nov 2018 21:33:22 +0000 (23:33 +0200)]
Add prefix arg to isearch-forward-symbol-at-point (bug#29321)

* lisp/isearch.el (isearch-forward-symbol-at-point): Add optional arg.

5 years agoemacsclient: take more care with int width
Paul Eggert [Wed, 21 Nov 2018 19:35:44 +0000 (11:35 -0800)]
emacsclient: take more care with int width

* lib-src/emacsclient.c: Include inttypes.h, stddef.h.
(emacs_pid, main): Don’t assume pid fits in int.
(fail): Don’t assume pointer difference fits in int.
(set_local_socket): Don’t assume uid fits in long.

5 years agoemacsclient.c: use C99 to avoid {}
Paul Eggert [Wed, 21 Nov 2018 19:08:29 +0000 (11:08 -0800)]
emacsclient.c: use C99 to avoid {}

* lib-src/emacsclient.c (set_local_socket):
Assume C99 decl-after-statement and reindent.

5 years agoemacsclient: improve use of locals
Paul Eggert [Wed, 21 Nov 2018 18:52:29 +0000 (10:52 -0800)]
emacsclient: improve use of locals

* lib-src/emacsclient.c (main):
Use smaller scopes for some locals.

5 years agoemacsclient: fix unlikely crash with "&"
Paul Eggert [Wed, 21 Nov 2018 18:50:38 +0000 (10:50 -0800)]
emacsclient: fix unlikely crash with "&"

* lib-src/emacsclient.c (quote_argument):
Mention *DATA in comment so it’s clear DATA must be non-null.
(quote_argument, unquote_argument): Simplify.
(unquote_argument): Don’t crash if the string ends in "&".

5 years agoFix "Allow use of Gnus search groups as notmuch path: search term"
Eric Abrahamsen [Mon, 19 Nov 2018 18:03:16 +0000 (10:03 -0800)]
Fix "Allow use of Gnus search groups as notmuch path: search term"

* lisp/gnus/nnir.el (nnir-notmuch-filter-group-names-function):
  Default to nil -- getting correct behavior requires user
  intervention too often to have this enabled by default.
* lisp/gnus/nnir.el (nnir-run-notmuch): If the user has turned this
  on, then also hardcode `gnus-group-short-name' as a filter -- things
  will never work without it. Also move leading space to before the
  opening parenthesis.
* doc/misc/gnus.texi: Document option.

(Bug#33122)

5 years agoCheck Gnus group names when reading from browse server
Eric Abrahamsen [Tue, 20 Nov 2018 18:28:10 +0000 (10:28 -0800)]
Check Gnus group names when reading from browse server

* lisp/gnus/gnus-srvr.el (gnus-browse-read-group): If the group in
  question belongs to the native server, the name has to be shortened
  before we check it with `gnus-get-info'. It might work otherwise
  with nntp, but for backends like nnmaildir that have their own
  accounting system, creating an ephemeral group won't work.

5 years ago* doc/misc/tramp.texi: Fix last commit.
Michael Albinus [Wed, 21 Nov 2018 15:53:09 +0000 (16:53 +0100)]
* doc/misc/tramp.texi: Fix last commit.

5 years agoLet Tramp sudo sessions expire after a timeout
Michael Albinus [Wed, 21 Nov 2018 12:23:01 +0000 (13:23 +0100)]
Let Tramp sudo sessions expire after a timeout

* doc/misc/tramp.texi (Inline methods) <sudo, doas>: Both methods expire
the underlying session per default.
(Predefined connection information): Explain "session-timeout".

* etc/NEWS: Mention Tramp session expiration.

* lisp/net/tramp-sh.el (tramp-methods) <sudo, doas>:
Add `tramp-session-timeout'.
(tramp-timeout-session): New defun.
(tramp-maybe-open-connection): Handle session timeout.

* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-equal-remote): Extend.

5 years agoAdd prefix arg to isearch-repeat-forward/backward (bug#14563, bug#29321)
Juri Linkov [Tue, 20 Nov 2018 23:43:21 +0000 (01:43 +0200)]
Add prefix arg to isearch-repeat-forward/backward (bug#14563, bug#29321)

* lisp/isearch.el (isearch-repeat): Add optional arg COUNT.
Add a while-loop that calls `isearch-search' COUNT times.
(isearch-repeat-forward, isearch-repeat-backward):
Add optional prefix ARG passed down to `isearch-repeat'.
Handle reversed directions.

5 years agocalc.el, calc-(ext|poly), calccomp: Use lexical-binding
Stefan Monnier [Tue, 20 Nov 2018 21:09:35 +0000 (16:09 -0500)]
calc.el, calc-(ext|poly), calccomp: Use lexical-binding

* lisp/calc/calc-ext.el: Use lexical-binding, silence warnings.
(calc-init-extensions): Remove a few functions which can't be called
directly since they depend on dynamically scoped vars.
(calc-embedded-quiet): Declare.
(math-defcache): Use 'declare'.
(math-normalize-a): Remove declaration.
(math-normalize-nonstandard): Receive 'a' as arg instead.
(math-defintegral): Use 'declare'.
(math-exp-pos, math-exp-old-pos, math-exp-keep-spaces, math-rb-h2)
(math-read-big-baseline, math-read-big-h2, math-read-big-err-msg)
(math-exp-token, math-expr-data, math-exp-str): Declare.
(math-map-tree, math-read-expr): Avoid dynvars as formal arguments.

* lisp/calc/calc-poly.el: Use lexical-binding, silence warnings.
Turn some comments into docstrings.
(math-poly-div): Avoid dynvars as formal arguments.
(math-poly-base-top-expr): Move declaration before first use.
(calcFunc-factors, math-factor-expr, math-factor-expr-try)
(calcFunc-factor): Avoid dynvars as formal arguments.

* lisp/calc/calc.el: Use lexical-binding, silence warnings.
(math-normalize-a): Remove.
(math-normalize): Use lexical var 'a' instead.
(math-svo-c): Remove.
(math-stack-value-offset): Pass 'c' explicitly as arg to
math-stack-value-offset-fancy instead.

* lisp/calc/calccomp.el: Use lexical-binding, silence warnings.
(math-svo-c): Remove.
(math-stack-value-offset-fancy): Use new arg 'c' instead.
(math-comp-to-string-flat): Avoid dynvars as formal arguments.

5 years agoMerge from origin/emacs-26
Glenn Morris [Tue, 20 Nov 2018 17:38:43 +0000 (09:38 -0800)]
Merge from origin/emacs-26

d667318 (origin/emacs-26) Fix two Edebug defcustoms (bug#33428)

5 years ago; Merge from origin/emacs-26
Glenn Morris [Tue, 20 Nov 2018 17:38:43 +0000 (09:38 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

b8b42c2 Fix Bug#33141

5 years agoMerge from origin/emacs-26
Glenn Morris [Tue, 20 Nov 2018 17:38:42 +0000 (09:38 -0800)]
Merge from origin/emacs-26

070e82b ; * src/window.c (window_scroll): Improve commentary.
60457d7 Improve documentation of the window tree
ea1a014 Fix window scrolling on TTY frames when there's no mode line
df7ed10 Fix decoding XML files encoded in ISO-8859
7851ae8 (tag: emacs-26.1.90) ; ChangeLog.3 update
1958808 * etc/AUTHORS: Update.
7252507 Fix description of some window hooks
88762b4 Run 'window--adjust-process-windows' when frame size changes ...
d6542ea Avoid errors in zone.el when there's overlay at EOB

5 years ago* lisp/calc/calc-alg.el: Use lexical-binding and silence warnings
Stefan Monnier [Tue, 20 Nov 2018 15:37:46 +0000 (10:37 -0500)]
* lisp/calc/calc-alg.el: Use lexical-binding and silence warnings

* lisp/calc/calc-alg.el: Use lexical-binding and silence warnings.
(math-defsimplify): Let-bind 'expr' instead of math-simplify-expr.
Adjust all users.
(math-simplify-expr): Don't declare any more.
(math--simplify-divide-expr): New dynbound var.
(math-simplify-divide): Bind it when needed.
(math-simplify-divisor): Use it instead of math-simplify-expr.
(math-simplify-divisor): Only bind math-simplify-divisor-[nd]over
around the calls to math-simplify-one-divisor.
(math-expr-subst, math-is-polynomial): Don't use dynbound vars as
formal arguments.
(math-polynomial-base): Move binding of math-poly-base-pred.
Don't bind math-poly-base-top-expr any more...
* lisp/calc/calc-poly.el (math-total-polynomial-base): Bind it here instead!

* lisp/calc/calc-units.el: Use lexical-binding and silence warnings.
Adjust to the new 'expr' name in math-defsimplify.
(math-find-base-units, math-to-standard-units, math-convert-units):
Don't use dynbound vars as formal arguments.
(math-simplify-expr): Don't declare any more.

5 years agoRemove space from end of coding cookie
Robert Pluim [Tue, 20 Nov 2018 09:48:16 +0000 (10:48 +0100)]
Remove space from end of coding cookie

* lisp/bookmark.el (bookmark-insert-file-format-version-stamp):
Remove unnecessary space from end of coding cookie.

5 years agoFix two Edebug defcustoms (bug#33428)
Stephen Berman [Mon, 19 Nov 2018 22:12:52 +0000 (23:12 +0100)]
Fix two Edebug defcustoms (bug#33428)

* lisp/emacs-lisp/edebug.el (edebug-print-length)
(edebug-print-level): Fix customization type to allow setting
the documented valid value nil via the Customize interface.

5 years agoFix Bug#33141
Michael Albinus [Wed, 24 Oct 2018 18:56:40 +0000 (20:56 +0200)]
Fix Bug#33141

* lisp/net/tramp.el (tramp-make-tramp-file-name): Avoid check for
empty method with simplified `tramp-syntax'.  (Bug#33141)

5 years agoFix last change
Eli Zaretskii [Mon, 19 Nov 2018 19:51:51 +0000 (21:51 +0200)]
Fix last change

* lib-src/emacsclient.c (start_daemon_and_retry_set_socket)
[!WINDOWSNT]: Condition usage of socket_name on
NO_SOCKETS_IN_FILE_SYSTEM being undefined.

5 years agoAvoid compiler warning in emacsclient.c
Eli Zaretskii [Mon, 19 Nov 2018 19:47:40 +0000 (21:47 +0200)]
Avoid compiler warning in emacsclient.c

* lib-src/emacsclient.c (socket_name): Define only if
NO_SOCKETS_IN_FILE_SYSTEM is not defined, to avoid a compiler
warning.

5 years agoemacsclient.c: file name component fixes
Paul Eggert [Mon, 19 Nov 2018 19:36:50 +0000 (11:36 -0800)]
emacsclient.c: file name component fixes

* lib-src/emacsclient.c: Include <dosname.h>.
(file_name_absolute_p): Remove, as a code duplicate.
All uses replaced by IS_ABSOLUTE_FILE_NAME.
(set_local_socket): Don’t treat \ as a file name separator
on GNU and POSIX hosts.

5 years agoemacsclient.c: reindent to fit in 80
Paul Eggert [Mon, 19 Nov 2018 19:24:19 +0000 (11:24 -0800)]
emacsclient.c: reindent to fit in 80

* lib-src/emacsclient.c: Reindent slightly.

5 years agoemacsclient.c: use C99 better
Paul Eggert [Mon, 19 Nov 2018 19:07:08 +0000 (11:07 -0800)]
emacsclient.c: use C99 better

* lib-src/emacsclient.c (get_current_dir_name)
(send_to_emacs, set_tcp_socket, set_local_socket, main):
Take advantage of C99 stmt before decl.

5 years agoemacsclient.c: use STDOUT_FILENO
Paul Eggert [Mon, 19 Nov 2018 18:05:11 +0000 (10:05 -0800)]
emacsclient.c: use STDOUT_FILENO

* lib-src/emacsclient.c (find_tty, handle_sigcont, main):
Use STDOUT_FILENO instead of fileno (stdout) or magic 1.

5 years agoemacsclient.c: use bool for boolean
Paul Eggert [Mon, 19 Nov 2018 17:51:57 +0000 (09:51 -0800)]
emacsclient.c: use bool for boolean

* lib-src/emacsclient.c (nowait, quiet, suppress_output, eval, tty)
(decode_options, file_name_absolute_p, get_server_config)
(strprefix, find_tty, set_socket, main):
Use bool for boolean.
(create_frame): New static var, replacing the old current_frame
and with inverted sense, as this is clearer.

5 years agoemacsclient.c: make identifiers more local
Paul Eggert [Mon, 19 Nov 2018 16:47:11 +0000 (08:47 -0800)]
emacsclient.c: make identifiers more local

* lib-src/emacsclient.c (progname, main_argc, main_argv):
(nowait, quiet, suppress_output, eval, current_frame, display):
(alt_display, parent_id, tty, alternate_editor, socket_name):
(server_file, tramp_prefix, emacs_pid, frame_parameters):
(longopts, xstrdup, send_bufffer, sblen, emacs_socket):
Now static.
(SEND_BUFFER_SIZE, send_buffer, sblen):
Now local to send_to_emacs.

5 years agoemacsclient.c: clean up preprocessing directives
Paul Eggert [Mon, 19 Nov 2018 16:32:26 +0000 (08:32 -0800)]
emacsclient.c: clean up preprocessing directives

* lib-src/emacsclient.c [WINDOWSNT]: Omit duplicate stdlib.h include.
Include min-max.h.
(EXIT_SUCCESS, EXIT_FAILURE, min): Remove; no longer needed.
(AUTH_KEY_LENGTH, SEND_BUFFER_SIZE): Now constants instead of macros.

5 years ago; * src/window.c (window_scroll): Improve commentary.
Eli Zaretskii [Mon, 19 Nov 2018 18:35:28 +0000 (20:35 +0200)]
; * src/window.c (window_scroll): Improve commentary.

5 years agoImprove documentation of the window tree
Eli Zaretskii [Mon, 19 Nov 2018 18:31:49 +0000 (20:31 +0200)]
Improve documentation of the window tree

* doc/lispref/windows.texi (Windows and Frames): More accurate
wording regarding the relation of a mini-window to its frame's
window tree.

* src/window.h (struct window): Improve commentary to some
fields.

5 years agoFix window scrolling on TTY frames when there's no mode line
Eli Zaretskii [Mon, 19 Nov 2018 18:12:04 +0000 (20:12 +0200)]
Fix window scrolling on TTY frames when there's no mode line

* src/window.c (window_internal_height): Remove tests for
next, prev, and parent pointers, as they are unrelated to
whether a window has a mode line.  (Bug#33363)

5 years agoFix decoding XML files encoded in ISO-8859
Eli Zaretskii [Mon, 19 Nov 2018 16:36:42 +0000 (18:36 +0200)]
Fix decoding XML files encoded in ISO-8859

* lisp/international/mule.el (sgml-xml-auto-coding-function):
Avoid signaling an error from coding-system-equal when the XML
encoding tag specifies an encoding whose type is 'charset'.
(Bug#33429)

5 years agoUpdate the calc units table
Ulrich Müller [Mon, 19 Nov 2018 15:29:56 +0000 (07:29 -0800)]
Update the calc units table

On 2018-11-16, the 26th meeting of the General Conference on Weights
and Measures (CGPM) has redefined the International System of Units by
adopting fixed values for the Planck constant, the elementary charge,
the Boltzmann constant, and the Avogadro constant:
https://www.bipm.org/utils/en/pdf/CGPM/Draft-Resolution-A-EN.pdf
* lisp/calc/calc-units.el (math-standard-units): Update according
to redefinition of the SI in 2018.

5 years ago; ChangeLog.3 update emacs-26.1.90
Nicolas Petton [Mon, 19 Nov 2018 15:22:16 +0000 (16:22 +0100)]
; ChangeLog.3 update

5 years ago* etc/AUTHORS: Update.
Nicolas Petton [Mon, 19 Nov 2018 15:21:41 +0000 (16:21 +0100)]
* etc/AUTHORS: Update.

5 years ago* mouse.el (mouse-posn-property): Add comment
Stefan Monnier [Mon, 19 Nov 2018 14:12:15 +0000 (09:12 -0500)]
* mouse.el (mouse-posn-property): Add comment

5 years agoRemove uses of obsolete 'CUA' symbol property
Stefan Monnier [Mon, 19 Nov 2018 02:15:06 +0000 (21:15 -0500)]
Remove uses of obsolete 'CUA' symbol property

* lisp/emulation/cua-base.el (cua-scroll-up, cua-scroll-down):
* lisp/progmodes/subword.el (subword-forward, subword-backward):
* lisp/obsolete/crisp.el (crisp-home, crisp-end):
Remove 'CUA' prop; not used any more.

5 years agoFix description of some window hooks
Martin Rudalics [Sun, 18 Nov 2018 08:24:10 +0000 (09:24 +0100)]
Fix description of some window hooks

* doc/lispref/windows.texi (Window Hooks): Remove text that
warns against using 'save-window-excursion' while running
'window-size-change-functions', it's no more relevant.
Clarify description of 'window-configuration-change-hook'.

5 years agoRun 'window--adjust-process-windows' when frame size changes (Bug#32720)
Gary Fredericks [Sun, 18 Nov 2018 08:15:00 +0000 (09:15 +0100)]
Run 'window--adjust-process-windows' when frame size changes (Bug#32720)

* lisp/window.el (window-size-change-functions): Run
'window--adjust-process-windows' from
'window-size-change-functions' too (Bug#32720, "another issue"
in Bug#33230).

Copyright-paperwork-exempt: yes

5 years ago* lisp/vc/diff-mode.el (diff-find-source-location): Use vc-working-revision
Juri Linkov [Sat, 17 Nov 2018 21:52:05 +0000 (23:52 +0200)]
* lisp/vc/diff-mode.el (diff-find-source-location): Use vc-working-revision

when diff shows changes in working revision.  (Bug#33319)
(diff-goto-source): Rename variables to avoid ambiguity.

5 years agoDon't exit Isearch while resizing windows with mouse (bug#32990)
Juri Linkov [Sat, 17 Nov 2018 21:31:52 +0000 (23:31 +0200)]
Don't exit Isearch while resizing windows with mouse (bug#32990)

* lisp/isearch.el (isearch-mouse-leave-buffer): New function.
(isearch-mode): Use isearch-mouse-leave-buffer instead of
isearch-done for mouse-leave-buffer-hook.
(isearch-done): Remove isearch-mouse-leave-buffer from
mouse-leave-buffer-hook.
(enlarge-window-horizontally, shrink-window-horizontally)
(shrink-window, mouse-drag-mode-line, mouse-drag-vertical-line):
Put property isearch-scroll with t.
(isearch-mode): Reset isearch-pre-scroll-point and
isearch-pre-move-point to nil for the case when Isearch exits
between isearch-pre-command-hook (that sets these values) and
isearch-post-command-hook (that used to reset them).

5 years ago* src/cmds.c (Fself_insert_command): Get last-command-event via (new) arg.
Stefan Monnier [Sat, 17 Nov 2018 15:47:48 +0000 (10:47 -0500)]
* src/cmds.c (Fself_insert_command): Get last-command-event via (new) arg.

5 years agoAvoid errors in zone.el when there's overlay at EOB
Eli Zaretskii [Fri, 16 Nov 2018 19:52:34 +0000 (21:52 +0200)]
Avoid errors in zone.el when there's overlay at EOB

* lisp/play/zone.el (zone): Make sure the window-end position
is calculated accurately, to avoid errors from
buffer-substring.  (Bug#33384)

5 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 16 Nov 2018 16:30:20 +0000 (08:30 -0800)]
Merge from origin/emacs-26

936a8f3 (origin/emacs-26) Document Emacs 26 behavior of Dired's 'Z' o...
99f99a1 ; Minor editing change in windows.texi
13bb665 Fix a typo in the Emacs manual

# Conflicts:
# etc/NEWS

5 years ago; Merge from origin/emacs-26
Glenn Morris [Fri, 16 Nov 2018 16:30:19 +0000 (08:30 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

a306d03 Fix tempfile creation when byte compiling

5 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 16 Nov 2018 16:30:19 +0000 (08:30 -0800)]
Merge from origin/emacs-26

edcd6b7 Small documentation correction.
168a8c2 * src/coding.c (Fcheck_coding_systems_region): Doc fix.  (Bug...
3287a7c Fix Bug#33364
acee0a8 ; Cosmetic changes in etc/NEWS
a6ef167 * test/README: Explain $REMOTE_TEMPORARY_FILE_DIRECTORY.

# Conflicts:
# etc/NEWS

5 years ago; Merge from origin/emacs-26
Glenn Morris [Fri, 16 Nov 2018 16:30:19 +0000 (08:30 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

b8bbbe5 Avoid kill-emacs-hook errors hanging batch mode

5 years agoUpdate from glibc and Gnulib
Paul Eggert [Fri, 16 Nov 2018 16:24:54 +0000 (08:24 -0800)]
Update from glibc and Gnulib

This incorporates:
2018-11-15 mktime: DEBUG_MKTIME cleanup
2018-11-15 mktime: fix non-EOVERFLOW errno handling
2018-11-15 mktime: fix bug with Y2038 DST transition
2018-11-15 mktime: make more room for overflow
2018-11-15 mktime: simplify offset guess
2018-11-15 mktime: new test for mktime failure
2018-11-15 mktime: fix EOVERFLOW bug
2018-11-13 longlong: fix comment typo
* lib/gnulib.mk.in: Regenerate.
* lib/mktime.c, m4/longlong.m4: Copy from Gnulib.

5 years ago; Further cosmetic changes in etc/NEWS
Michael Albinus [Fri, 16 Nov 2018 12:47:51 +0000 (13:47 +0100)]
; Further cosmetic changes in etc/NEWS

5 years agoMention ELPA packages which add new methods to Tramp
Michael Albinus [Fri, 16 Nov 2018 12:05:49 +0000 (13:05 +0100)]
Mention ELPA packages which add new methods to Tramp

* doc/misc/tramp.texi (Customizing Methods): Mention ELPA packages
which add new methods to Tramp.

5 years agoDocument Emacs 26 behavior of Dired's 'Z' on directories
Eli Zaretskii [Fri, 16 Nov 2018 08:19:22 +0000 (10:19 +0200)]
Document Emacs 26 behavior of Dired's 'Z' on directories

* doc/emacs/dired.texi (Operating on Files): Document behavior
of 'Z' on directories.

* etc/NEWS: Belatedly announce the new behavior of Dired's 'Z'
on directory names and on .tar.gz archives.

5 years ago; Minor editing change in windows.texi
Eli Zaretskii [Fri, 16 Nov 2018 07:54:56 +0000 (09:54 +0200)]
; Minor editing change in windows.texi

* doc/emacs/windows.texi (Window Convenience): Avoid breaking
line in the middle of a key sequence.

5 years ago* lisp/windmove.el: Directional window display (bug#32790)
Juri Linkov [Thu, 15 Nov 2018 23:40:15 +0000 (01:40 +0200)]
* lisp/windmove.el: Directional window display (bug#32790)

* lisp/windmove.el (windmove-display-no-select): New defcustom.
(windmove-display-in-direction, windmove-display-left)
(windmove-display-up, windmove-display-right)
(windmove-display-down, windmove-display-same-window)
(windmove-display-default-keybindings): New functions.

5 years ago* lisp/windmove.el: Support more prefix args (bug#32790)
Juri Linkov [Thu, 15 Nov 2018 23:09:54 +0000 (01:09 +0200)]
* lisp/windmove.el: Support more prefix args (bug#32790)

* lisp/windmove.el (windmove-left, windmove-up, windmove-right)
(windmove-down): Use prefix-numeric-value to support more prefix args
like 'C-u' and 'M--'.  Doc fix.

5 years agoFix a typo in the Emacs manual
Eli Zaretskii [Thu, 15 Nov 2018 19:59:32 +0000 (21:59 +0200)]
Fix a typo in the Emacs manual

* doc/emacs/rmail.texi (Rmail Deletion): Fix a typo.
Reported by Jorge P. de Morais Neto <jorge+list@disroot.org>
in emacs-manual-bugs@gnu.org

5 years agoFix tempfile creation when byte compiling
Paul Eggert [Sun, 21 Jan 2018 03:12:05 +0000 (19:12 -0800)]
Fix tempfile creation when byte compiling

This improves on the recent fix for master failing to build
on FreeBSD.  Suggested by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2018-01/msg00600.html
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
Put tempfile next to the target file, as was the original intent.

(cherry picked from commit 64c846738617d1d037eac0cefb6586c04317b0a1)

5 years agoFix Bug#33394
Michael Albinus [Thu, 15 Nov 2018 12:55:23 +0000 (13:55 +0100)]
Fix Bug#33394

* lisp/net/trampver.el (tramp-repository-branch)
(tramp-repository-version): Handle out-of-tree builds.  (Bug#33394)

5 years agoIsearch hit count. (Bug#29321)
Juri Linkov [Wed, 14 Nov 2018 22:23:47 +0000 (00:23 +0200)]
Isearch hit count.  (Bug#29321)

* lisp/isearch.el (isearch-lazy-count): New defcustom.
(lazy-count): New defgroup.
(lazy-count-prefix-format, lazy-count-suffix-format): New defcustom.
(isearch-lazy-count-format): New function.
(isearch-message-prefix, isearch-message-suffix): Use it.
(isearch-lazy-highlight-window-start-changed)
(isearch-lazy-highlight-window-end-changed)
(isearch-lazy-count-current, isearch-lazy-count-total)
(isearch-lazy-count-hash): New variables.
(isearch-lazy-highlight-new-loop): Reset isearch-lazy-count-total
and update isearch-lazy-count-current for isearch-message.
(isearch-lazy-highlight-update): Run full-buffer loop for
isearch-lazy-count.
(isearch-lazy-highlight-buffer-update): Count isearch-lazy-count-total.
Set isearch-lazy-count-current at the end.

5 years agoMinor copyedits in documentation of HOME handling
Eli Zaretskii [Wed, 14 Nov 2018 19:45:41 +0000 (21:45 +0200)]
Minor copyedits in documentation of HOME handling

* etc/NEWS: Reword the recent entry regarding the change in
how relative file names are interpreted in $HOME.

* doc/emacs/cmdargs.texi (General Variables): Advise against
using relative directory names in $HOME.

5 years agoFix probing for pre-1970 DST
Paul Eggert [Wed, 14 Nov 2018 19:42:59 +0000 (11:42 -0800)]
Fix probing for pre-1970 DST

* lisp/calendar/cal-dst.el (calendar-next-time-zone-transition):
Fix recently-introduced rounding bug when probing for DST
transitions before 1970 (Bug#33380).

5 years agoDocument recent change to HOME handling
Paul Eggert [Wed, 14 Nov 2018 17:31:28 +0000 (09:31 -0800)]
Document recent change to HOME handling

* doc/emacs/cmdargs.texi (General Variables):
* doc/emacs/custom.texi (Find Init):
* doc/lispref/files.texi (File Name Expansion):
* etc/NEWS: Document behavior when HOME is a relative file name.

5 years agoSmall documentation correction.
Markus Triska [Tue, 13 Nov 2018 21:42:01 +0000 (22:42 +0100)]
Small documentation correction.

* doc/lispref/windows.texi (Textual Scrolling): In the description of
scroll-up-aggressively, refer to scroll-down-aggressively instead of
a recursive reference to scroll-up-aggressively.  (Bug#33369)

5 years ago* src/coding.c (Fcheck_coding_systems_region): Doc fix. (Bug#33372)
Eli Zaretskii [Wed, 14 Nov 2018 15:59:05 +0000 (17:59 +0200)]
* src/coding.c (Fcheck_coding_systems_region): Doc fix.  (Bug#33372)

5 years agoFix a thinko in fileio.c
Eli Zaretskii [Wed, 14 Nov 2018 15:28:13 +0000 (17:28 +0200)]
Fix a thinko in fileio.c

* src/fileio.c (get_homedir): Fix last change.  Suggested by
Paul Eggert <eggert@cs.ucla.edu>.

5 years agoFix Bug#33364
Michael Albinus [Wed, 14 Nov 2018 15:19:39 +0000 (16:19 +0100)]
Fix Bug#33364

* lisp/net/tramp.el (tramp-parse-sconfig-group): Support also
"Host host1 host2 ..." syntax.  (Bug#33364)

5 years agoNew option vc-find-revision-no-save to not write revision to file
Juri Linkov [Wed, 14 Nov 2018 00:23:04 +0000 (02:23 +0200)]
New option vc-find-revision-no-save to not write revision to file

* lisp/vc/vc.el (vc-find-revision-no-save): New defcustom (bug#33319).
(vc-find-revision): Depending on vc-find-revision-no-save,
call either vc-find-revision-no-save or vc-find-revision-save.
(vc-find-revision-save): Rename from vc-find-revision.
(vc-find-revision-no-save): New function.

* lisp/vc/diff-mode.el (diff-find-source-location):
Let-bind vc-find-revision-no-save to t.

5 years agoSupport VC revisions in diff-goto-source (bug#33319)
Juri Linkov [Wed, 14 Nov 2018 00:14:52 +0000 (02:14 +0200)]
Support VC revisions in diff-goto-source (bug#33319)

* lisp/vc/diff-mode.el (diff-vc-revisions): New defvar.
(diff-find-source-location): Call vc-find-revision for
non-nil values of 'other', diff-vc-backend, diff-vc-revisions.

* lisp/vc/vc.el (vc-diff-internal): Set buffer-local
diff-vc-revisions to the list of used revisions.

* doc/emacs/files.texi (Diff Mode): Update diff-goto-source
for VC-related prefix argument.

5 years agoFix recent change in fileio.c
Eli Zaretskii [Tue, 13 Nov 2018 20:01:57 +0000 (22:01 +0200)]
Fix recent change in fileio.c

* src/fileio.c (get_homedir) [WINDOWSNT]: Convert $HOME to UTF-8.
(Fexpand_file_name): Don't convert it here.

5 years agoNo need to pass absolute program name to call-process
Glenn Morris [Tue, 13 Nov 2018 19:47:35 +0000 (14:47 -0500)]
No need to pass absolute program name to call-process

* lisp/doc-view.el (doc-view-revert-buffer):
* lisp/net/eudcb-mab.el (eudc-mab-query-internal):
Remove superfluous executable-find.

5 years agoUpdate from Gnulib
Paul Eggert [Tue, 13 Nov 2018 18:56:26 +0000 (10:56 -0800)]
Update from Gnulib

This incorporates:
2018-11-03 nstrftime: simplify test for mktime failure
2018-11-02 gnulib-common.m4: port _Noreturn to C++
2018-10-22 std-gnu11: Support Autoconf versions < 2.64
2018-10-22 Assume Autoconf >= 2.63
2018-10-16 Remove support for Ultrix
2018-10-16 getloadavg: Remove support for ConvexOS
2018-10-16 getloadavg: Remove support for Sony NEWS
2018-10-16 Remove support for Dynix/ptx
2018-10-16 fsusage: Remove support for AIX 3
2018-10-16 fsusage, stat-size, getloadavg: Remove support for AIX PS/2
2018-10-16 getloadavg: Remove support for HP-UX on m68k
2018-10-16 fsusage, mountlist: Remove support for DolphinOS
2018-10-16 getloadavg: Remove support for Alliant FX/2800
2018-10-16 getloadavg: Remove support for tek4300
2018-10-16 getloadavg: Remove support for Ardent
* build-aux/config.guess, build-aux/config.sub, lib/_Noreturn.h:
* lib/fsusage.c, lib/getgroups.c, lib/getloadavg.c:
* lib/nstrftime.c, lib/time.in.h, m4/errno_h.m4:
* m4/fsusage.m4, m4/getgroups.m4, m4/gnulib-common.m4, m4/longlong.m4:
* m4/std-gnu11.m4, m4/stdint.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate:

5 years agoRoot emacsclient no longer connects to non-root sockets
Glenn Morris [Tue, 13 Nov 2018 18:15:39 +0000 (13:15 -0500)]
Root emacsclient no longer connects to non-root sockets

* lib-src/emacsclient.c (set_local_socket): Don't ignore socket
ownership when run by root.
Ref: http://lists.gnu.org/r/emacs-devel/2018-11/msg00019.html

5 years agoAvoid byte-compilation warning in emacsbug.el
Eli Zaretskii [Tue, 13 Nov 2018 17:46:08 +0000 (19:46 +0200)]
Avoid byte-compilation warning in emacsbug.el

* lisp/mail/emacsbug.el (w32--os-description): Declare it, to
avoid byte-compilation warning.  Reported by Live System User
<nyc4bos@aol.com>.

5 years agoAct like POSIX sh if $HOME is relative
Paul Eggert [Tue, 13 Nov 2018 17:29:14 +0000 (09:29 -0800)]
Act like POSIX sh if $HOME is relative

POSIX says sh ~/foo should act like $HOME/foo even if $HOME is
relative, so be consistent with that (Bug#33255).
* admin/merge-gnulib (GNULIB_MODULES): Add dosname.
* src/buffer.c (init_buffer): Use emacs_wd to get
initial working directory with slash appended if needed.
(default-directory): Say it must be absolute.
* src/emacs.c (emacs_wd): New global variable.
(init_cmdargs): Dir arg is now char const *.
(main): Set emacs_wd.
* src/emacs.c (main) [NS_IMPL_COCOA]:
* src/fileio.c (Fexpand_file_name):
Use get_homedir instead of egetenv ("HOME").
* src/fileio.c: Include dosname.h, for IS_ABSOLUTE_FILE_NAME.
(splice_dir_file, get_homedir): New functions.
* src/xrdb.c (gethomedir): Remove.  All callers changed
to use get_homedir and splice_dir_file.
* test/src/fileio-tests.el (fileio-tests--relative-HOME): New test.

5 years ago* lisp/files.el: Justify binding of read-circle with comments
Stefan Monnier [Tue, 13 Nov 2018 14:03:12 +0000 (09:03 -0500)]
* lisp/files.el: Justify binding of read-circle with comments

5 years agoFix build fail on files.el change (Bug#32352)
Noam Postavsky [Tue, 13 Nov 2018 13:25:35 +0000 (08:25 -0500)]
Fix build fail on files.el change (Bug#32352)

* lisp/files.el (dir-locals-read-from-dir): Reduce scope of
`read-circle' let-binding to go around the `read' call only.
Otherwise it can interfere with loading of files which use the
circular read syntax (e.g., executing the setf expression in
`dir-locals-set-class-variables' may require loading gv.elc).

5 years ago; Cosmetic changes in etc/NEWS
Michael Albinus [Tue, 13 Nov 2018 10:04:20 +0000 (11:04 +0100)]
; Cosmetic changes in etc/NEWS

5 years ago; Cosmetic changes in etc/NEWS
Michael Albinus [Tue, 13 Nov 2018 08:45:42 +0000 (09:45 +0100)]
; Cosmetic changes in etc/NEWS

5 years ago* test/README: Explain $REMOTE_TEMPORARY_FILE_DIRECTORY.
Michael Albinus [Tue, 13 Nov 2018 08:44:06 +0000 (09:44 +0100)]
* test/README: Explain $REMOTE_TEMPORARY_FILE_DIRECTORY.

5 years agoAvoid kill-emacs-hook errors hanging batch mode
Glenn Morris [Wed, 24 Jan 2018 01:55:09 +0000 (20:55 -0500)]
Avoid kill-emacs-hook errors hanging batch mode

* src/emacs.c (Fkill_emacs): Prevent errors from kill-emacs-hook
hanging Emacs in batch mode.  (Bug#29955)

(cherry picked from commit 109da684c5124e22505917fe0255ca66f2a6bfc9)

5 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

e3b3683 (origin/emacs-26) Bump Emacs version to 26.1.90

5 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
Merge from origin/emacs-26

189c49e * etc/AUTHORS: Update.
9723c21 ; ChangeLog.3 update

5 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

1d79c2e Work around dumping bug on GNU/Linux ppc64le

5 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
Merge from origin/emacs-26

913c001 * lisp/files.el (write-file): Clarify the doc string.  (Bug#3...
d614b84 Fix typos in midnight.el
8c2778a Improve documentation of 'move-file-to-trash'
c7b8a51 ; * doc/lispref/functions.texi (Anonymous Functions): Fix typo.
92296de * src/data.c (Ftype_of): xwidget objects are possible! (bug#3...
a3242cc Improve documentation of Diff mode
39e85a0 Note that lex bound lambda forms are not self-quoting (Bug#33...
fa605f2 Rewrite buffer display related doc-strings and doc
aa55659 Fix call to GlobalMemoryStatusEx in w32.c

# Conflicts:
# doc/emacs/files.texi
# src/data.c

5 years agoBump Emacs version to 26.1.90
Nicolas Petton [Mon, 12 Nov 2018 15:45:23 +0000 (16:45 +0100)]
Bump Emacs version to 26.1.90

* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 26.1.90.

5 years ago* etc/AUTHORS: Update.
Nicolas Petton [Mon, 12 Nov 2018 15:43:30 +0000 (16:43 +0100)]
* etc/AUTHORS: Update.

5 years ago; ChangeLog.3 update
Nicolas Petton [Mon, 12 Nov 2018 15:42:49 +0000 (16:42 +0100)]
; ChangeLog.3 update