summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* * lisp/help-fns.el (help--symbol-class): New function.Juri Linkov2021-06-031-17/+23
| | | | | Refactored from help--symbol-completion-table-affixation. https://lists.gnu.org/archive/html/emacs-devel/2021-06/msg00066.html
* Add user options for default windmove commands (bug#41438)Philip Kaludercic2021-06-031-0/+80
| | | | | | | | * windmove.el (windmove--default-keybindings-type): Add type. (windmove-default-keybindings): Add user option. (windmove-display-default-keybindings): Add user option. (windmove-delete-default-keybindings): Add user option. (windmove-swap-states-default-keybindings): Add user option.
* Improve windmove-*-default-keybindings functions (bug#41438)Philip Kaludercic2021-06-031-21/+70
| | | | | | | | | | | * windmove.el (windmove-mode-map): Add special map for windmove commands. (windmove-mode): Add minor mode for activating windmove-mode-map. (windmove-install-defaults): Add general function for manipulating windmove-mode-map. (windmove-default-keybindings): Use windmove-install-defaults. (windmove-display-default-keybindings): Use windmove-install-defaults. (windmove-delete-default-keybindings): Use windmove-install-defaults. (windmove-swap-states-default-keybindings): Use windmove-install-defaults.
* Constant-propagate (function SYMBOL)Mattias Engdegård2021-06-031-1/+1
| | | | | * lisp/emacs-lisp/byte-opt.el (byte-optimize--substitutable-p): Consider #'SYMBOL a constant for compile-time propagation purposes.
* Optimise (cons X nil) to (list X)Mattias Engdegård2021-06-031-0/+8
| | | | * lisp/emacs-lisp/byte-opt.el (byte-optimize-cons): New function.
* More accurate highlighting of mis-spellings in FlyspellEli Zaretskii2021-06-031-7/+20
| | | | | * lisp/textmodes/flyspell.el (flyspell-word): Highlight only the misspelled word, not any extra characters after it. (Bug#5575)
* Make the `i' command in Info-mode remove duplicate matchesLars Ingebrigtsen2021-06-031-1/+7
| | | | | * lisp/info.el (Info-index): Weed out duplicate matched (bug#3692).
* Fix up previous hideif change to avoid a compilation warningLars Ingebrigtsen2021-06-031-3/+3
| | | | | | * lisp/progmodes/hideif.el (hide-ifdef-expand-reinclusion-protection): Move to avoid a compilation warning.
* fringe-mode doc clarificationsLars Ingebrigtsen2021-06-031-2/+9
| | | | | | * lisp/fringe.el (fringe-mode): (fringe-mode): Note that this variable and command have nothing to do with modes (bug#6931).
* * lisp/progmodes/hideif.el: Fix initial version for new variablesLuke Lee2021-06-031-3/+6
| | | | | | | (hide-ifdef-verbose, hide-ifdef-evalulate-enter-hook) (hide-ifdef-evalulate-leave-hook): Fix initial version to 28.1. (hide-ifdef-expand-reinclusion-protection): Obsolete since 28.1, rename to `hide-ifdef-expand-reinclusion-guard' instead.
* Fix problem with empty command histories in eshell and `erase'Lars Ingebrigtsen2021-06-031-1/+1
| | | | | * lisp/eshell/em-hist.el (eshell-add-input-to-history): Protect against an empty ring (bug#48770).
* Allow opening buttonized URL with secondary browser in rcircTassilo Horn2021-06-022-1/+3
| | | | | | | | * lisp/net/browse-url.el (browse-url-button-open-url): Add autoload cookie. * lisp/net/rcirc.el (rcirc-markup-urls): Use `browse-url-button-open-url' instead of just `browse-url' in order to be able to use the secondary browser by giving a prefix arg.
* * lisp/progmodes/hideif.el: update for new C++ standards and extensionsLuke Lee2021-06-021-280/+934
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Matching gcc/clang behavior on stringification including keeping the same number of white spaces. C++11, C++14, C++17 and GCC literals extension are supported. Preprocessing time floating point operation supported but limited to Emacs internal representation which is C data type "double". Also support some frequently used keywords like __LINE__, __TIME__, __DATE__ and so on. (hif-clear-all-ifdef-defined, hif-show-all, hif-after-revert-function) (hide-ifdef-define, hide-ifdefs, show-ifdefs): interactive behavior changes, mainly to allow operation within the marked region. (hif-eval, hif-__LINE__, hif-__FILE__, hif-__COUNTER__, hif-__cplusplus) (hif-__DATE__, hif-__TIME__, hif-__STDC__, hif-__STDC_VERSION__) (hif-__STDC_HOST__, hif-__FILE__, hif-full-match, hif-is-number, hif-is-float) (hif-delete-char-in-string, hif-string-to-decfloat, hif-string-to-hexfloat) (hif-strtok, hif-is-white, hif-backward-comment, hif-split-signed-token) (hif-keep-single, hif-display-macro): new functions. (hide-ifdef-verbose, hide-ifdef-evalulate-enter-hook) (hide-ifdef-evalulate-leave-hook, hide-ifdef-evaluator, hif-predefine-alist) (hif-numtype-suffix-regexp, hif-bin-regexp, hif-hex-regexp, hif-oct-regexp) (hif-dec-regexp, hif-decfloat-regexp, hif-hexfloat-regexp) (hif-unicode-prefix-regexp, hif-verbose-define-count): new constants or variables. (hif-macroref-regexp, hif-token-alist, hif-token-regexp) (hif-string-literal-regexp): modified constants for faster regexp processing. (hide-ifdef-expand-reinclusion-guard): renamed from `hide-ifdef-expand-reinclusion-protection' to match commonly used term. (hif-lookup, hif-defined, hif-string-to-number, hif-tokenize, hif-nextoken) (hif-if-valid-identifier-p, hif-define-operator, hif-expand-token-list) (hif-parse-exp, hif-math, hif-factor, hif-get-argument-list, hif-stringify) (hif-token-concat, hif-mathify, hif-comma, hif-token-stringification) (hif-token-concatenation, hif-macro-supply-arguments, hif-evaluate-macro) (hif-find-define, hif-add-new-defines, hide-ifdef-guts, hif-undefine-symbol) (hide-ifdef-set-define-alist, hide-ifdef-use-define-alist): modified functions for new internal data representation, mainly for stringification and white space preservation. Also better error handling to report source line number and more informative error messages.
* Fix ibuffer auto-shrinking windowsLars Ingebrigtsen2021-06-021-2/+5
| | | | | * lisp/ibuffer.el (ibuffer-shrink-to-fit): Don't shrink all windows, just the ibuffer one (bug#7218).
* Move point in dired buffers when handling a list of filesLars Ingebrigtsen2021-06-021-0/+3
| | | | | * lisp/dired-aux.el (dired-create-files): Advance point to the current file (bug#8015).
* Add new user option to Gnus to allow `#' to toggleAlex Bochannek2021-06-024-26/+53
| | | | | | | | | | | | | | | | | | | | * doc/misc/gnus.texi (Marking Groups, Setting Process Marks): Mention the new variable. * lisp/gnus/gnus-group.el (gnus-group-make-menu-bar): Update menu. (gnus-group-mark-group): Support the variable. (gnus-group-mark-update): New command. (gnus-group-unmark-group, gnus-group-mark-region): Pass in new parameter. * lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Update menu. (gnus-summary-mark-as-processable): Use the variable. * lisp/gnus/gnus-topic.el (gnus-topic-mark-topic): (bug#48683). * lisp/gnus/gnus-topic.el (gnus-topic-mark-topic): Use the variable. * lisp/gnus/gnus.el (gnus-process-mark-toggle): New user option.
* ; End recently added sentences with a period.Basil L. Contovounesios2021-06-012-2/+2
|
* ; Bump isearch.el :version after recent change.Basil L. Contovounesios2021-06-011-1/+1
|
* * Add `native-compile-target-directory' (bug#48743)Andrea Corallo2021-06-011-5/+9
| | | | | | * lisp/emacs-lisp/comp.el (native-compile-target-directory): New variable. (comp-spill-lap-function): Make use of.
* Rename batch-byte-native-compile-for-bootstrap (bug#48743)Andrea Corallo2021-06-013-9/+9
| | | | | | | | | | | | | | | | * lisp/Makefile.in : Rename `batch-byte-native-compile-for-bootstrap' -> `batch-byte+native-compile. * lisp/emacs-lisp/bytecomp.el (byte+native-compile) (byte-compile-file): Rename `batch-byte-native-compile-for-bootstrap' -> `batch-byte+native-compile + `byte-native-for-bootstrap' -> `byte+native-compile'. * lisp/emacs-lisp/comp.el (comp-spill-lap-function, comp-final) (batch-native-compile, batch-byte+native-compile): Likewise. * lisp/emacs-lisp/bytecomp.el (byte+native-compile) (byte-compile-file): Likewise. * test/src/comp-tests.el (comp-tests-bootstrap): Rename `byte-native-for-bootstrap' -> `byte+native-compile'.
* Remove unnecessary function declaration in isearchGlenn Morris2021-06-011-4/+0
| | | | | * lisp/isearch.el (multi-isearch-switch-buffer): Remove unnecessary declaration (after ldefs-boot update).
* Avoid hang in nnimap-keepaliveAndreas Schwab2021-06-011-2/+3
| | | | * lisp/gnus/nnimap.el (nnimap-keepalive): Make interruptable.
* ; Auto-commit of loaddefs files.Glenn Morris2021-06-011-66/+193
|
* * lisp/gnus/gnus-art.el: Don't sneak dynbound code via quotingStefan Monnier2021-06-011-68/+76
| | | | | | | | | Make sure we don't accidentally quote lambdas by embedding them within quoted data. (gnus-visible-headers, gnus-emphasis-alist) (gnus-mime-display-alternative, gnus-article-describe-bindings): Unquote lambdas.
* Add annotation capability to icomplete-vertical-modeJoão Távora2021-06-011-10/+51
| | | | | | | | Co-authored-by Daniel Mendler <mail@daniel-mendler.de> * lisp/icomplete.el (icomplete--affixate): New helper. (icomplete--render-vertical): Use it. Rework. (icomplete-completions): Pass md to icomplete--render-vertical.
* Improve icomplete-vertical-mode and fido-vertical-modeJoão Távora2021-06-012-133/+250
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mode is intended to be used with Icomplete ('M-x icomplete-mode') or Fido ('M-x fido-mode'), to display the list of completions candidates vertically instead of horizontally. When used with Icomplete, completions are rotated and selection kept at the top. When used with Fido, completions scroll like a typical dropdown widget. If the dropdown behaviour is desired for Icomplete (instead of rotation), icomplete-scroll can be adjusted separately by the user. * etc/NEWS (icomplete-vertical-mode): Reword. * lisp/icomplete.el (simple): Require it. (icomplete-selected-match): New face. (icomplete-scroll): New user-visible var. (icomplete-forward-completions): Rework. (icomplete-backward-completions): Rework. (icomplete--fido-mode-setup): Prefer icomplete-scroll according to icomplete-vertical mode. (icomplete-minibuffer-setup): Initialize icomplete--scrolled-completions. (fido-vertical-mode): An alias for icomplete-vertical-mode. (icomplete-exhibit): Init icomplete--scrolled-past. Adjust overlay. (icomplete--render-vertical): New helper. (icomplete--sorted-completions): If cache is stale, also invalidate icomplete--scrolled-past. (icomplete-completions): Rework. Mostly reformat. * lisp/simple.el (max-mini-window-lines): New helper. (display-message-or-buffer): Use it.
* Allow packages to change the hl-line overlay priorityLars Ingebrigtsen2021-06-011-1/+4
| | | | | | * lisp/hl-line.el (hl-line-overlay-priority): New variable (bug#11509). (hl-line-make-overlay): Use it.
* Fix problem with `format-alist' marking all the text in the bufferLars Ingebrigtsen2021-06-012-4/+8
| | | | | | | | * lisp/format.el (format-decode-run-method): Use it to avoid marking the entire buffer (bug#11691). * lisp/simple.el (shell-command-on-region): Allow replacing text without activating the mark.
* Obsolete `global-whitespace-newline-mode'Lars Ingebrigtsen2021-06-011-0/+3
| | | | | | * lisp/whitespace.el (global-whitespace-newline-mode): Make obsolete since it doesn't work correctly, and seems superfluous (bug#12496).
* Add a new command `mailcap-view-file'Lars Ingebrigtsen2021-06-011-0/+23
| | | | | | * doc/misc/emacs-mime.texi (mailcap): Document it (bug#12972). * lisp/net/mailcap.el (mailcap-view-file): New command.
* Improve random selection of keyserversPhilip Kaludercic2021-06-011-16/+24
| | | | | | | * epa-ks.el (epa-keyserver): Interpret a list as a pool. (epa-ks--query-url): Add new auxiliary function. (epa-ks--fetch-key): Use epa-ks--query-url. (epa-search-keys): Use epa-ks--query-url.
* * lisp/isearch.el (lazy-highlight-buffer-max-at-a-time): Change from 20 to 200Juri Linkov2021-05-311-1/+1
| | | | Suggested by Augusto Stoffel <arstoffel@gmail.com> in bug#48581
* * Make *Async-native-compile-log* buffer read-only (bug#48763)Andrea Corallo2021-05-311-3/+8
| | | | | * lisp/emacs-lisp/comp.el (comp-run-async-workers): Make "*Async-native-compile-log*" read-only.
* Remove messaging in ediff-make-diff2-bufferLars Ingebrigtsen2021-05-311-4/+1
| | | | | | * lisp/vc/ediff-diff.el (ediff-make-diff2-buffer): Remove message that's often misleading when diffing buffers (that may be unsaved) (bug#13091).
* Put ELP results in a special-mode bufferLars Ingebrigtsen2021-05-311-8/+10
| | | | | | * lisp/emacs-lisp/elp.el (elp-results): Make `q' work in ELP results buffer (bug#14104). (elp-results-mode): Define as an empty special mode derivation.
* Make `menu-bar-select-buffer' obsoleteLars Ingebrigtsen2021-05-312-3/+7
| | | | | | | * lisp/menu-bar.el (menu-bar-select-buffer): Make obsolete (bug#15651). * lisp/msb.el (msb--select-buffer): Move function here and rename. (msb--make-keymap-menu): Use it.
* Revert "Move menu-bar-select-buffer to msb.el"Lars Ingebrigtsen2021-05-312-4/+4
| | | | | | This reverts commit 253e52478c355dc29052c0d21013b8d06b473880. This is to be fixed in a different way in the next patch.
* Use buffer-local-boundp in describe-variableLars Ingebrigtsen2021-05-311-4/+1
| | | | * lisp/help-fns.el (describe-variable): Use `buffer-local-boundp'.
* Add new convenience function `buffer-local-boundp'Lars Ingebrigtsen2021-05-311-0/+8
| | | | | | | * doc/lispref/variables.texi (Creating Buffer-Local): Document it. * lisp/subr.el (buffer-local-boundp): New function. * src/data.c (Flocal_variable_p): Mention it.
* Speed up `describe-variable' completion predicateDaniel Mendler2021-05-311-6/+9
| | | | | * lisp/help-fns.el (describe-variable): Do not switch to the original buffer in the predicate (bug#48738).
* Fix error in xdg-mime-apps-files when XDG_CURRENT_DESKTOP is definedLars Ingebrigtsen2021-05-311-1/+1
| | | | | * lisp/xdg.el (xdg-mime-apps-files): Don't bug out when XDG_CURRENT_DESKTOP is bound (bug#48748).
* Give 'syntax-propertize-wholelines' a docstring.Philipp Stephani2021-05-301-0/+4
| | | | | | | This function is generally useful. * lisp/emacs-lisp/syntax.el (syntax-propertize-wholelines): Add docstring.
* time-stamp: fix minor bug when parsing option combosStephen Gildea2021-05-301-1/+3
| | | | | | | | * lisp/time-stamp.el (time-stamp-string-preprocess): Handle digit options correctly to avoid overcounting colon options. * test/lisp/time-stamp-tests.el (time-stamp-format-time-zone-offset): Add a new test case that would have caught the option-parsing error.
* time-stamp: refactor time-stamp-string-preprocessStephen Gildea2021-05-301-184/+190
| | | | | * lisp/time-stamp.el (time-stamp-string-preprocess): Reduce lifetime of some loop-local variables to be less error-prone.
* Do not reset settings when disabling a themeMauro Aranda2021-05-301-1/+1
| | | | | | | | * lisp/custom.el (disable-theme): Don't call custom-push-theme, since that resets the theme settings and it isn't useful: we only need to remove the theme setting from the themed variable or face. This fixes a regression when "toggling" themes, introduced while fixing Bug#34027. (Bug#48736)
* Clarify that `symbol-file' only works for symbols in Lisp filesLars Ingebrigtsen2021-05-301-1/+5
| | | | | * lisp/subr.el (symbol-file): Mention help-C-file-name in the doc string (bug#14932).
* Allow help-C-file-name to work on symbols designating subrsLars Ingebrigtsen2021-05-301-1/+3
| | | | | * lisp/help-fns.el (help-C-file-name): Allow working on symbols designating subrs (bug#14932).
* Fix kmacro-view-ring-2nd doc stringLars Ingebrigtsen2021-05-301-1/+1
| | | | * lisp/kmacro.el (kmacro-view-ring-2nd): Fix doc string (bug#15020).
* Move menu-bar-select-buffer to msb.elLars Ingebrigtsen2021-05-302-4/+4
| | | | | | | * lisp/menu-bar.el (menu-bar-select-buffer): Move from here... (bug#15651). * lisp/msb.el (menu-bar-select-buffer): ... to here (which is the only usage in-tree in Emacs).
* Add a new documentation group for overlaysDaniel Martín2021-05-301-0/+46
| | | | | * lisp/emacs-lisp/shortdoc.el (overlay): Add documentation group for buffer overlays(bug#48730).