diff options
| author | Po Lu | 2022-12-11 09:34:03 +0800 |
|---|---|---|
| committer | Po Lu | 2022-12-11 09:34:03 +0800 |
| commit | 5737c2a3af70bc8d653abdb22922c4dc2a49e878 (patch) | |
| tree | 4e718cb78d35766fb2b7ff7f7cc96fa575db53f6 /doc/misc | |
| parent | 52de8885048daf444bdbdb34c4b3d0318dc6a76c (diff) | |
| parent | 79659416f95ac986812a8b40c1260907b95aaa0b (diff) | |
| download | emacs-5737c2a3af70bc8d653abdb22922c4dc2a49e878.tar.gz emacs-5737c2a3af70bc8d653abdb22922c4dc2a49e878.zip | |
Merge from origin/emacs-29
79659416f95 ; * admin/git-bisect-start: Fix commit hash
a9037aa8e81 ; Fix use-package-ensure-system-package macOS footnote
7d787564c08 Actually improve detection of long lines
118465f6fed ; Improve checkdoc.el commentary section
30e3cb21351 Unset the weight/slant/width in the spec when realizing a...
01154166057 Update to Org 9.6-31-g954a95
26a8644a587 ; tabulated-list.el: Remove duplicate obsolete declaration
29b9aeae32a ; * doc/misc/use-package.texi: Fix misplaced @end group.
3c5a41b2008 ; * doc/lispref/keymaps.texi (Searching Keymaps): Fix a t...
1753da24cd4 Fix infloop in 'shell-resync-dirs' with tcsh
2f1269c3331 ; Fix some minor issues in use-package.texi
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/org.org | 2 | ||||
| -rw-r--r-- | doc/misc/use-package.texi | 36 |
2 files changed, 17 insertions, 21 deletions
diff --git a/doc/misc/org.org b/doc/misc/org.org index 43d85099cff..0b926e3ceed 100644 --- a/doc/misc/org.org +++ b/doc/misc/org.org | |||
| @@ -1401,7 +1401,7 @@ you, configure the option ~org-table-auto-blank-field~. | |||
| 1401 | - {{{kbd(M-x org-table-blank-field)}}} :: | 1401 | - {{{kbd(M-x org-table-blank-field)}}} :: |
| 1402 | 1402 | ||
| 1403 | #+findex: org-table-blank-field | 1403 | #+findex: org-table-blank-field |
| 1404 | Blank the field at point. | 1404 | Blank the current table field or active region. |
| 1405 | 1405 | ||
| 1406 | - {{{kbd(S-TAB)}}} (~org-table-previous-field~) :: | 1406 | - {{{kbd(S-TAB)}}} (~org-table-previous-field~) :: |
| 1407 | 1407 | ||
diff --git a/doc/misc/use-package.texi b/doc/misc/use-package.texi index d3b6ee99003..6447f96c63f 100644 --- a/doc/misc/use-package.texi +++ b/doc/misc/use-package.texi | |||
| @@ -652,12 +652,11 @@ elisp, GNU Emacs Lisp Reference Manual}). Further, this value is fixed at | |||
| 652 | whatever was determined during compilation, to avoid looking up the | 652 | whatever was determined during compilation, to avoid looking up the |
| 653 | same information again on each startup. For example: | 653 | same information again on each startup. For example: |
| 654 | 654 | ||
| 655 | @c FIXME: the below should use shell-command-to-string, surely? | ||
| 656 | @lisp | 655 | @lisp |
| 657 | @group | 656 | @group |
| 658 | (eval-and-compile | 657 | (eval-and-compile |
| 659 | (defun ess-site-load-path () | 658 | (defun ess-site-load-path () |
| 660 | (shell-command "find ~ -path ess/lisp"))) | 659 | (shell-command-to-string "find ~ -path ess/lisp"))) |
| 661 | @end group | 660 | @end group |
| 662 | 661 | ||
| 663 | @group | 662 | @group |
| @@ -739,10 +738,8 @@ function and variable definitions that will: | |||
| 739 | 738 | ||
| 740 | @enumerate | 739 | @enumerate |
| 741 | @item | 740 | @item |
| 742 | @c FIXME: ``within a guard block''? what's that?? | ||
| 743 | Make the byte-compiler happy: it will not complain about functions | 741 | Make the byte-compiler happy: it will not complain about functions |
| 744 | whose definitions are unknown because you have them within a guard | 742 | whose definitions are unknown. |
| 745 | block. | ||
| 746 | 743 | ||
| 747 | @item | 744 | @item |
| 748 | Define functions and variables that will be used in an @code{:if} | 745 | Define functions and variables that will be used in an @code{:if} |
| @@ -1684,9 +1681,9 @@ them directly to the developers of that package manager. | |||
| 1684 | 1681 | ||
| 1685 | Some users might want to byte-compile their init file to make Emacs | 1682 | Some users might want to byte-compile their init file to make Emacs |
| 1686 | startup faster. This is not recommended in most cases, as the | 1683 | startup faster. This is not recommended in most cases, as the |
| 1687 | speed-up is often too small to be worth it, and can lead to confusion | 1684 | speed-up is usually too small to be worth it, and it can lead to |
| 1688 | if the byte-compiled files are out-of-date. If you still want to do | 1685 | confusion if the byte-compiled files are out-of-date. If you still |
| 1689 | it, this chapter explains how to do that. | 1686 | want to do it, this chapter explains how to do that. |
| 1690 | 1687 | ||
| 1691 | @code{use-package} always loads every library that it can while a file | 1688 | @code{use-package} always loads every library that it can while a file |
| 1692 | is being byte-compiled. This helps silence spurious warnings about | 1689 | is being byte-compiled. This helps silence spurious warnings about |
| @@ -1723,9 +1720,8 @@ If you need to silence a missing function warning, you can use | |||
| 1723 | (defun my-ruby-mode-hook () | 1720 | (defun my-ruby-mode-hook () |
| 1724 | (require 'inf-ruby) | 1721 | (require 'inf-ruby) |
| 1725 | (inf-ruby-keys)) | 1722 | (inf-ruby-keys)) |
| 1726 | @end group | ||
| 1727 | |||
| 1728 | (add-hook 'ruby-mode-hook 'my-ruby-mode-hook)) | 1723 | (add-hook 'ruby-mode-hook 'my-ruby-mode-hook)) |
| 1724 | @end group | ||
| 1729 | @end lisp | 1725 | @end lisp |
| 1730 | 1726 | ||
| 1731 | @findex :no-require | 1727 | @findex :no-require |
| @@ -1922,11 +1918,12 @@ be optionally enabled. | |||
| 1922 | @findex :ensure-system-package | 1918 | @findex :ensure-system-package |
| 1923 | The @code{:ensure-system-package} keyword allows you to ensure certain | 1919 | The @code{:ensure-system-package} keyword allows you to ensure certain |
| 1924 | executables are available on your system alongside your package | 1920 | executables are available on your system alongside your package |
| 1925 | declarations.@footnote{On macOS, you will want to make sure | 1921 | declarations.@footnote{On macOS, your @code{exec-path} might be |
| 1926 | @code{exec-path} is cognisant of all binary package names that you | 1922 | different if you are starting Emacs as a GUI app instead of from a |
| 1927 | would like to ensure are installed. The | 1923 | shell. If you find that Emacs on macOS cannot find some executables |
| 1924 | that you know are already installed, you could try the | ||
| 1928 | @uref{https://github.com/purcell/exec-path-from-shell,@samp{exec-path-from-shell}} | 1925 | @uref{https://github.com/purcell/exec-path-from-shell,@samp{exec-path-from-shell}} |
| 1929 | package is often a good way to do this.} | 1926 | package.} |
| 1930 | 1927 | ||
| 1931 | To use this extension, add this immediately after loading | 1928 | To use this extension, add this immediately after loading |
| 1932 | @code{use-package}: | 1929 | @code{use-package}: |
| @@ -1962,7 +1959,7 @@ together with @code{:ensure}. | |||
| 1962 | @end group | 1959 | @end group |
| 1963 | @end lisp | 1960 | @end lisp |
| 1964 | 1961 | ||
| 1965 | For example, on a @code{Debian GNU/Linux} system, this would call | 1962 | For example, on a Debian GNU/Linux system, this would call |
| 1966 | @samp{apt-get install foo}. | 1963 | @samp{apt-get install foo}. |
| 1967 | 1964 | ||
| 1968 | If the package is named differently than the binary, you can use a | 1965 | If the package is named differently than the binary, you can use a |
| @@ -1976,11 +1973,10 @@ cons in the form of @code{(binary . package-name)}. For example: | |||
| 1976 | @end group | 1973 | @end group |
| 1977 | @end lisp | 1974 | @end lisp |
| 1978 | 1975 | ||
| 1979 | On a @code{Debian GNU/Linux} system, this would call @code{apt install | 1976 | On a Debian GNU/Linux system, this would call @code{apt install foo} |
| 1980 | foo} if Emacs could not locate the executable | 1977 | if Emacs could not locate the executable @code{foocmd}.@footnote{For |
| 1981 | @code{foocmd}.@footnote{For manual testing, you could use the | 1978 | manual testing, you could use the @code{executable-find} function, |
| 1982 | @code{executable-find} function, which is what @samp{system-packages} | 1979 | which is what @samp{system-packages} uses internally.} |
| 1983 | uses internally.} | ||
| 1984 | 1980 | ||
| 1985 | @code{:ensure-system-package} can also take a cons where the | 1981 | @code{:ensure-system-package} can also take a cons where the |
| 1986 | @code{cdr} is a string that will get called by | 1982 | @code{cdr} is a string that will get called by |