aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; * lisp/emacs-lisp/byte-opt.el: Remove outdated commentsMattias Engdegård2022-01-111-116/+2
| | | | | These were optimisation ideas that have been implemented, have become irrelevant, or were impractical to begin with.
* Remove the unused unbind-all bytecodeMattias Engdegård2022-01-112-6/+1
| | | | | | | | | | | | | It was implemented but never generated, originally intended for TCO in the pre-lexbind era (which was semantically dubious anyway). Removing it speeds up the interpreter because there is no longer any need for the outermost `count` variable unless checking is enabled. * lisp/emacs-lisp/bytecomp.el: * lisp/emacs-lisp/comp.el (comp-limplify-lap-inst): * src/bytecode.c (BYTE_CODES, exec_byte_code): Remove definition and implementation of unbind-all, freeing up the opcode for other purposes.
* elide-head: Support more licensesStefan Kangas2022-01-011-8/+12
| | | | | | | | * lisp/elide-head.el (elide-head-headers-to-hide): Add support for the Expat License, and more variants of the BSD-2-Clause License. Add old FSF address. This fixes a bug reported in 2003: https://lists.gnu.org/r/bug-gnu-emacs/2003-01/msg00142.html
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-0112-12/+12
|
* Merge from origin/emacs-28Eli Zaretskii2022-01-011469-1472/+1472
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * * lisp/net/tramp-sh.el: Adapt copyright yearMichael Albinus2022-01-011-2/+2
| |
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-011469-1470/+1470
| |
| * ; Auto-commit of loaddefs files.Stefan Kangas2022-01-011-21/+8
| |
* | Increase size of precision scrolling momentum ringPo Lu2022-01-011-38/+42
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-initial-velocity-factor): Fix calculation of last timestamp. (pixel-scroll-precision): (pixel-scroll-kinetic-state): (pixel-scroll-accumulate-velocity): (pixel-scroll-start-momentum): (pixel-scroll-calculate-velocity): Increase default ring size to 30.
* | ; Auto-commit of loaddefs files.Stefan Kangas2022-01-011-182/+432
| |
* | Merge from origin/emacs-28Stefan Kangas2022-01-011-9/+15
|\ \ | |/ | | | | | | 67400da412 Improve doc strings of fringe indicator variables a6adfe21e4 * lisp/tab-line.el (tab-line--get-tab-property): New funct...
| * * lisp/tab-line.el (tab-line--get-tab-property): New function (bug#52881).Juri Linkov2021-12-311-9/+15
| | | | | | | | | | | | | | (tab-line-auto-hscroll): Use ‘tab-line--get-tab-property’ instead of ‘get-pos-property 1’, and ‘get-text-property’ instead of ‘get-pos-property’. (tab-line-select-tab, tab-line-close-tab): Use tab-line--get-tab-property.
* | Merge from origin/emacs-28Stefan Kangas2022-01-011-1/+1
|\ \ | |/ | | | | | | f2031d0ddb Minor improvement in user documentation of completion style 1e3076e2db Fix bug where bookmark-jump used (point), not (point-at-bol)
| * Fix bug where bookmark-jump used (point), not (point-at-bol)Campbell Barton2021-12-301-1/+1
| | | | | | | | | | | | | | | | | | | | This matches changes from e852822f3db469c985bf022651f184d6ff2c518a, regression in 7fe88446c30279285e3171091189b3d1af697c05. * lisp/bookmark.el (bookmark--jump-via): Look at overlays at BOL. Otherwise the fringe bookmark indication is not deleted with the bookmark. Copyright-paperwork-exempt: yes
* | Use defvar-keymap in play/*.elStefan Kangas2021-12-3110-250/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/play/5x5.el (5x5-mode-map): * lisp/play/blackbox.el (blackbox-mode-map): * lisp/play/bubbles.el (bubbles-mode-map): * lisp/play/decipher.el (decipher-mode-map): * lisp/play/doctor.el (doctor-mode-map): * lisp/play/gametree.el (gametree-mode-map): * lisp/play/gomoku.el (gomoku-mode-map): * lisp/play/mpuz.el (mpuz-mode-map): * lisp/play/pong.el (pong-mode-map): * lisp/play/solitaire.el (solitaire-mode-map): Use defvar-keymap.
* | Documentation update for Secret ServiceMichael Albinus2021-12-312-14/+16
| | | | | | | | | | | | | | | | * doc/misc/auth.texi (Secret Service API): Precise "session" collection. * lisp/auth-source.el (auth-sources): Adapt custom label. * lisp/net/secrets.el: Adjust comments.
* | Fix handling of webkit xwidget bookmarksStephen Berman2021-12-311-37/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make jumping to a bookmarked webkit xwidget in another window or another frame show the xwidget only in that window or frame and refactor new session code used by the bookmark code (bug#52856). In addition, make xwidget-webkit-clone-* commands work. * lisp/xwidget.el (xwidget-webkit-clone-and-split-below) (xwidget-webkit-clone-and-split-right): Unbreak these functions by passing just the URL to them, not the message displaying it. (xwidget-webkit-bookmark-jump-new-session): Adjust doc string, rephrasing and removing a customization suggestion that cannot take effect. (xwidget-webkit-bookmark-jump-handler): New autoloaded function. (xwidget-webkit-bookmark-make-record): Use it. (xwidget-webkit--create-new-session-buffer): New function extracted from `xwidget-webkit-new-session'. (xwidget-webkit-new-session): Use it.
* | Minor improvements of 'lisp-directory' docsEli Zaretskii2021-12-311-1/+1
| | | | | | | | | | | | | | * lisp/startup.el (lisp-directory): * etc/NEWS: * doc/lispref/loading.texi (Library Search): Improve wording of documentation of 'lisp-directory' and related features.
* | * lisp/emacs-lisp/package.el (package-get-version): Add fallbackStefan Monnier2021-12-311-1/+4
| |
* | Don't store docstrings of preloaded .el files in etc/DOCStefan Monnier2021-12-302-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the location of those files changes between build time and installation time, this requires to tweak the file name used in those (#$ . NNN) references during the dump so they don't hardcode the build directory. We do it in the same way as was already done for those same file names in `load-history`, except we convert them back to absolute file names more lazily (i.e. when fetching the actual docstring rather than at startup), which requires remembering the `lisp-dir` computed at startup in the new `lisp-directory` variable. * src/Makefile.in ($(etc)/DOC): Don't scan Lisp files any more. * src/lread.c (Fload): Use relative file names for `load-file-name` when preloading for the dump, like we already did for `current-load-list`. (read_list): Don't zero-out dynamic docstring references during the preload since they won't be filled later by Snarf-documentation any more. (read1): Remove the hash-hack for doc references that were zeroed. * lisp/startup.el (lisp-directory): New variable. (command-line): Set it. * src/doc.c (get_doc_string): Use `lisp-directory` for dynamic docstring references using relative file names. (syms_of_doc): Add `Qlisp_directory`. * lib-src/make-docfile.c (scan_file): Don't handle `.el` or `.elc` files any more. (IS_SLASH): Remove macro, not used any more. (skip_white, read_lisp_symbol, search_lisp_doc_at_eol) (scan_lisp_file): Remove functions, not used any more. * doc/lispref/loading.texi (Library Search): Mention `lisp-directory`.
* | * lisp/window.el (display-comint-buffer-action): Fix type.Glenn Morris2021-12-301-1/+1
| |
* | * lisp/emacs-lisp/ert.el (ert-select-tests): Document new error.Philipp Stephani2021-12-301-1/+2
| |
* | * lisp/emacs-lisp/ert.el (ert-select-tests): Simplify nested switchPhilipp Stephani2021-12-301-46/+36
| |
* | Properly report errors about unbound ERT test symbols.Philipp Stephani2021-12-301-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Assertions should only be used to check internal consistency within a package, not to check arguments passed by callers. Instead, define and use a new error symbol. * lisp/emacs-lisp/ert.el (ert-test-unbound): New error symbol. (ert-select-tests): Use it. * test/lisp/emacs-lisp/ert-tests.el (ert-test-select-undefined): New unit test. * etc/NEWS: Document new behavior.
* | ; * lisp/emacs-lisp/ert.el: Update reference to 'cl-assert'Philipp Stephani2021-12-301-1/+1
| |
* | Make sure widget buttons always have a left box linePo Lu2021-12-301-1/+2
| | | | | | | | | | * lisp/wid-edit.el (widget-specify-button): Add an invisible before-string to the button overlay. (bug#51550)
* | CC Mode: Prevent rapid alternation of fontification of "found types"Alan Mackenzie2021-12-301-11/+27
| | | | | | | | | | | | | | | | | | This fixes bug #52863. * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): When a new type is found, postpone entering it into c-found-types (and thus triggering the fontification of that type throughout the buffer) until the end of the function, when we're sure that the "type" found actually is a type.
* | * lisp/tab-line.el (tab-line-tab-name-format-default): Add help-echo.Juri Linkov2021-12-301-0/+2
| | | | | | | | (bug#52889)
* | Make xwidget motion commands hscroll the window of wide widgetsPo Lu2021-12-301-12/+26
| | | | | | | | | | | | | | | | | | | | * lisp/xwidget.el (xwidget-info): New function declaration. (xwidget-webkit-scroll-forward): (xwidget-webkit-scroll-backward): Hscroll the window if the widget is wider than the text area. (bug#52885) * src/xwidget.c (xwidget_scroll, xwidget_motion_notify): Apply clip offsets to coordinates.
* | Merge from origin/emacs-28Stefan Kangas2021-12-302-3/+3
|\ \ | |/ | | | | | | | | | | | | 06545bc0cc CC Mode: c-update-brace-stack: After struct foo *, do not ... f11779f01b Improve documentation of 'M-X' and related features # Conflicts: # etc/NEWS
| * CC Mode: c-update-brace-stack: After struct foo *, do not expect a brace.Alan Mackenzie2021-12-292-3/+3
| | | | | | | | | | | | | | | | | | | | This fixes bug #52796. * lisp/progmodes/cc-engine.el (c-update-brace-stack): Handle a "*" like a semicolon, cancelling the expectation of a brace. * lisp/progmodes/cc-langs.el (c-brace-stack-thing-key): Add a "*" into the sets of significant characters.
* | * lisp/textmodes/paragraphs.el (repunctuate-sentences-filter): New function.Juri Linkov2021-12-291-2/+16
| | | | | | | | | | (repunctuate-sentences): Use it on isearch-filter-predicate to skip unnecessary matches. (bug#52769)
* | * lisp/textmodes/sgml-mode.el (sgml-mode): Set skeleton-end-newline to nil.Juri Linkov2021-12-291-0/+1
| | | | | | | | | | | | Prevent skeleton.el from adding a newline to each inserted skeleton. Those which do want a newline do that explicitly in their define-skeleton form. This is what texinfo-mode does (bug#52864).
* | ; * lisp/replace.el (replace-regexp-function): Doc fix. (Bug#52558)Eli Zaretskii2021-12-291-3/+7
| |
* | Revert "Revert "Fix fontification in diff--font-lock-prettify""Tassilo Horn2021-12-291-13/+11
| | | | | | | | This reverts commit 3cadd72673d8095df7eeb8e847db87ae42b5e2f6.
* | Revert "Fix fontification in diff--font-lock-prettify"Tassilo Horn2021-12-291-11/+13
| | | | | | | | This reverts commit 1da392d62d1ae743151f7fda83d0725ec6053686.
* | Fix fontification in diff--font-lock-prettifyMatthias Meulien2021-12-291-13/+11
| | | | | | | | | | | | * lisp/vc/diff-mode.el (diff--font-lock-prettify): Fix diff--font-lock-prettify on created or deleted files (bug#52810).
* | Allow the user to specify shr-width in mm-shrLars Ingebrigtsen2021-12-291-1/+1
| | | | | | | | | | * lisp/gnus/mm-decode.el (mm-shr): Allow the user to specify the width by setting `shr-width' (bug#52825).
* | Merge from origin/emacs-28Stefan Kangas2021-12-291-1/+2
|\ \ | |/ | | | | 06dcd2be5d Improve rectangle-mark-mode documentation regarding mark a...
| * Improve rectangle-mark-mode documentation regarding mark activationSean Whitton2021-12-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | * doc/emacs/killing.texi: Describe how rectangle-mark-mode works when Transient Mark mode is off. Qualify discussion of rectangle-exchange-point-and-mark to say that it cycles the four corners only when the region is active. * lisp/rect.el (rectangle-mark-mode): State that rectangle-mark-mode does not activate the mark when Transient Mark mode is off. Reword sentence about how long the mode lasts to account for when Transient Mark mode is off. (Bug#42663)
* | Fix bug#52467 by adding a new custom variable 'display-comint-buffer-action'Sam Steingold2021-12-288-11/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/window.el (display-comint-buffer-action): New `defcustom`, defaults to 'display-buffer-same-window' for backward compatibility. * lisp/cmuscheme.el (run-scheme, switch-to-scheme): Pass 'display-comint-buffer-action' to 'pop-to-buffer' instead of using 'pop-to-buffer-same-window'. * lisp/eshell/eshell.el (eshell): Likewise. * lisp/shell.el (shell): Likewise. * lisp/org/ol-eshell.el (org-eshell-open): Likewise. * lisp/progmodes/inf-lisp.el (inferior-lisp): Likewise. * lisp/progmodes/project.el (project-shell, project-eshell): Likewise. * lisp/textmodes/tex-mode.el (tex-display-shell, tex-compile-default) (tex-recenter-output-buffer): Pass 'display-comint-buffer-action' to 'pop-to-buffer'.
* | * lisp/textmodes/paragraphs.el (repunctuate-sentences): Region for NO-QUERY.Juri Linkov2021-12-281-2/+4
| | | | | | | | | | Use region boundaries also for the case when NO-QUERY arg is non-nil (bug#52769).
* | * lisp/textmodes/paragraphs.el (repunctuate-sentences): Support region.Juri Linkov2021-12-281-4/+8
| | | | | | | | | | Add optional args 'start' and 'end', and pass them as region boundaries to query-replace-regexp (bug#52769).
* | * lisp/replace.el (replace-regexp-function): New function (bug#52558).Juri Linkov2021-12-281-2/+9
| | | | | | | | (replace-search, replace-highlight): Use it.
* | ; * lisp/term.el (term-goto-process-mark-maybe): Fix typo in doc string.Eli Zaretskii2021-12-281-1/+1
| |
* | ; * lisp/keymap.el (key-valid-p): Fix wording of doc string.Eli Zaretskii2021-12-281-1/+1
| |
* | * Fix native comp for non trivial function names (bug#52833)Andrea Corallo2021-12-281-1/+3
| | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-c-func-name): Fix native compilation for functions with function names containing non trivial characters (bug#52833).
* | * lisp/vc/vc.el (vc-revert): Use generate-new-buffer, not just new buffer nameJuri Linkov2021-12-281-1/+1
| |
* | Add support for pinch events to NSPo Lu2021-12-281-2/+1
| | | | | | | | | | | | | | | | * lisp/face-remap.el (text-scale-pinch): Remove mistaken assumption that angle is always 1.0 at the beginning of a sequence. * src/nsterm.c (- magnifyWithEvent): New function.
* | Merge from origin/emacs-28Stefan Kangas2021-12-282-4/+4
|\ \ | |/ | | | | | | c0815aca18 Fix typos in in 'reset-language-environment' ea65de7577 eshell-complete-parse-arguments: don't use string-match on...