summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Autoload byte-compile-warning-enabled-pLars Ingebrigtsen2021-12-011-0/+1
| | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-warning-enabled-p): Autoloads (for easier use in macroexp etc).
* Add an ldefs-boot.el target to the MakefileLars Ingebrigtsen2021-12-011-0/+3
| | | | | * lisp/Makefile.in (ldefs-boot.el): Add a target to regenerate the ldefs-boot.el file.
* Make "make force-autoloads" produce the correct resultLars Ingebrigtsen2021-12-011-1/+1
| | | | | * lisp/emacs-lisp/autoload.el (cl-lib): We need the cl-macs at runtime to expand cl-defmacros to find declare indent forms.
* Don't include the other loaddef files in the no-autoloads sectionLars Ingebrigtsen2021-12-011-3/+11
| | | | | * lisp/emacs-lisp/autoload.el (make-directory-autoloads): Don't include the other loaddef files in the no-autoloads section.
* Avoid unnecessary call when pixel scrollingPo Lu2021-12-011-7/+8
| | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down): Avoid unnecessary call to `posn-at-point'
* Make pixel scrolling fasterPo Lu2021-12-011-48/+31
| | | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down): Get rid of big motion loop. (pixel-scroll-precision-scroll-up): Stop subtracting height of window lines.
* ; Auto-commit of loaddefs files.Stefan Kangas2021-12-011-106/+112
|
* * lisp/loadup.el (paren): Preload it (again).Andrea Corallo2021-11-301-0/+1
|
* Improve documentation of pixel-fillEli Zaretskii2021-11-301-2/+3
| | | | | | | * doc/lispref/text.texi (Filling): Describe the arguments of 'pixel-fill-region'. Add index entry. * lisp/textmodes/pixel-fill.el (pixel-fill-region): Doc fix.
* Use pixel-fill-width in shr.elLars Ingebrigtsen2021-11-301-26/+14
| | | | | | * lisp/net/shr.el (shr--window-width): Factor out into own function. (shr-insert-document): Use it. (shr-fill-text): Ditto.
* Document pixel-fill-regionLars Ingebrigtsen2021-11-301-0/+22
| | | | | | | * doc/lispref/text.texi (Filling): Document pixel-fill-region. * lisp/textmodes/pixel-fill.el (pixel-fill-width): Add new helper function.
* Revert "Preload paren.el"Andrea Corallo2021-11-302-14/+2
| | | | | | Reverting as the previous commit make this fix not anymore necessary. This reverts commit 340e527bed83ff0382446132c871088ad61d1745.
* Improve native compiler startup circular dependecy prevention mechanismAndrea Corallo2021-11-301-1/+15
| | | | | | | | | | | * src/comp.c (maybe_defer_native_compilation): Update to accumulate delayed objects in `comp--delayed-sources'. (syms_of_comp): Add `comp--delayed-sources' and `comp--loadable' vars. * lisp/startup.el (startup--honor-delayed-native-compilations): New function. (normal-top-level): Call it.
* Allow storing buffer names in registersLars Ingebrigtsen2021-11-301-0/+7
| | | | | | | * doc/emacs/regs.texi (File and Buffer Registers): Rename and add doc for `buffer' version. * lisp/register.el (register-val-jump-to, register-val-describe): Add support for (buffer . ...) registers (bug#33033).
* Generalise CPS-conversion let optimisationMattias Engdegård2021-11-301-7/+6
| | | | | | * lisp/emacs-lisp/generator.el (cps--transform-1): Eliminate a temporary for the last of any `let` form, not just for single-binding ones. Suggested by Stefan Monnier.
* Allow inhibiting warnings about obsolete macros againLars Ingebrigtsen2021-11-301-4/+5
| | | | | * lisp/emacs-lisp/macroexp.el (macroexp-macroexpand): Inhibit warning if requested (bug#50984).
* Fix pixel scrolling againPo Lu2021-11-301-2/+3
| | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down): Fix confusion about absolutivity of `window-edges'.
* Fix 1-off errors in pixel scrolling codePo Lu2021-11-301-3/+3
| | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down): Fix one-off errors.
* Improve upwards pixel scrolling for large imagesPo Lu2021-11-301-40/+45
| | | | | | | | This fixes most of the problem, but with a large image the vscroll can sometimes jump about, which has to be fixed. * lisp/pixel-scroll.el (pixel-scroll-precision-up): Handle vscrolling large images in the first unseen line.
* Better CPS conversion of multi-binding `let`Mattias Engdegård2021-11-301-5/+9
| | | | | | * lisp/emacs-lisp/generator.el (cps--transform-1): Don't translate single-binding `let` into `let*` with an extra temporary variable; it just adds two more useless states.
* * lisp/pixel-scroll.el (pixel-scroll-precision): Handle zero delta.Po Lu2021-11-301-12/+13
|
* Fix annoying bell rings when pixel scrolling to buffer limitsPo Lu2021-11-301-3/+9
| | | | | * lisp/pixel-scroll.el (pixel-scroll-precision): Don't ding at buffer limits.
* Add `ns-scroll-event-delta-factor'Po Lu2021-11-301-0/+1
| | | | | | | * src/nsterm.m (- mouseDown): Take delta factor into account. (Vns_scroll_event_delta_factor): New variable. * lisp/cus-start.el: Add option.
* Add new package pixel-fill.elLars Ingebrigtsen2021-11-302-103/+207
| | | | | | | | | | * lisp/net/shr.el (shr-char-breakable-p, shr-char-nospace-p) (shr-char-kinsoku-bol-p, shr-char-kinsoku-eol-p) (shr-find-fill-point): Moved to pixel-fill.el and renamed. (shr-pixel-region): Made obsolete. (shr-fill-line): Use pixel-fill-region. * lisp/textmodes/pixel-fill.el: New package.
* Fix some of the argument handling in keymap-set and keymap-substituteLars Ingebrigtsen2021-11-301-6/+5
| | | | | | | * lisp/keymap.el (keymap-set): Fix handling of binding one key to another key. (keymap-substitute): Fix confusion in implementation -- the args are definitions, not keys.
* Regenerate ldefs-boot.elLars Ingebrigtsen2021-11-291-48/+87
|
* Fix up generation of help text for ldefs-boot.elLars Ingebrigtsen2021-11-291-1/+1
| | | | | * lisp/emacs-lisp/autoload.el (autoload-rubric): Don't put the help text into cedet/*/loaddefs.el (bug#51744).
* Don't return whitespace for thing-at-point in whitespace-only buffersLars Ingebrigtsen2021-11-291-3/+12
| | | | | * lisp/thingatpt.el (bounds-of-thing-at-point): If the buffer is empty, return nil for most things (bug#52098).
* Make Re: recognition in ispell-message less ambiguousLars Ingebrigtsen2021-11-291-1/+1
| | | | | * lisp/textmodes/ispell.el (ispell-message): Require a "Re" as a word, not as a word ending (bug#52104).
* Make `group' widgets prettier in CustomizeBrahimi Saifullah2021-11-291-1/+2
| | | | | | | * lisp/wid-edit.el (group): Make the ":" invisible so that the buffer looks prettier (bug#52143). Copyright-paperwork-exempt: yes
* project-kill-buffers can display list of buffers to killMatthias Meulien2021-11-291-4/+34
| | | | | | | | | * lisp/progmodes/project.el (project-kill-buffers-display-buffer-list): Option to toggle temporarily display of the list of buffers to kill when calling project-kill-buffers (project-kill-buffers): Handle project-kill-buffers-display-buffer-list option (bug#52148).
* Signal a better error in tabulated-list-sortLars Ingebrigtsen2021-11-291-0/+4
| | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort): Signal error earlier on invalid column numbers (bug#52154).
* Use mupdf in doc-view-mode if gs is not installedDaniel Martín2021-11-291-3/+4
| | | | | * lisp/doc-view.el (doc-view-mode-p): Use mupdf to render PDF and related formats if gs is not installed (bug#52170).
* Make fill-region-as-paragraph clear the markers it createsIkumi Keita2021-11-291-1/+5
| | | | | | | * lisp/textmodes/fill.el (fill-region-as-paragraph): Clear temporary markers (bug#52175). Copyright-paperwork-exempt: yes
* Do not buttonize key bindings outside of *Help* buffersGregory Heytings2021-11-298-642/+672
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Mention the new variable. * lisp/apropos.el (apropos-describe-plist): Bind the new variable (bug#52053). * lisp/button.el (button-describe): Bind the new variable. * lisp/help-fns.el (describe-function, describe-variable) (describe-face, describe-symbol, describe-syntax) (describe-categories, describe-keymap, describe-mode) (describe-widget): Bind the new variable. * lisp/help-macro.el (make-help-screen): Bind the new variable. * lisp/help.el (help-buffer-under-preparation): New variable that is bound to t by commands that create a *Help* buffer. (substitute-command-keys): Use the new variable: help-link-key-to-documentation is supposed to have an effect only "in *Help* buffers". Fixes bug#52053. (view-lossage, describe-bindings, describe-key): Bind the new variable. * lisp/repeat.el (describe-repeat-maps): Bind the new variable. * lisp/international/mule-cmds.el (describe-input-method) (describe-language-environment): Bind the new variable. * lisp/international/mule-diag.el (describe-character-set) (describe-coding-system, describe-font, describe-fontset) ((list-fontsets): Bind the new variable.
* Really make `x-scroll-event-delta-factor' dependent on systemPo Lu2021-11-291-5/+5
| | | | | * lisp/cus-start.el: Move X specific builtins that start with "x-" before the catch-all test.
* Fix last change for non-X platformsPo Lu2021-11-291-2/+4
| | | | | * lisp/cus-start.el: Don't announce `scroll-bar-adjust-thumb-portion' on non-X systems.
* Allow customizing the pixel delta of wheel events on XPo Lu2021-11-291-0/+1
| | | | | | | * lisp/cus-start.el: Add `x-scroll-event-delta-factor'. * src/xterm.c (handle_one_xevent): Apply scroll event delta factor to wheel events with pixel data. (Vx_scroll_event_delta_factor): New user option.
* Tweak gnus-art key bindingLars Ingebrigtsen2021-11-281-1/+1
| | | | * lisp/gnus/gnus-art.el (:keymap): Fix mnemonic key binding.
* ; Don't use remq (breaks bootstrapping)Mattias Engdegård2021-11-281-1/+1
|
* Use compiler macros for the key syntax checksMattias Engdegård2021-11-283-69/+46
| | | | | | | | | | | | | | | | | | Compile-time key string syntax checks are better written using compiler macros than with byte-hunk-handlers inside the compiler proper. * lisp/emacs-lisp/bytecomp.el (byte-compile-define-keymap) (byte-compile-define-keymap--define): Remove. * lisp/keymap.el (keymap--compile-check): New. (keymap-set, keymap-global-set, keymap-local-set, keymap-global-unset) (keymap-local-unset, keymap-unset, keymap-substitute) (keymap-set-after, key-translate, keymap-lookup, keymap-local-lookup) (keymap-global-lookup): Use compiler-macro for argument checks. * lisp/subr.el (define-keymap--compile): New. (define-keymap--define): Fold into define-keymap. (define-keymap): Use compiler-macro. (defvar-keymap): Use define-keymap.
* Avoid unused argument warnings in lambda compiler macrosMattias Engdegård2021-11-281-0/+1
| | | | | | | * lisp/emacs-lisp/byte-run.el (byte-run--set-compiler-macro): Don't warn when a compiler macro with lambda-form expander does not use all the arguments of the function. Nobody expected any warning since the arguments look like free variables inside the lambda form.
* Merge from origin/emacs-28Stefan Kangas2021-11-287-26/+33
|\ | | | | | | | | | | | | 1fffe9a210 ; * lisp/org/org.el: Fix version header. 2a4de5e5e5 Fix Subject when forwarding message with 2-line From b8b2dd17c5 Update to Org 9.5.1-11-g96d91b a937f536b3 * doc/lispref/commands.texi (Click Events): Fix wording (b...
| * ; * lisp/org/org.el: Fix version header.Stefan Kangas2021-11-281-1/+1
| |
| * Fix Subject when forwarding message with 2-line FromMike Kupfer2021-11-271-0/+2
| | | | | | | | | | | | * lisp/mh-e/mh-comp.el (mh-forwarded-letter-subject): Collapse two-line From headers into a single line (SF#266). Based on a suggestion from Lester Buck (many thanks!).
| * Update to Org 9.5.1-11-g96d91bKyle Meyer2021-11-275-25/+30
| |
* | Make haiku-win build correctly on non-Haiku systemsPo Lu2021-11-281-0/+1
| | | | | | | | | | * lisp/term/haiku-win.el (haiku-selection-targets): Add missing declaration.
* | Make `pixel-scroll-precision-scroll-up' work better with overlaysPo Lu2021-11-281-3/+8
| | | | | | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-up): Just set vscroll when on overlay.
* | Fix pixel scroll for overlays and text in display propertiesPo Lu2021-11-271-3/+10
| | | | | | | | | | | | * lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down): Just set vscroll if we're scrolling through an overlay or something to that effect.
* | ; Improve doc string of 'glyphless-char-display-control'Eli Zaretskii2021-11-271-6/+8
| | | | | | | | | | * lisp/international/characters.el (glyphless-char-display-control): Doc fix.