summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add a selector function as a way to avoid running all the tasksscratch/benchmarksGemini Lasswell2018-11-271-2/+11
| | | | | * lisp/emacs-lisp/erb.el (erb-task-select-function): New variable. (erb--benchmark-one-commit): Use it.
* Fix bugs in output reportGemini Lasswell2018-11-271-1/+2
| | | | | * lisp/emacs-lisp/erb.el (erb-write-result-org-file): Add missing backslash. Add name for xtics table.
* Better instrumentation for bug#33198Gemini Lasswell2018-11-261-5/+17
|
* Create benchmark directory and add some benchmark tasksGemini Lasswell2018-11-258-0/+371
| | | | | | | | | | | * 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.
* Add ERB, a tool for running historical benchmarksGemini Lasswell2018-11-252-0/+2372
| | | | | * lisp/emacs-lisp/erb-task.el: New file. * lisp/emacs-lisp/erb.el: New file.
* Bug#31671 band-aidGemini Lasswell2018-11-231-3/+17
|
* Instrument file descriptor mask code (bug#33198)Gemini Lasswell2018-11-232-2/+47
|
* Add per-symbol mutexesGemini Lasswell2018-11-231-0/+19
| | | | | * lisp/thread.el (make-symbol-mutex): New function. (with-symbol-mutex): New macro.
* Add thread-safe messages and thread-safe queuesGemini Lasswell2018-11-231-0/+115
| | | | | | | | | | | * 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.
* Add Isearch commands for going to absolute occurrence of matches (bug#29321)Juri Linkov2018-11-232-4/+53
| | | | | | * 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.
* emacsclient: coalesce WINDOWSNT-specific codePaul Eggert2018-11-221-10/+7
| | | | | | * lib-src/emacsclient.c (sock_err_message) [WINDOWSNT]: Do nothing if w32_window_app () && alternate_editor. Both callers changed.
* emacsclient: sockaddr portability fixesPaul Eggert2018-11-221-21/+25
| | | | | | | | | | * 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.
* Some minor Tramp cleanupsMichael Albinus2018-11-225-32/+38
| | | | | | | | | * 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.
* emacsclient: getopt minor cleanupPaul Eggert2018-11-211-9/+12
| | | | | * lib-src/emacsclient.c (shortopts): New constant. (decode_options): Use it. Do not assume EOF == -1.
* emacsclient: omit EXTRA_SPACE guessworkPaul Eggert2018-11-211-31/+31
| | | | | | | | | * 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.
* Add prefix arg to isearch-forward-symbol-at-point (bug#29321)Juri Linkov2018-11-212-5/+12
| | | | * lisp/isearch.el (isearch-forward-symbol-at-point): Add optional arg.
* emacsclient: take more care with int widthPaul Eggert2018-11-211-7/+10
| | | | | | | * 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.
* emacsclient.c: use C99 to avoid {}Paul Eggert2018-11-211-110/+108
| | | | | * lib-src/emacsclient.c (set_local_socket): Assume C99 decl-after-statement and reindent.
* emacsclient: improve use of localsPaul Eggert2018-11-211-7/+6
| | | | | * lib-src/emacsclient.c (main): Use smaller scopes for some locals.
* emacsclient: fix unlikely crash with "&"Paul Eggert2018-11-211-51/+34
| | | | | | | * 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 "&".
* Fix "Allow use of Gnus search groups as notmuch path: search term"Eric Abrahamsen2018-11-212-14/+25
| | | | | | | | | | | | | * 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)
* Check Gnus group names when reading from browse serverEric Abrahamsen2018-11-211-1/+5
| | | | | | | | * 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.
* * doc/misc/tramp.texi: Fix last commit.Michael Albinus2018-11-211-4/+4
|
* Let Tramp sudo sessions expire after a timeoutMichael Albinus2018-11-214-19/+84
| | | | | | | | | | | | | | | | * 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.
* Add prefix arg to isearch-repeat-forward/backward (bug#14563, bug#29321)Juri Linkov2018-11-212-23/+63
| | | | | | | | * 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.
* calc.el, calc-(ext|poly), calccomp: Use lexical-bindingStefan Monnier2018-11-204-198/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Merge from origin/emacs-26Glenn Morris2018-11-201-2/+2
|\ | | | | | | d667318 (origin/emacs-26) Fix two Edebug defcustoms (bug#33428)
| * Fix two Edebug defcustoms (bug#33428)Stephen Berman2018-11-191-2/+2
| | | | | | | | | | | | * 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.
* | ; Merge from origin/emacs-26Glenn Morris2018-11-200-0/+0
|\ \ | |/ | | | | | | | | The following commit was skipped: b8b42c2 Fix Bug#33141
| * Fix Bug#33141Michael Albinus2018-11-191-1/+3
| | | | | | | | | | * lisp/net/tramp.el (tramp-make-tramp-file-name): Avoid check for empty method with simplified `tramp-syntax'. (Bug#33141)
* | Merge from origin/emacs-26Glenn Morris2018-11-208-47/+160
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | 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
| * ; * src/window.c (window_scroll): Improve commentary.Eli Zaretskii2018-11-191-2/+2
| |
| * Improve documentation of the window treeEli Zaretskii2018-11-192-10/+15
| | | | | | | | | | | | | | | | | | * 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.
| * Fix window scrolling on TTY frames when there's no mode lineEli Zaretskii2018-11-191-12/+8
| | | | | | | | | | | | * 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)
| * Fix decoding XML files encoded in ISO-8859Eli Zaretskii2018-11-191-1/+5
| | | | | | | | | | | | | | * 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)
| * ; ChangeLog.3 updateemacs-26.1.90Nicolas Petton2018-11-191-1/+102
| |
| * * etc/AUTHORS: Update.Nicolas Petton2018-11-191-3/+5
| |
| * Fix description of some window hooksMartin Rudalics2018-11-182-18/+21
| | | | | | | | | | | | | | * 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'.
| * Run 'window--adjust-process-windows' when frame size changes (Bug#32720)Gary Fredericks2018-11-181-0/+2
| | | | | | | | | | | | | | | | | | * 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
| * Avoid errors in zone.el when there's overlay at EOBEli Zaretskii2018-11-161-1/+1
| | | | | | | | | | | | * lisp/play/zone.el (zone): Make sure the window-end position is calculated accurately, to avoid errors from buffer-substring. (Bug#33384)
* | * lisp/calc/calc-alg.el: Use lexical-binding and silence warningsStefan Monnier2018-11-204-585/+578
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Remove space from end of coding cookieRobert Pluim2018-11-201-1/+1
| | | | | | | | | | * lisp/bookmark.el (bookmark-insert-file-format-version-stamp): Remove unnecessary space from end of coding cookie.
* | Fix last changeEli Zaretskii2018-11-191-0/+2
| | | | | | | | | | | | * lib-src/emacsclient.c (start_daemon_and_retry_set_socket) [!WINDOWSNT]: Condition usage of socket_name on NO_SOCKETS_IN_FILE_SYSTEM being undefined.
* | Avoid compiler warning in emacsclient.cEli Zaretskii2018-11-191-0/+2
| | | | | | | | | | | | * lib-src/emacsclient.c (socket_name): Define only if NO_SOCKETS_IN_FILE_SYSTEM is not defined, to avoid a compiler warning.
* | emacsclient.c: file name component fixesPaul Eggert2018-11-191-29/+6
| | | | | | | | | | | | | | | | * 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.
* | emacsclient.c: reindent to fit in 80Paul Eggert2018-11-191-11/+17
| | | | | | | | * lib-src/emacsclient.c: Reindent slightly.
* | emacsclient.c: use C99 betterPaul Eggert2018-11-191-26/+22
| | | | | | | | | | | | * 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.
* | emacsclient.c: use STDOUT_FILENOPaul Eggert2018-11-191-5/+5
| | | | | | | | | | * lib-src/emacsclient.c (find_tty, handle_sigcont, main): Use STDOUT_FILENO instead of fileno (stdout) or magic 1.
* | emacsclient.c: use bool for booleanPaul Eggert2018-11-191-89/+78
| | | | | | | | | | | | | | | | | | * 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.
* | emacsclient.c: make identifiers more localPaul Eggert2018-11-191-31/+34
| | | | | | | | | | | | | | | | | | | | | | * 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.