1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 06:50:46 -08:00
Commit graph

151329 commits

Author SHA1 Message Date
Lars Ingebrigtsen
ec60aededd Fix mouse-1 on `C-h b' buttons
* lisp/outline.el (outline--make-button-overlay): Make mouse-1
work on the buttons.
2021-11-02 03:50:36 +01:00
Lars Ingebrigtsen
8cb514f4a2 Make `C-h b' also describe overlay keymaps
* lisp/help.el (describe-bindings): Also describe overlay key
bindings.
2021-11-02 03:35:10 +01:00
Lars Ingebrigtsen
ee3e4d0ca2 Add a better test for emojis
* lisp/outline.el (outline--valid-char-p)
(outline--valid-emoji-p): New predicates.
(outline--make-button, outline-minor-mode-buttons): Use them.
2021-11-02 02:52:29 +01:00
Lars Ingebrigtsen
d530f3f9ff Make `C-h b' indentation more regular (and avoid continuation lines)
* lisp/help.el (help--describe-command): Don't do any indentation.
(describe-map): Store data about each section.
(describe-map--align-section): New function to do indentation on a
per-block basis.
(describe-map--fill-columns): Helper function.
2021-11-02 02:36:49 +01:00
Lars Ingebrigtsen
8b74649407 Fix rendering of key translations
* lisp/help.el (help--describe-translation): Make obsolete.
(help--describe-command): Take an optional parameter to output key
translations.
(describe-map): Make optional parameters optional.
2021-11-02 01:07:44 +01:00
Eli Zaretskii
dfc89318ce Improve documentation of 'file-has-changed-p'
* etc/NEWS:
* doc/lispref/files.texi (File Attributes): Improve wording of the
documentation of 'file-has-changed-p'.
2021-11-01 17:09:52 +02:00
Lars Ingebrigtsen
a5d79fcfe8 Don't output prefix keys in `C-h b', and output more data on objects
* lisp/help.el (help--describe-command): Output
[closure/lambda/byte-code] for those types of objects.
(describe-map): Don't output prefix keys.
2021-11-01 16:06:21 +01:00
Michael Albinus
aa90de71a2 Exclude emacs-module-tests.el on emba
* test/infra/gitlab-ci.yml (test-native-comp-speed0):
Exclude emacs-module-tests.el.
2021-11-01 16:00:06 +01:00
Lars Ingebrigtsen
8c215fd4c9 Add buttons to definition in help--describe-command
* lisp/help-mode.el (help-make-xrefs): Don't add buttons to
keymaps, because they're pre-buttonized.
* lisp/help.el (help--describe-command): Make buttons out of the
definitions.
2021-11-01 15:42:30 +01:00
Lars Ingebrigtsen
81f12bb777 Tag up last NEWS change 2021-11-01 14:53:35 +01:00
Gregory Heytings
daea9b3b44 Read mailcaps again only when necessary
* doc/lispref/files.texi (File Attributes): Document it.

* lisp/files.el (file-has-changed-p): New function.
(file-has-changed-p--hash-table): Internal variable used by the
new function (bug#51523).
* lisp/emacs-lisp/shortdoc.el (file): Mention it.

* lisp/net/mailcap.el (mailcap-parse-mailcaps): Read mailcaps again
only when at least one of the mailcap files has changed.  Fixes
bug#51523.
2021-11-01 14:51:57 +01:00
Glenn Morris
453d104602 ; Auto-commit of loaddefs files. 2021-11-01 06:30:19 -07:00
Eli Zaretskii
1b30b4dbc0 ; * lisp/faces.el (help-key-binding): Comment on recent change. 2021-11-01 15:04:53 +02:00
Michael Albinus
ffc2411a97 Merge from origin/emacs-28
84cd95e04c Fix bug#51369
2021-11-01 13:23:33 +01:00
Michael Albinus
84cd95e04c Fix bug#51369
* test/lisp/net/dbus-tests.el (dbus-test04-register-method): Skip on hydra.
2021-11-01 13:22:28 +01:00
Michael Albinus
8b861b07cf Merge from origin/emacs-28
ba4daf2214 Adapt arguments of `tramp-make-tramp-file-name'
a34466731b Fix typo in describe-map-tree doc string
2021-11-01 12:32:06 +01:00
Michael Albinus
ba4daf2214 Adapt arguments of `tramp-make-tramp-file-name'
* lisp/net/tramp-gvfs.el (tramp-gvfs-handler-mounted-unmounted):
* lisp/url/url-tramp.el (url-tramp-convert-url-to-tramp):
Use `make-tramp-file-name'.

* lisp/obsolete/rcompile.el (remote-compile): Pacify byte-compiler.
2021-11-01 12:29:22 +01:00
Lars Ingebrigtsen
567fa8d7c0 Further xref fix-ups after keymap help changes
* lisp/help-mode.el (help-make-xrefs): Get continuation lines right.
2021-11-01 04:16:51 +01:00
Lars Ingebrigtsen
eeb09ff41b Fix infloop in help-make-xrefs in certain keymaps
* lisp/help-mode.el (help-make-xrefs): Adjust xref symbol finding
after changes to how keymaps are output.
2021-11-01 04:02:16 +01:00
Lars Ingebrigtsen
7a46461950 Make xref symbol marking work again after describe-keymap changes
* lisp/help-mode.el (help-make-xrefs): Adjust xref symbol finding
after changes to how keymaps are output.
2021-11-01 03:57:37 +01:00
Aaron Jensen
6265e9349f * lisp/icomplete.el (icomplete-exhibit): Remove workaround 2021-10-31 22:33:28 -04:00
Lars Ingebrigtsen
5e03dbd335 Fix failing help-fns tests after layout changes in `C-h b' 2021-11-01 03:29:07 +01:00
Lars Ingebrigtsen
0882e98bec Say "Key/Binding" instead of "key/binding" in `C-h b'
* lisp/help.el (describe-map-tree): Capitalize the heading.
2021-11-01 03:26:26 +01:00
Lars Ingebrigtsen
1200ecba27 Don't print empty keymaps in `C-h b'
* lisp/help.el (describe-map-tree): Don't print the heading if the
keymap is empty (bug#22334).  Tweak the look to compress it more
vertically.
2021-11-01 03:18:02 +01:00
Lars Ingebrigtsen
a34466731b Fix typo in describe-map-tree doc string
* lisp/help.el (describe-map-tree): Fix typo in doc string.
2021-11-01 02:43:36 +01:00
Lars Ingebrigtsen
686d85c767 Include the major mode name in the `C-h b' output
* lisp/calc/calc-help.el (calc-describe-bindings): Don't add the
name since it's there now.

* src/keymap.c (Fdescribe_buffer_bindings): Include the major mode
name for symmetry with the minor modes (and because it's easy to
forget).
2021-11-01 01:44:01 +01:00
Lars Ingebrigtsen
c825c82525 Don't make key binding face wider than the norm
* lisp/faces.el (help-key-binding): Don't make the chars wider
than normally, because that makes `C-h b' lining-up logic fail.
2021-11-01 01:35:06 +01:00
Ken Brown
c86a3029ec Merge from origin/emacs-28
6ba4e3b78c Drop support for native compilation on 32-bit Cygwin
7e15ee5bc9 ; * doc/emacs/help.texi (Help Mode): Improve indexing.
2021-10-31 19:36:04 -04:00
Ken Brown
6ba4e3b78c Drop support for native compilation on 32-bit Cygwin
* configure.ac (cygwin32-native-compilation): New option.
[i686-pc-cygwin]: Don't allow native compilation unless that
option is specified.  (Bug#50666)
2021-10-31 19:30:25 -04:00
Lars Ingebrigtsen
96ac51427f Re-fix the new mouse event logic in outline
* lisp/outline.el (outline-show-subtree, outline-hide-subtree):
Really fix the mouse logic.
2021-11-01 00:05:10 +01:00
Lars Ingebrigtsen
940b414cfe Make TAB work on the outline buttons
* lisp/outline.el (outline--insert-close-button)
(outline--insert-open-button): Make TAB work to toggle on the
buttons, too.
2021-10-31 23:56:07 +01:00
Lars Ingebrigtsen
f29ea4418f Clarify describe-bindings code slightly
* lisp/help.el (describe-bindings): Clarify code slightly.
2021-10-31 23:25:12 +01:00
Lars Ingebrigtsen
a21697651e Fix new mouse handling in outline
* lisp/outline.el (outline-show-subtree, outline-hide-subtree):
Don't set point if we have no event.
2021-10-31 23:24:46 +01:00
Lars Ingebrigtsen
57030b90d5 Add buttons to outlining and tweak `C-h b' buffer
* lisp/help.el (describe-bindings-outline): Change default to t.
(describe-bindings): Tweak the look and remove the explanation.

* lisp/outline.el (outline-minor-mode-use-buttons):
(outline-minor-mode-buttons): New user options.
(outline-hide-subtree): Update buttons.
(outline--make-button, outline--make-button-overlay)
(outline--insert-open-button, outline--insert-close-button)
(outline--fix-up-all-buttons): New functions.
2021-10-31 23:13:58 +01:00
Eli Zaretskii
744acbd384 Improve the "Help Mode" section of the Emacs manual
* doc/emacs/help.texi (Help Mode): Reorganize and improve wording
of the recent change.  Add index entries.
2021-10-31 21:39:17 +02:00
Eli Zaretskii
7e15ee5bc9 ; * doc/emacs/help.texi (Help Mode): Improve indexing. 2021-10-31 21:23:34 +02:00
Stefan Kangas
56d3bf6a53 ; * nextstep/templates/Info.plist.in: Prefer HTTPS. 2021-10-31 20:22:20 +01:00
Lars Ingebrigtsen
7cba7d5703 Add mode tagging to previously added help commands
* lisp/help-mode.el (help-goto-previous-page): New command and key
binding.
(help-goto-previous-page): Ditto.
2021-10-31 19:02:46 +01:00
Lars Ingebrigtsen
38751a8585 Add 'n'/'p' key bindings in *Help* buffers
* lisp/help-mode.el (help-goto-previous-page): New command and key
binding.
(help-goto-previous-page): Ditto.
2021-10-31 18:59:49 +01:00
Eli Zaretskii
e8bc3dd1c4 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2021-10-31 18:51:08 +02:00
Eli Zaretskii
0abf01402b Merge from origin/emacs-28
f1c9286 ; * doc/misc/org.org: fix capture context example
af67ce6 Merge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emac...
610680a Fix rendering of title-less <abbr> tags in shr
2ba4ccf ; * lisp/files.el (make-nearby-temp-file): Doc fix.
2021-10-31 18:46:29 +02:00
Eli Zaretskii
3d2728b426 ; Merge from origin/emacs-28
The following commit was skipped:

e170a31 Avoid signaling errors in lookup-key
2021-10-31 18:46:27 +02:00
Eli Zaretskii
3ec6520088 Merge from origin/emacs-28
5e05be5 Fix localized display of date and time in the NS port
2021-10-31 18:46:26 +02:00
Michael Albinus
2ce72d2e6e Adapt emba control files
* test/infra/Dockerfile.emba: Do not generate debug info.

* test/infra/gitlab-ci.yml (variables, default): Revert timeout
back to three hours.
(.job-template): Comment test prints.
(test-all-inotify): Exclude emacs-module-tests.el.
2021-10-31 17:45:39 +01:00
Lars Ingebrigtsen
bd3ca9fc47 Add highlighting of the F2008 keyword "impure"
* lisp/progmodes/f90.el (f90-keywords-re): Highlight F2008 keyword
"impure" (bug#51529).
2021-10-31 17:23:24 +01:00
Eli Zaretskii
a50571950d ; * src/font.c (Ffont_has_char_p): Minor stylistic changes; doc fix. 2021-10-31 18:12:03 +02:00
Lars Ingebrigtsen
b75e79138c Add new function 'font-has-char-p'
* src/font.c (Ffont_has_char_p): New function.
(Ffont_get_glyphs): Link to the new function from the doc string.
2021-10-31 16:58:16 +01:00
Stefan Kangas
788932d9e4 Add test for Bug#51527
* test/src/keymap-tests.el (keymap-lookup-key/menu-non-symbol):
New test.
2021-10-31 16:46:06 +01:00
Hanno Perrey
f1c9286376 ; * doc/misc/org.org: fix capture context example
* doc/misc/org.org (Templates in contexts): Add missing parenthesis to
code example for org-capture template contexts as documented in
docstring.

Copyright-paperwork-exempt: yes (bug#51524).
2021-10-31 16:23:41 +01:00
Eli Zaretskii
af67ce64ed Merge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emacs into emacs-28 2021-10-31 17:20:52 +02:00