summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add D-Bus monitorMichael Albinus2020-09-261-61/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/dbus.el (dbus-interface-monitoring): New defconst. (dbus-call-method, dbus-call-method-asynchronously) (dbus-send-signal, dbus-method-return-internal) (dbus-method-error-internal, dbus-check-arguments): Accept also :system-private and :session-private. (dbus-check-event, dbus-event-path-name) (dbus-event-interface-name) (dbus-event-member-name, dbus-property-handler) (dbus-handle-bus-disconnect): Adapt according to new structure. (dbus-handle-event): Handle also monitor events. (dbus-event-destination-name, dbus-event-handler) (dbus-event-arguments, dbus-register-monitor, dbus-monitor-handler): New defuns. * src/dbusbind.c (XD_DBUS_VALIDATE_BUS_ADDRESS, xd_remove_watch) (Fdbus__init_bus): Accept also :system-private and :session-private. (xd_read_message_1): Add destination and error_name to dbus-event. Handle monitor events. (syms_of_dbusbind): Declare QCsystem_private, QCsession_private and QCmonitor. (dbus-registered-objects-table): Fix docstring.
* | Fix byte-compiler warning in CEDETStefan Kangas2020-09-261-3/+0
| | | | | | | | | | * lisp/cedet/semantic/lex.el (semantic-lex-catch-errors): Fix byte-compiler warning by removing obsolete variable.
* | soap-client.el: Prevent some invalid encoding warningsThomas Fitzsimmons2020-09-251-0/+1
| | | | | | | | | | * lisp/net/soap-client.el (soap-encode-xs-complex-type): Do not warn about missing non-nillable slot if type iself is optional.
* | string-search robustness and documentation improvement (bug#43598)Mattias Engdegård2020-09-251-0/+1
| | | | | | | | | | | | | | | | * src/fns.c (Fstring_search): Check START-POS argument range. Simplify logic. Improve doc string. * test/src/fns-tests.el (string-search): Add test cases. * doc/lispref/strings.texi (Text Comparison): Elaborate. * lisp/emacs-lisp/byte-opt.el (pure-fns): Mark string-search as pure.
* | Partially revert previous prolog.el cleanupLars Ingebrigtsen2020-09-251-1/+1
| | | | | | | | | | | | * lisp/progmodes/prolog.el (prolog-font-lock-keywords): Partially revert previous patch -- we want the prolog-warning-face symbol, not its value.
* | Fix defcustom type in sql.el for sql-postgres-login-paramsLars Ingebrigtsen2020-09-251-2/+1
| | | | | | | | | | * lisp/progmodes/sql.el (sql-login-params): Fix defcustom type to match sql-postgres-login-params value.
* | Fix a defcustom type in gdb-mi.elLars Ingebrigtsen2020-09-251-1/+1
| | | | | | | | | | * lisp/progmodes/gdb-mi.el (gdb-display-source-buffer-action): Fix defcustom type to match the value.
* | Fix defcustom type in whitespace.elLars Ingebrigtsen2020-09-251-3/+3
| | | | | | | | | | | | * lisp/whitespace.el (whitespace-space-after-tab-regexp) (whitespace-indentation-regexp): The first string here isn't a regexp, it's a string (that's expanded with format to be a regexp).
* | Fix the defcustom type fix in python.elLars Ingebrigtsen2020-09-251-1/+1
| | | | | | | | | | * lisp/progmodes/python.el (python-pdbtrack-exit-command): Fix defcustom type (bug#30990).
* | Fix some defcustom typesLars Ingebrigtsen2020-09-2510-10/+17
| | | | | | | | | | | | | | | | | | | | * lisp/whitespace.el (whitespace-style): * lisp/gnus/message.el (message-screenshot-command): * lisp/progmodes/compile.el (compilation-transform-file-match-alist): * lisp/progmodes/gdb-mi.el (gdb-default-window-configuration-file): * lisp/progmodes/python.el (python-pdbtrack-exit-command): Fix the defcustom types. * lisp/progmodes/sql.el (sql-password-wallet): Fix the value.
* | Mark string-search as being side effect freeLars Ingebrigtsen2020-09-251-1/+2
| | | | | | | | | | * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add string-search.
* | Make the Man completion code work better if man -k failsNoam Postavsky2020-09-251-8/+11
| | | | | | | | | | | | * lisp/man.el (Man-completion-table): Check the return code for "man -k" and assume it failed if there's a non-zero exit code (bug#16722).
* | Use the char history in zap-up-to-charTino Calancha2020-09-251-1/+3
| | | | | | | | | | * lisp/misc.el (zap-up-to-char): Use read-char-from-minibuffer (bug#39154).
* | Fix replace-in-string infloop with empty pattern string (bug#43598)Mattias Engdegård2020-09-251-0/+2
| | | | | | | | | | | | * lisp/subr.el (replace-in-string): Raise an error if FROMSTRING is empty. * test/lisp/subr-tests.el (replace-in-string): Add test case.
* | Remove more compat code from prolog.elLars Ingebrigtsen2020-09-251-9/+7
| | | | | | | | | | * lisp/progmodes/prolog.el (prolog-font-lock-keywords): Remove compat test for a face that's always defined.
* | * lisp/progmodes/ruby-mode.el (ruby-use-smie): Declare obsoleteStefan Monnier2020-09-241-19/+21
| | | | | | | | | | | | | | (ruby-mode-map, ruby-mode-menu): Don't use ruby-for/backward-sexp any more. (ruby-mode-variables): Always setup SMIE navigation. Still obey `ruby-use-smie` for indentation. (ruby-forward-sexp, ruby-backward-sexp): Mark as obsolete.
* | Remove some XEmacs compat code from prolog.elLars Ingebrigtsen2020-09-251-46/+26
| | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/prolog.el (prolog-replace-in-string): Remove XEmacs compat code and make obsolete. (prolog-guess-fill-prefix): Adjust callers. (prolog-uncomment-region): Make obsolete. (prolog-mode-syntax-table): syntax-propertize-rules is always defined. (prolog-syntax-propertize-function): Ditto. (prolog-face-name-p): Make into obsolete alias. (prolog-font-lock-keywords): Adjust callers.
* | Clean up replace-in-string slightlyLars Ingebrigtsen2020-09-251-1/+2
| | | | | | | | * lisp/subr.el (replace-in-string): Clean up previous fix slightly.
* | Fix previous replace-in-string rewriteLars Ingebrigtsen2020-09-251-2/+2
| | | | | | | | | | * lisp/subr.el (replace-in-string): Fix logic errors in previous patch.
* | Fix replace-in-string multibyteness problems with string-searchLars Ingebrigtsen2020-09-251-31/+12
| | | | | | | | | | * lisp/subr.el (replace-in-string): Simplify by using the new string-search function (bug#43598).
* | * lisp/help-fns.el (help-fns--first-release): Use etc/NEWS as wellStefan Monnier2020-09-241-1/+1
| |
* | Horizontal scrolling for mouse wheel with Shift modifier (bug#43568)Juri Linkov2020-09-241-3/+15
| | | | | | | | | | | | | | | | | | | | * lisp/mwheel.el (mouse-wheel-scroll-amount): Change 'shift' default value from 5 to 'hscroll'. Add new option "Scroll horizontally" for 'hscroll'. (mwheel-scroll): Handle value 'hscroll' and call mwheel-scroll-left-function or mwheel-scroll-right-function. * doc/emacs/frames.texi (Mouse Commands): Update for horizontal scrolling with Shift modifier.
* | Set mwheel default scroll value to 1 (bug#43380)Theodor Thornhill2020-09-241-2/+2
| | | | | | | | | | | | * lisp/mwheel.el (mouse-wheel-scroll-amount): Change default value 5 to 1 and shift default value from 1 to 5. Default value is changed as discussed in etc/TODO.
* | * lisp/simple.el (goto-line-read-args): More relevant default line number.Juri Linkov2020-09-241-1/+5
| |
* | Add sanity check for Gnus groups that belong to no topicdickmao2020-09-241-3/+1
| | | | | | | | | | * lisp/gnus/gnus-topic.el (gnus-topic-change-level): Do not change gnus-topic-alist when group is outside "topology" (bug#43582).
* | Fix recent simple.el compilation warningLars Ingebrigtsen2020-09-241-1/+2
| | | | | | | | | | * lisp/simple.el (goto-line-relative): Suppress byte compilation warning about goto-line.
* | Minor Tramp cleanupMichael Albinus2020-09-241-1/+3
| | | | | | | | | | | | | | | | * doc/misc/tramp.texi: Some stylistic changes. (Frequently Asked Questions): Mention ProxyCommand and ProxyJump. * lisp/net/tramp-sh.el (tramp-use-ssh-controlmaster-options): Fix docstring.
* | Write Gnus active files with quotes around group namesEric Abrahamsen2020-09-231-1/+1
| | | | | | | | | | | | * lisp/gnus/gnus-util.el (gnus-write-active-file): In case of group names with spaces in them (see Bug#42823). Names are later read with `read', so this should be quite robust.
* | New command goto-line-relative (bug#5042, bug#9917)Juri Linkov2020-09-232-29/+58
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (goto-line-read-args): New function with code from goto-line. (goto-line): New arg RELATIVE. Also use 'widen-automatically' to leave all lines accessible in the narrowed buffer. (goto-line-relative): New command. * lisp/info.el (Info-mode-map): Remap 'goto-line' to 'goto-line-relative'. * doc/emacs/basic.texi (Moving Point): * doc/emacs/display.texi (Optional Mode Line): Mention goto-line-relative.
* | Convert some completion.el tests to ERTStefan Kangas2020-09-231-121/+0
| | | | | | | | | | * test/lisp/completion-tests.el: New file. * lisp/completion.el: Move commented out tests to completion-tests.el.
* | Convert allout unit tests to ERTStefan Kangas2020-09-232-230/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/allout-tests.el: New file. * lisp/allout.el (allout-run-unit-tests-on-load) (allout-run-unit-tests): Remove. (allout-tests-obliterate-variable) (allout-tests-globally-unbound, allout-tests-globally-true) (allout-tests-locally-true, allout-test-resumptions): Move to allout-tests.el * test/lisp/allout-widgets-tests.el: New file. * lisp/allout-widgets.el (allout-widgets-run-unit-tests-on-load) (allout-widgets-run-unit-tests): Remove. (allout-test-range-overlaps): Move to allout-widgets-tests.el.
* | * lisp/repeat.el: Remove obsolete comment.Stefan Kangas2020-09-231-4/+0
| |
* | ; * lisp/emacs-lisp/lisp.el: rename parameter in last changeMattias Engdegård2020-09-231-28/+28
| |
* | Don't signal scan-error when moving by sexp interactivelyMattias Engdegård2020-09-231-45/+95
| | | | | | | | | | | | | | * lisp/emacs-lisp/lisp.el (forward-sexp, backward-sexp, forward-list) (backward-list, down-list, up-list, mark-sexp, kill-sexp) (backward-kill-sexp): Remove unsightly scan-error when running interactively and no further movement by sexp can be made (bug#43489).
* | Allow the newline character in the character widget (Bug#15925)Mauro Aranda2020-09-231-4/+7
| | | | | | | | | | | | | | | | | | | | * lisp/wid-edit.el (widget-specify-field): Extend check for adding the boundary overlay. Plus, a minor comment indentation fix. (character widget): Tweak the valid-regexp to allow the newline character. * test/lisp/wid-edit-tests.el (widget-test-character-widget-value) (widget-test-editable-field-widget-value): New tests (bug#15925).
* | Improve mark handling in gnus nnselectAndrew G Cohen2020-09-231-75/+142
| | | | | | | | | | | | * lisp/gnus/nnselect.el (numbers-by-group, nnselect-request-update-info, nnselect-push-info): Handle all three mark types ('tuple, 'range, 'list) and general speedups.
* | Run gnus-parse-headers-hook when retrieving nnselect headersAndrew G Cohen2020-09-231-0/+1
| | | | | | | | | | | | * lisp/gnus/nnselect.el (nnselect-retrieve-headers): Run the gnus-parse-headers-hook when retrieving headers in nnselect, just like in a real group.
* | Use gnus-extra-headers in nnselect header parsingAndrew G Cohen2020-09-231-5/+6
| | | | | | | | | | | | * lisp/gnus/nnselect.el (nnselect-retrieve-headers): Bind nnmail-extra-headers to gnus-extra-headers before parsing retrieved headers.
* | Ensure that the game directory exists before trying to write to itLars Ingebrigtsen2020-09-221-0/+2
| | | | | | | | | | * lisp/play/gamegrid.el (gamegrid-add-score-insecure): Make the directory if it doesn't exist (bug#37836).
* | Make delete-pair only delete pairs that are part of insert-pair-alistmartin rudalics2020-09-221-6/+31
| | | | | | | | | | * lisp/emacs-lisp/lisp.el (delete-pair): Only delete pairs that are part of `insert-pair-alist' (bug#4136).
* | Fix off-by-one error in eldoc--handle-docsLars Ingebrigtsen2020-09-221-0/+4
| | | | | | | | | | * lisp/emacs-lisp/eldoc.el (eldoc--handle-docs): We have one extra line to use if we don't show the truncation message (bug#43543).
* | Speed up shr-insert slightlyLars Ingebrigtsen2020-09-221-1/+4
| | | | | | | | | | | | * lisp/net/shr.el (shr-insert): Speed up regularising spaces -- the vast majority of the spaces are already OK, so transforming " " to " " just takes time.
* | Fix filling problem in shr due to zero-width id taggingLars Ingebrigtsen2020-09-221-1/+4
| | | | | | | | | | * lisp/net/shr.el (shr-descend): Fix problem with filling lines that have a zero-width ID tag at the start.
* | Fix font-panel on NS (bug#43480)David Reitter2020-09-221-8/+14
| | | | | | | | | | * lisp/term/ns-win.el (ns-respond-to-change-font): Set the font using customize.
* | Remove broken compat code from EDEStefan Kangas2020-09-221-10/+0
| | | | | | | | | | * lisp/cedet/ede/detect.el: Remove broken Emacs 24.1 compat code. This would never have worked, since the fallback library is missing.
* | Support shellcheck in compilation-modeStefan Kangas2020-09-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add shellcheck regexp. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): (compile-test-error-regexps): Add test for shellcheck. * etc/compilation.txt: Add shellcheck example. * etc/NEWS: Announce the change. foo
* | Remove Emacs 23 compat code from cedetStefan Kangas2020-09-223-27/+8
| | | | | | | | | | | | | | * lisp/cedet/ede/proj-elisp.el (project-compile-target): * lisp/cedet/semantic/bovine/grammar.el (bovine-grammar-expand-form): * lisp/cedet/semantic/ede-grammar.el (project-compile-target): Remove Emacs 23 compat code.
* | Remove some Emacs 20 compat codeStefan Kangas2020-09-224-32/+14
| | | | | | | | | | | | | | | | * lisp/apropos.el (apropos-local-value): * lisp/progmodes/antlr-mode.el (antlr-mode-menu): * lisp/progmodes/idlwave.el (idlwave-attach-classes): * lisp/textmodes/artist.el (artist-replace-chars): Remove Emacs 20 compat code.
* | Fix thinko in dired-change-marksStefan Kangas2020-09-221-2/+2
| | | | | | | | | | * lisp/dired.el (dired-change-marks): Fix my previous broken attempt to declare advertised-calling-convention.
* | Move several completions from eshell to pcomplete (Bug#10585)Stefan Kangas2020-09-214-59/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/em-unix.el (eshell-complete-hostname) (pcomplete/ftp, pcomplete/ncftp, pcomplete/ping) (pcomplete/rlogin, pcomplete/telnet, pcomplete/rsh): Move from here... * lisp/pcmpl-unix.el (pcmpl-unix-complete-hostname) (pcomplete/ftp, pcomplete/ncftp, pcomplete/ping) (pcomplete/rlogin, pcomplete/telnet, pcomplete/rsh): ...to here. Make old names into aliases. * lisp/eshell/esh-util.el (eshell-hosts-file) (eshell-host-names, eshell-host-timestamp) (eshell-read-hosts-file, eshell-read-hosts) (eshell-read-host-names): Move from here... * lisp/pcomplete.el (pcomplete-hosts-file) (pcomplete--host-name-cache) (pcomplete--host-name-cache-timestamp) (pcomplete-read-hosts-file, pcomplete-read-hosts) (pcomplete-read-host-names): ...to here. Make old names into aliases. * lisp/eshell/em-unix.el (eshell-complete-host-reference): Update caller.