diff options
| author | Jim Porter | 2024-02-08 11:31:17 -0800 |
|---|---|---|
| committer | Jim Porter | 2024-02-09 17:42:13 -0800 |
| commit | b5b80de49c5a37778945d7a0234090b09acc104f (patch) | |
| tree | b1e14074b97b93732f2993e0875aa91557d0985b /doc/misc | |
| parent | 7a13e705b1aead8f527dfa5407d9f87301b1f252 (diff) | |
| download | emacs-b5b80de49c5a37778945d7a0234090b09acc104f.tar.gz emacs-b5b80de49c5a37778945d7a0234090b09acc104f.zip | |
In Eshell manual, put command index anchors above the item
This makes sure that when navigating to the command's documentation from
the index, it shows the item heading (which lists the supported
arguments).
* doc/misc/eshell.texi (List of Built-ins, Tramp extensions)
(Extra built-in commands): Adjust placement of '@cmindex'.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/eshell.texi | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi index 9e5eea6cb61..3ff8e55ed03 100644 --- a/doc/misc/eshell.texi +++ b/doc/misc/eshell.texi | |||
| @@ -490,16 +490,16 @@ commands}. | |||
| 490 | 490 | ||
| 491 | @table @code | 491 | @table @code |
| 492 | 492 | ||
| 493 | @item . @var{file} [@var{argument}]@dots{} | ||
| 494 | @cmindex . | 493 | @cmindex . |
| 494 | @item . @var{file} [@var{argument}]@dots{} | ||
| 495 | Source an Eshell script named @var{file} in the current environment, | 495 | Source an Eshell script named @var{file} in the current environment, |
| 496 | passing any @var{arguments} to the script (@pxref{Scripts}). This is | 496 | passing any @var{arguments} to the script (@pxref{Scripts}). This is |
| 497 | not to be confused with the command @command{source}, which sources a | 497 | not to be confused with the command @command{source}, which sources a |
| 498 | file in a subshell environment. | 498 | file in a subshell environment. |
| 499 | 499 | ||
| 500 | @cmindex addpath | ||
| 500 | @item addpath | 501 | @item addpath |
| 501 | @itemx addpath [-b] @var{directory}@dots{} | 502 | @itemx addpath [-b] @var{directory}@dots{} |
| 502 | @cmindex addpath | ||
| 503 | Adds each specified @var{directory} to the @code{$PATH} environment | 503 | Adds each specified @var{directory} to the @code{$PATH} environment |
| 504 | variable. By default, this adds the directories to the end of | 504 | variable. By default, this adds the directories to the end of |
| 505 | @code{$PATH}, in the order they were passed on the command line; by | 505 | @code{$PATH}, in the order they were passed on the command line; by |
| @@ -509,30 +509,30 @@ directories to the beginning. | |||
| 509 | With no directories, print the list of directories currently stored in | 509 | With no directories, print the list of directories currently stored in |
| 510 | @code{$PATH}. | 510 | @code{$PATH}. |
| 511 | 511 | ||
| 512 | @cmindex alias | ||
| 512 | @item alias | 513 | @item alias |
| 513 | @itemx alias @var{name} [@var{command}] | 514 | @itemx alias @var{name} [@var{command}] |
| 514 | @cmindex alias | ||
| 515 | Define an alias named @var{name} and expanding to @var{command}, | 515 | Define an alias named @var{name} and expanding to @var{command}, |
| 516 | adding it to the aliases file (@pxref{Aliases}). If @var{command} is | 516 | adding it to the aliases file (@pxref{Aliases}). If @var{command} is |
| 517 | omitted, delete the alias named @var{name}. With no arguments at all, | 517 | omitted, delete the alias named @var{name}. With no arguments at all, |
| 518 | list all the currently-defined aliases. | 518 | list all the currently-defined aliases. |
| 519 | 519 | ||
| 520 | @item basename @var{filename} | ||
| 521 | @cmindex basename | 520 | @cmindex basename |
| 521 | @item basename @var{filename} | ||
| 522 | Return @var{filename} without its directory. | 522 | Return @var{filename} without its directory. |
| 523 | 523 | ||
| 524 | @item cat @var{file}@dots{} | ||
| 525 | @cmindex cat | 524 | @cmindex cat |
| 525 | @item cat @var{file}@dots{} | ||
| 526 | Concatenate the contents of @var{file}s to standard output. If in a | 526 | Concatenate the contents of @var{file}s to standard output. If in a |
| 527 | pipeline, or if any of the files is not a regular file, directory, or | 527 | pipeline, or if any of the files is not a regular file, directory, or |
| 528 | symlink, then this command reverts to the system's definition of | 528 | symlink, then this command reverts to the system's definition of |
| 529 | @command{cat}. | 529 | @command{cat}. |
| 530 | 530 | ||
| 531 | @cmindex cd | ||
| 531 | @item cd | 532 | @item cd |
| 532 | @itemx cd @var{directory} | 533 | @itemx cd @var{directory} |
| 533 | @itemx cd -[@var{n}] | 534 | @itemx cd -[@var{n}] |
| 534 | @itemx cd =[@var{regexp}] | 535 | @itemx cd =[@var{regexp}] |
| 535 | @cmindex cd | ||
| 536 | Change the current working directory. This command can take several | 536 | Change the current working directory. This command can take several |
| 537 | forms: | 537 | forms: |
| 538 | 538 | ||
| @@ -567,20 +567,20 @@ will report the directory it changes to. If | |||
| 567 | @code{eshell-list-files-after-cd} is non-@code{nil}, then @command{ls} | 567 | @code{eshell-list-files-after-cd} is non-@code{nil}, then @command{ls} |
| 568 | is called with any remaining arguments after changing directories. | 568 | is called with any remaining arguments after changing directories. |
| 569 | 569 | ||
| 570 | @item clear [@var{scrollback}] | ||
| 571 | @cmindex clear | 570 | @cmindex clear |
| 571 | @item clear [@var{scrollback}] | ||
| 572 | Scrolls the contents of the Eshell window out of sight, leaving a | 572 | Scrolls the contents of the Eshell window out of sight, leaving a |
| 573 | blank window. If @var{scrollback} is non-@code{nil}, the scrollback | 573 | blank window. If @var{scrollback} is non-@code{nil}, the scrollback |
| 574 | contents are cleared instead, as with @command{clear-scrollback}. | 574 | contents are cleared instead, as with @command{clear-scrollback}. |
| 575 | 575 | ||
| 576 | @item clear-scrollback | ||
| 577 | @cmindex clear-scrollback | 576 | @cmindex clear-scrollback |
| 577 | @item clear-scrollback | ||
| 578 | Clear the scrollback contents of the Eshell window. Unlike the | 578 | Clear the scrollback contents of the Eshell window. Unlike the |
| 579 | command @command{clear}, this command deletes content in the Eshell | 579 | command @command{clear}, this command deletes content in the Eshell |
| 580 | buffer. | 580 | buffer. |
| 581 | 581 | ||
| 582 | @item compile [-p | -i] [-m @var{mode-name}] @var{command}@dots{} | ||
| 583 | @cmindex compile | 582 | @cmindex compile |
| 583 | @item compile [-p | -i] [-m @var{mode-name}] @var{command}@dots{} | ||
| 584 | Run an external command, sending its output to a compilation buffer if | 584 | Run an external command, sending its output to a compilation buffer if |
| 585 | the command would output to the screen and is not part of a pipeline | 585 | the command would output to the screen and is not part of a pipeline |
| 586 | or subcommand. | 586 | or subcommand. |
| @@ -598,9 +598,9 @@ you have a grep-like command on your system, you might define an alias | |||
| 598 | for it like so: @samp{alias mygrep 'compile --mode=grep-mode -- mygrep | 598 | for it like so: @samp{alias mygrep 'compile --mode=grep-mode -- mygrep |
| 599 | $*'}. | 599 | $*'}. |
| 600 | 600 | ||
| 601 | @cmindex cp | ||
| 601 | @item cp [@var{option}@dots{}] @var{source} @var{dest} | 602 | @item cp [@var{option}@dots{}] @var{source} @var{dest} |
| 602 | @item cp [@var{option}@dots{}] @var{source}@dots{} @var{directory} | 603 | @item cp [@var{option}@dots{}] @var{source}@dots{} @var{directory} |
| 603 | @cmindex cp | ||
| 604 | Copy the file @var{source} to @var{dest} or @var{source} into | 604 | Copy the file @var{source} to @var{dest} or @var{source} into |
| 605 | @var{directory}. | 605 | @var{directory}. |
| 606 | 606 | ||
| @@ -644,14 +644,14 @@ Print the name of each file before copying it. | |||
| 644 | 644 | ||
| 645 | @end table | 645 | @end table |
| 646 | 646 | ||
| 647 | @item date [@var{specified-time} [@var{zone}]] | ||
| 648 | @cmindex date | 647 | @cmindex date |
| 648 | @item date [@var{specified-time} [@var{zone}]] | ||
| 649 | Print the current local time as a human-readable string. This command | 649 | Print the current local time as a human-readable string. This command |
| 650 | is an alias to the Emacs Lisp function @code{current-time-string} | 650 | is an alias to the Emacs Lisp function @code{current-time-string} |
| 651 | (@pxref{Time of Day,,, elisp, GNU Emacs Lisp Reference Manual}). | 651 | (@pxref{Time of Day,,, elisp, GNU Emacs Lisp Reference Manual}). |
| 652 | 652 | ||
| 653 | @item diff [@var{option}]@dots{} @var{old} @var{new} | ||
| 654 | @cmindex diff | 653 | @cmindex diff |
| 654 | @item diff [@var{option}]@dots{} @var{old} @var{new} | ||
| 655 | Compare the files @var{old} and @var{new} using Emacs's internal | 655 | Compare the files @var{old} and @var{new} using Emacs's internal |
| 656 | @code{diff} (not to be confused with @code{ediff}). @xref{Comparing | 656 | @code{diff} (not to be confused with @code{ediff}). @xref{Comparing |
| 657 | Files, , , emacs, The GNU Emacs Manual}. | 657 | Files, , , emacs, The GNU Emacs Manual}. |
| @@ -661,18 +661,18 @@ If @code{eshell-plain-diff-behavior} is non-@code{nil}, then this | |||
| 661 | command does not use Emacs's internal @code{diff}. This is the same | 661 | command does not use Emacs's internal @code{diff}. This is the same |
| 662 | as using @samp{alias diff '*diff $@@*'}. | 662 | as using @samp{alias diff '*diff $@@*'}. |
| 663 | 663 | ||
| 664 | @item dirname @var{filename} | ||
| 665 | @cmindex dirname | 664 | @cmindex dirname |
| 665 | @item dirname @var{filename} | ||
| 666 | Return the directory component of @var{filename}. | 666 | Return the directory component of @var{filename}. |
| 667 | 667 | ||
| 668 | @item dirs | ||
| 669 | @cmindex dirs | 668 | @cmindex dirs |
| 669 | @item dirs | ||
| 670 | Prints the directory stack. Directories can be added or removed from | 670 | Prints the directory stack. Directories can be added or removed from |
| 671 | the stack using the commands @command{pushd} and @command{popd}, | 671 | the stack using the commands @command{pushd} and @command{popd}, |
| 672 | respectively. | 672 | respectively. |
| 673 | 673 | ||
| 674 | @item du [@var{option}]@dots{} @var{file}@dots{} | ||
| 675 | @cmindex du | 674 | @cmindex du |
| 675 | @item du [@var{option}]@dots{} @var{file}@dots{} | ||
| 676 | Summarize disk usage for each file, recursing into directories. | 676 | Summarize disk usage for each file, recursing into directories. |
| 677 | 677 | ||
| 678 | @command{du} accepts the following options: | 678 | @command{du} accepts the following options: |
| @@ -720,8 +720,8 @@ Skip any directories that reside on different filesystems. | |||
| 720 | 720 | ||
| 721 | @end table | 721 | @end table |
| 722 | 722 | ||
| 723 | @item echo [-n | -N] [@var{arg}]@dots{} | ||
| 724 | @cmindex echo | 723 | @cmindex echo |
| 724 | @item echo [-n | -N] [@var{arg}]@dots{} | ||
| 725 | Prints the value of each @var{arg}. By default, this prints in a | 725 | Prints the value of each @var{arg}. By default, this prints in a |
| 726 | Lisp-friendly fashion (so that the value is useful to a Lisp command | 726 | Lisp-friendly fashion (so that the value is useful to a Lisp command |
| 727 | using the result of @command{echo} as an argument). If a single | 727 | using the result of @command{echo} as an argument). If a single |
| @@ -739,16 +739,16 @@ using @code{-n} to disable the trailing newline (the default behavior) | |||
| 739 | or @code{-N} to enable it (the default when | 739 | or @code{-N} to enable it (the default when |
| 740 | @code{eshell-plain-echo-behavior} is non-@code{nil}). | 740 | @code{eshell-plain-echo-behavior} is non-@code{nil}). |
| 741 | 741 | ||
| 742 | @item env [@var{var}=@var{value}]@dots{} [@var{command}]@dots{} | ||
| 743 | @cmindex env | 742 | @cmindex env |
| 743 | @item env [@var{var}=@var{value}]@dots{} [@var{command}]@dots{} | ||
| 744 | With no arguments, print the current environment variables. If you | 744 | With no arguments, print the current environment variables. If you |
| 745 | pass arguments to this command, then @command{env} will execute the | 745 | pass arguments to this command, then @command{env} will execute the |
| 746 | arguments as a command. If you pass any initial arguments of the form | 746 | arguments as a command. If you pass any initial arguments of the form |
| 747 | @samp{@var{var}=@var{value}}, @command{env} will first set @var{var} | 747 | @samp{@var{var}=@var{value}}, @command{env} will first set @var{var} |
| 748 | to @var{value} before running the command. | 748 | to @var{value} before running the command. |
| 749 | 749 | ||
| 750 | @item eshell-debug [error | form | process]@dots{} | ||
| 751 | @cmindex eshell-debug | 750 | @cmindex eshell-debug |
| 751 | @item eshell-debug [error | form | process]@dots{} | ||
| 752 | Toggle debugging information for Eshell itself. You can pass this | 752 | Toggle debugging information for Eshell itself. You can pass this |
| 753 | command one or more of the following arguments: | 753 | command one or more of the following arguments: |
| 754 | 754 | ||
| @@ -768,30 +768,30 @@ buffer @code{*eshell last cmd*}; or | |||
| 768 | 768 | ||
| 769 | @end itemize | 769 | @end itemize |
| 770 | 770 | ||
| 771 | @item exit | ||
| 772 | @cmindex exit | 771 | @cmindex exit |
| 772 | @item exit | ||
| 773 | @vindex eshell-kill-on-exit | 773 | @vindex eshell-kill-on-exit |
| 774 | Exit Eshell and save the history. By default, this command kills the | 774 | Exit Eshell and save the history. By default, this command kills the |
| 775 | Eshell buffer, but if @code{eshell-kill-on-exit} is @code{nil}, then | 775 | Eshell buffer, but if @code{eshell-kill-on-exit} is @code{nil}, then |
| 776 | the buffer is merely buried instead. | 776 | the buffer is merely buried instead. |
| 777 | 777 | ||
| 778 | @item export [@var{name}=@var{value}]@dots{} | ||
| 779 | @cmindex export | 778 | @cmindex export |
| 779 | @item export [@var{name}=@var{value}]@dots{} | ||
| 780 | Set environment variables using input like Bash's @command{export}, as | 780 | Set environment variables using input like Bash's @command{export}, as |
| 781 | in @samp{export @var{var1}=@var{val1} @var{var2}=@var{val2} @dots{}}. | 781 | in @samp{export @var{var1}=@var{val1} @var{var2}=@var{val2} @dots{}}. |
| 782 | 782 | ||
| 783 | @item grep [@var{arg}]@dots{} | ||
| 784 | @cmindex grep | 783 | @cmindex grep |
| 785 | @itemx agrep [@var{arg}]@dots{} | 784 | @item grep [@var{arg}]@dots{} |
| 786 | @cmindex agrep | 785 | @cmindex agrep |
| 787 | @itemx egrep [@var{arg}]@dots{} | 786 | @itemx agrep [@var{arg}]@dots{} |
| 788 | @cmindex egrep | 787 | @cmindex egrep |
| 789 | @itemx fgrep [@var{arg}]@dots{} | 788 | @itemx egrep [@var{arg}]@dots{} |
| 790 | @cmindex fgrep | 789 | @cmindex fgrep |
| 791 | @itemx rgrep [@var{arg}]@dots{} | 790 | @itemx fgrep [@var{arg}]@dots{} |
| 792 | @cmindex rgrep | 791 | @cmindex rgrep |
| 793 | @itemx glimpse [@var{arg}]@dots{} | 792 | @itemx rgrep [@var{arg}]@dots{} |
| 794 | @cmindex glimpse | 793 | @cmindex glimpse |
| 794 | @itemx glimpse [@var{arg}]@dots{} | ||
| 795 | The @command{grep} commands are compatible with GNU @command{grep}, | 795 | The @command{grep} commands are compatible with GNU @command{grep}, |
| 796 | but open a compilation buffer in @code{grep-mode} instead. | 796 | but open a compilation buffer in @code{grep-mode} instead. |
| 797 | @xref{Grep Searching, , , emacs, The GNU Emacs Manual}. | 797 | @xref{Grep Searching, , , emacs, The GNU Emacs Manual}. |
| @@ -803,9 +803,9 @@ to Eshell's buffer. This is the same as using @samp{alias grep '*grep | |||
| 803 | $@@*'}, though this setting applies to all of the built-in commands | 803 | $@@*'}, though this setting applies to all of the built-in commands |
| 804 | for which you would need to create a separate alias. | 804 | for which you would need to create a separate alias. |
| 805 | 805 | ||
| 806 | @cmindex history | ||
| 806 | @item history [@var{n}] | 807 | @item history [@var{n}] |
| 807 | @itemx history [-arw] [@var{filename}] | 808 | @itemx history [-arw] [@var{filename}] |
| 808 | @cmindex history | ||
| 809 | Prints Eshell's input history. With a numeric argument @var{n}, this | 809 | Prints Eshell's input history. With a numeric argument @var{n}, this |
| 810 | command prints the @var{n} most recent items in the history. | 810 | command prints the @var{n} most recent items in the history. |
| 811 | Alternately, you can specify the following options: | 811 | Alternately, you can specify the following options: |
| @@ -824,8 +824,8 @@ Write the current history list to the history file. | |||
| 824 | 824 | ||
| 825 | @end table | 825 | @end table |
| 826 | 826 | ||
| 827 | @item info [@var{manual} [@var{item}]@dots{}] | ||
| 828 | @cmindex info | 827 | @cmindex info |
| 828 | @item info [@var{manual} [@var{item}]@dots{}] | ||
| 829 | Browse the available Info documentation. With no arguments, browse | 829 | Browse the available Info documentation. With no arguments, browse |
| 830 | the top-level menu. Otherwise, show the manual for @var{manual}, | 830 | the top-level menu. Otherwise, show the manual for @var{manual}, |
| 831 | selecting the menu entry for @var{item}. | 831 | selecting the menu entry for @var{item}. |
| @@ -834,25 +834,25 @@ This command is the same as the external @command{info} command, but | |||
| 834 | uses Emacs's internal Info reader. @xref{Misc Help, , , emacs, The | 834 | uses Emacs's internal Info reader. @xref{Misc Help, , , emacs, The |
| 835 | GNU Emacs Manual}. | 835 | GNU Emacs Manual}. |
| 836 | 836 | ||
| 837 | @item jobs | ||
| 838 | @cmindex jobs | 837 | @cmindex jobs |
| 838 | @item jobs | ||
| 839 | List subprocesses of the Emacs process, if any, using the function | 839 | List subprocesses of the Emacs process, if any, using the function |
| 840 | @code{list-processes}. | 840 | @code{list-processes}. |
| 841 | 841 | ||
| 842 | @item kill [-@var{signal}] [@var{pid} | @var{process}] | ||
| 843 | @cmindex kill | 842 | @cmindex kill |
| 843 | @item kill [-@var{signal}] [@var{pid} | @var{process}] | ||
| 844 | Kill processes. Takes a PID or a process object and an optional | 844 | Kill processes. Takes a PID or a process object and an optional |
| 845 | @var{signal} specifier which can either be a number or a signal name. | 845 | @var{signal} specifier which can either be a number or a signal name. |
| 846 | 846 | ||
| 847 | @item listify [@var{arg}]@dots{} | ||
| 848 | @cmindex listify | 847 | @cmindex listify |
| 848 | @item listify [@var{arg}]@dots{} | ||
| 849 | Return the arguments as a single list. With a single argument, return | 849 | Return the arguments as a single list. With a single argument, return |
| 850 | it as-is if it's already a list, or otherwise wrap it in a list. With | 850 | it as-is if it's already a list, or otherwise wrap it in a list. With |
| 851 | multiple arguments, return a list of all of them. | 851 | multiple arguments, return a list of all of them. |
| 852 | 852 | ||
| 853 | @cmindex ln | ||
| 853 | @item ln [@var{option}]@dots{} @var{target} [@var{link-name}] | 854 | @item ln [@var{option}]@dots{} @var{target} [@var{link-name}] |
| 854 | @itemx ln [@var{option}]@dots{} @var{target}@dots{} @var{directory} | 855 | @itemx ln [@var{option}]@dots{} @var{target}@dots{} @var{directory} |
| 855 | @cmindex ln | ||
| 856 | Create a link to the specified @var{target} named @var{link-name} or | 856 | Create a link to the specified @var{target} named @var{link-name} or |
| 857 | create links to multiple @var{targets} in @var{directory}. | 857 | create links to multiple @var{targets} in @var{directory}. |
| 858 | 858 | ||
| @@ -886,8 +886,8 @@ Print the name of each file before linking it. | |||
| 886 | 886 | ||
| 887 | @end table | 887 | @end table |
| 888 | 888 | ||
| 889 | @item locate @var{arg}@dots{} | ||
| 890 | @cmindex locate | 889 | @cmindex locate |
| 890 | @item locate @var{arg}@dots{} | ||
| 891 | Alias to Emacs's @code{locate} function, which simply runs the external | 891 | Alias to Emacs's @code{locate} function, which simply runs the external |
| 892 | @command{locate} command and parses the results. | 892 | @command{locate} command and parses the results. |
| 893 | @xref{Dired and Find, , , emacs, The GNU Emacs Manual}. | 893 | @xref{Dired and Find, , , emacs, The GNU Emacs Manual}. |
| @@ -897,8 +897,8 @@ If @code{eshell-plain-locate-behavior} is non-@code{nil}, then Emacs's | |||
| 897 | internal @code{locate} is not used. This is the same as using | 897 | internal @code{locate} is not used. This is the same as using |
| 898 | @samp{alias locate '*locate $@@*'}. | 898 | @samp{alias locate '*locate $@@*'}. |
| 899 | 899 | ||
| 900 | @item ls [@var{option}]@dots{} [@var{file}]@dots{} | ||
| 901 | @cmindex ls | 900 | @cmindex ls |
| 901 | @item ls [@var{option}]@dots{} [@var{file}]@dots{} | ||
| 902 | List information about each @var{file}, including the contents of any | 902 | List information about each @var{file}, including the contents of any |
| 903 | specified directories. If @var{file} is unspecified, list the | 903 | specified directories. If @var{file} is unspecified, list the |
| 904 | contents of the current directory. | 904 | contents of the current directory. |
| @@ -999,25 +999,25 @@ List one file per line. | |||
| 999 | 999 | ||
| 1000 | @end table | 1000 | @end table |
| 1001 | 1001 | ||
| 1002 | @item make [@var{arg}]@dots{} | ||
| 1003 | @cmindex make | 1002 | @cmindex make |
| 1003 | @item make [@var{arg}]@dots{} | ||
| 1004 | Run @command{make} through @code{compile} when run asynchronously | 1004 | Run @command{make} through @code{compile} when run asynchronously |
| 1005 | (e.g., @samp{make &}). @xref{Compilation, , , emacs, The GNU Emacs | 1005 | (e.g., @samp{make &}). @xref{Compilation, , , emacs, The GNU Emacs |
| 1006 | Manual}. Otherwise call the external @command{make} command. | 1006 | Manual}. Otherwise call the external @command{make} command. |
| 1007 | 1007 | ||
| 1008 | @item man [@var{arg}]@dots{} | ||
| 1009 | @cmindex man | 1008 | @cmindex man |
| 1009 | @item man [@var{arg}]@dots{} | ||
| 1010 | Display Man pages using the Emacs @code{man} command. | 1010 | Display Man pages using the Emacs @code{man} command. |
| 1011 | @xref{Man Page, , , emacs, The GNU Emacs Manual}. | 1011 | @xref{Man Page, , , emacs, The GNU Emacs Manual}. |
| 1012 | 1012 | ||
| 1013 | @item mkdir [-p] @var{directory}@dots{} | ||
| 1014 | @cmindex mkdir | 1013 | @cmindex mkdir |
| 1014 | @item mkdir [-p] @var{directory}@dots{} | ||
| 1015 | Make new directories. With @code{-p} or @code{--parents}, | 1015 | Make new directories. With @code{-p} or @code{--parents}, |
| 1016 | automatically make any necessary parent directories as well. | 1016 | automatically make any necessary parent directories as well. |
| 1017 | 1017 | ||
| 1018 | @cmindex mv | ||
| 1018 | @item mv [@var{option}]@dots{} @var{source} @var{dest} | 1019 | @item mv [@var{option}]@dots{} @var{source} @var{dest} |
| 1019 | @itemx mv [@var{option}]@dots{} @var{source}@dots{} @var{directory} | 1020 | @itemx mv [@var{option}]@dots{} @var{source}@dots{} @var{directory} |
| 1020 | @cmindex mv | ||
| 1021 | Rename the file @var{source} to @var{dest} or move @var{source} into | 1021 | Rename the file @var{source} to @var{dest} or move @var{source} into |
| 1022 | @var{directory}. | 1022 | @var{directory}. |
| 1023 | 1023 | ||
| @@ -1048,14 +1048,14 @@ Print the name of each item before moving it. | |||
| 1048 | 1048 | ||
| 1049 | @end table | 1049 | @end table |
| 1050 | 1050 | ||
| 1051 | @item occur @var{regexp} [@var{nlines}] | ||
| 1052 | @cmindex occur | 1051 | @cmindex occur |
| 1052 | @item occur @var{regexp} [@var{nlines}] | ||
| 1053 | Alias to Emacs's @code{occur}. | 1053 | Alias to Emacs's @code{occur}. |
| 1054 | @xref{Other Repeating Search, , , emacs, The GNU Emacs Manual}. | 1054 | @xref{Other Repeating Search, , , emacs, The GNU Emacs Manual}. |
| 1055 | 1055 | ||
| 1056 | @cmindex popd | ||
| 1056 | @item popd | 1057 | @item popd |
| 1057 | @item popd +@var{n} | 1058 | @item popd +@var{n} |
| 1058 | @cmindex popd | ||
| 1059 | Pop a directory from the directory stack and switch to a another place | 1059 | Pop a directory from the directory stack and switch to a another place |
| 1060 | in the stack. This command can take the following forms: | 1060 | in the stack. This command can take the following forms: |
| 1061 | 1061 | ||
| @@ -1071,14 +1071,14 @@ the @var{nth} directory in the stack (counting from zero). | |||
| 1071 | 1071 | ||
| 1072 | @end table | 1072 | @end table |
| 1073 | 1073 | ||
| 1074 | @item printnl [@var{arg}]@dots{} | ||
| 1075 | @cmindex printnl | 1074 | @cmindex printnl |
| 1075 | @item printnl [@var{arg}]@dots{} | ||
| 1076 | Print all the @var{arg}s separated by newlines. | 1076 | Print all the @var{arg}s separated by newlines. |
| 1077 | 1077 | ||
| 1078 | @cmindex pushd | ||
| 1078 | @item pushd | 1079 | @item pushd |
| 1079 | @itemx pushd @var{directory} | 1080 | @itemx pushd @var{directory} |
| 1080 | @itemx pushd +@var{n} | 1081 | @itemx pushd +@var{n} |
| 1081 | @cmindex pushd | ||
| 1082 | Push the current directory onto the directory stack, then change to | 1082 | Push the current directory onto the directory stack, then change to |
| 1083 | another directory. This command can take the following forms: | 1083 | another directory. This command can take the following forms: |
| 1084 | 1084 | ||
| @@ -1107,12 +1107,12 @@ non-@code{nil}, then @samp{pushd +@var{n}} will instead pop the | |||
| 1107 | 1107 | ||
| 1108 | @end table | 1108 | @end table |
| 1109 | 1109 | ||
| 1110 | @item pwd | ||
| 1111 | @cmindex pwd | 1110 | @cmindex pwd |
| 1111 | @item pwd | ||
| 1112 | Prints the current working directory. | 1112 | Prints the current working directory. |
| 1113 | 1113 | ||
| 1114 | @item rm [@var{option}]@dots{} @var{item}@dots{} | ||
| 1115 | @cmindex rm | 1114 | @cmindex rm |
| 1115 | @item rm [@var{option}]@dots{} @var{item}@dots{} | ||
| 1116 | Removes files, buffers, processes, or Emacs Lisp symbols, depending on | 1116 | Removes files, buffers, processes, or Emacs Lisp symbols, depending on |
| 1117 | the type of each @var{item}. | 1117 | the type of each @var{item}. |
| 1118 | 1118 | ||
| @@ -1146,59 +1146,59 @@ Print the name of each item before removing it. | |||
| 1146 | 1146 | ||
| 1147 | @end table | 1147 | @end table |
| 1148 | 1148 | ||
| 1149 | @item rmdir @var{directory}@dots{} | ||
| 1150 | @cmindex rmdir | 1149 | @cmindex rmdir |
| 1150 | @item rmdir @var{directory}@dots{} | ||
| 1151 | Removes directories if they are empty. | 1151 | Removes directories if they are empty. |
| 1152 | 1152 | ||
| 1153 | @item set [@var{var} @var{value}]@dots{} | ||
| 1154 | @cmindex set | 1153 | @cmindex set |
| 1154 | @item set [@var{var} @var{value}]@dots{} | ||
| 1155 | Set variable values, using the function @code{set} like a command | 1155 | Set variable values, using the function @code{set} like a command |
| 1156 | (@pxref{Setting Variables,,, elisp, GNU Emacs Lisp Reference Manual}). | 1156 | (@pxref{Setting Variables,,, elisp, GNU Emacs Lisp Reference Manual}). |
| 1157 | The value of @var{var} can be a symbol, in which case it refers to a | 1157 | The value of @var{var} can be a symbol, in which case it refers to a |
| 1158 | Lisp variable, or a string, referring to an environment variable | 1158 | Lisp variable, or a string, referring to an environment variable |
| 1159 | (@pxref{Arguments}). | 1159 | (@pxref{Arguments}). |
| 1160 | 1160 | ||
| 1161 | @item setq [@var{symbol} @var{value}]@dots{} | ||
| 1162 | @cmindex setq | 1161 | @cmindex setq |
| 1162 | @item setq [@var{symbol} @var{value}]@dots{} | ||
| 1163 | Set variable values, using the function @code{setq} like a command | 1163 | Set variable values, using the function @code{setq} like a command |
| 1164 | (@pxref{Setting Variables,,, elisp, GNU Emacs Lisp Reference Manual}). | 1164 | (@pxref{Setting Variables,,, elisp, GNU Emacs Lisp Reference Manual}). |
| 1165 | 1165 | ||
| 1166 | @item source @var{file} [@var{argument}]@dots{} | ||
| 1167 | @cmindex source | 1166 | @cmindex source |
| 1167 | @item source @var{file} [@var{argument}]@dots{} | ||
| 1168 | Source an Eshell script named @var{file} in a subshell environment, | 1168 | Source an Eshell script named @var{file} in a subshell environment, |
| 1169 | passing any @var{argument}s to the script (@pxref{Scripts}). This is | 1169 | passing any @var{argument}s to the script (@pxref{Scripts}). This is |
| 1170 | not to be confused with the command @command{.}, which sources a file | 1170 | not to be confused with the command @command{.}, which sources a file |
| 1171 | in the current environment. | 1171 | in the current environment. |
| 1172 | 1172 | ||
| 1173 | @item time @var{command}@dots{} | ||
| 1174 | @cmindex time | 1173 | @cmindex time |
| 1174 | @item time @var{command}@dots{} | ||
| 1175 | Show the time elapsed during the execution of @var{command}. | 1175 | Show the time elapsed during the execution of @var{command}. |
| 1176 | 1176 | ||
| 1177 | @cmindex umask | ||
| 1177 | @item umask [-S] | 1178 | @item umask [-S] |
| 1178 | @itemx umask @var{mode} | 1179 | @itemx umask @var{mode} |
| 1179 | @cmindex umask | ||
| 1180 | View the default file permissions for newly created files and | 1180 | View the default file permissions for newly created files and |
| 1181 | directories. If you pass @code{-S} or @code{--symbolic}, view the | 1181 | directories. If you pass @code{-S} or @code{--symbolic}, view the |
| 1182 | mode symbolically. With @var{mode}, set the default permissions to | 1182 | mode symbolically. With @var{mode}, set the default permissions to |
| 1183 | this value. | 1183 | this value. |
| 1184 | 1184 | ||
| 1185 | @item unset [@var{var}]@dots{} | ||
| 1186 | @cmindex unset | 1185 | @cmindex unset |
| 1186 | @item unset [@var{var}]@dots{} | ||
| 1187 | Unset one or more variables. As with @command{set}, the value of | 1187 | Unset one or more variables. As with @command{set}, the value of |
| 1188 | @var{var} can be a symbol, in which case it refers to a Lisp variable, | 1188 | @var{var} can be a symbol, in which case it refers to a Lisp variable, |
| 1189 | or a string, referring to an environment variable. | 1189 | or a string, referring to an environment variable. |
| 1190 | 1190 | ||
| 1191 | @item wait [@var{process}]@dots{} | ||
| 1192 | @cmindex wait | 1191 | @cmindex wait |
| 1192 | @item wait [@var{process}]@dots{} | ||
| 1193 | Wait until each specified @var{process} has exited. | 1193 | Wait until each specified @var{process} has exited. |
| 1194 | 1194 | ||
| 1195 | @item which @var{command}@dots{} | ||
| 1196 | @cmindex which | 1195 | @cmindex which |
| 1196 | @item which @var{command}@dots{} | ||
| 1197 | For each @var{command}, identify what kind of command it is and its | 1197 | For each @var{command}, identify what kind of command it is and its |
| 1198 | location. | 1198 | location. |
| 1199 | 1199 | ||
| 1200 | @item whoami | ||
| 1201 | @cmindex whoami | 1200 | @cmindex whoami |
| 1201 | @item whoami | ||
| 1202 | Print the current user. This Eshell version of @command{whoami} is | 1202 | Print the current user. This Eshell version of @command{whoami} is |
| 1203 | connection-aware, so for remote directories, it will print the user | 1203 | connection-aware, so for remote directories, it will print the user |
| 1204 | associated with that connection. | 1204 | associated with that connection. |
| @@ -2601,17 +2601,17 @@ external commands. To enable it, add @code{eshell-tramp} to | |||
| 2601 | 2601 | ||
| 2602 | @table @code | 2602 | @table @code |
| 2603 | 2603 | ||
| 2604 | @item su [- | -l] [@var{user}] | ||
| 2605 | @cmindex su | 2604 | @cmindex su |
| 2605 | @item su [- | -l] [@var{user}] | ||
| 2606 | Uses TRAMP's @command{su} method (@pxref{Inline methods, , , tramp, | 2606 | Uses TRAMP's @command{su} method (@pxref{Inline methods, , , tramp, |
| 2607 | The Tramp Manual}) to change the current user to @var{user} (or root | 2607 | The Tramp Manual}) to change the current user to @var{user} (or root |
| 2608 | if unspecified). With @code{-}, @code{-l}, or @code{--login}, provide | 2608 | if unspecified). With @code{-}, @code{-l}, or @code{--login}, provide |
| 2609 | a login environment. | 2609 | a login environment. |
| 2610 | 2610 | ||
| 2611 | @item sudo [-u @var{user}] [-s | @var{command}@dots{}] | ||
| 2612 | @cmindex sudo | 2611 | @cmindex sudo |
| 2613 | @itemx doas [-u @var{user}] [-s | @var{command}@dots{}] | 2612 | @item sudo [-u @var{user}] [-s | @var{command}@dots{}] |
| 2614 | @cmindex doas | 2613 | @cmindex doas |
| 2614 | @itemx doas [-u @var{user}] [-s | @var{command}@dots{}] | ||
| 2615 | Uses TRAMP's @command{sudo} or @command{doas} method (@pxref{Inline | 2615 | Uses TRAMP's @command{sudo} or @command{doas} method (@pxref{Inline |
| 2616 | methods, , , tramp, The Tramp Manual}) to run @var{command} as root | 2616 | methods, , , tramp, The Tramp Manual}) to run @var{command} as root |
| 2617 | via @command{sudo} or @command{doas}. When specifying @code{-u | 2617 | via @command{sudo} or @command{doas}. When specifying @code{-u |
| @@ -2630,59 +2630,59 @@ add @code{eshell-xtra} to @code{eshell-modules-list}. | |||
| 2630 | 2630 | ||
| 2631 | @table @code | 2631 | @table @code |
| 2632 | 2632 | ||
| 2633 | @item count @var{item} @var{seq} [@var{option}]@dots{} | ||
| 2634 | @cmindex count | 2633 | @cmindex count |
| 2634 | @item count @var{item} @var{seq} [@var{option}]@dots{} | ||
| 2635 | A wrapper around the function @code{cl-count} (@pxref{Searching | 2635 | A wrapper around the function @code{cl-count} (@pxref{Searching |
| 2636 | Sequences,,, cl, GNU Emacs Common Lisp Emulation}). This command can | 2636 | Sequences,,, cl, GNU Emacs Common Lisp Emulation}). This command can |
| 2637 | be used for comparing lists of strings. | 2637 | be used for comparing lists of strings. |
| 2638 | 2638 | ||
| 2639 | @item expr @var{str} [@var{separator}] [@var{arg}]@dots{} | ||
| 2640 | @cmindex expr | 2639 | @cmindex expr |
| 2640 | @item expr @var{str} [@var{separator}] [@var{arg}]@dots{} | ||
| 2641 | An implementation of @command{expr} using the Calc package. | 2641 | An implementation of @command{expr} using the Calc package. |
| 2642 | @xref{Top,,, calc, The GNU Emacs Calculator}. | 2642 | @xref{Top,,, calc, The GNU Emacs Calculator}. |
| 2643 | 2643 | ||
| 2644 | @item ff @var{directory} @var{pattern} | ||
| 2645 | @cmindex ff | 2644 | @cmindex ff |
| 2645 | @item ff @var{directory} @var{pattern} | ||
| 2646 | Shorthand for the the function @code{find-name-dired} (@pxref{Dired | 2646 | Shorthand for the the function @code{find-name-dired} (@pxref{Dired |
| 2647 | and Find, , , emacs, The Emacs Editor}). | 2647 | and Find, , , emacs, The Emacs Editor}). |
| 2648 | 2648 | ||
| 2649 | @item gf @var{directory} @var{regexp} | ||
| 2650 | @cmindex gf | 2649 | @cmindex gf |
| 2650 | @item gf @var{directory} @var{regexp} | ||
| 2651 | Shorthand for the the function @code{find-grep-dired} (@pxref{Dired | 2651 | Shorthand for the the function @code{find-grep-dired} (@pxref{Dired |
| 2652 | and Find, , , emacs, The Emacs Editor}). | 2652 | and Find, , , emacs, The Emacs Editor}). |
| 2653 | 2653 | ||
| 2654 | @item intersection @var{list1} @var{list2} [@var{option}]@dots{} | ||
| 2655 | @cmindex intersection | 2654 | @cmindex intersection |
| 2655 | @item intersection @var{list1} @var{list2} [@var{option}]@dots{} | ||
| 2656 | A wrapper around the function @code{cl-intersection} (@pxref{Lists as | 2656 | A wrapper around the function @code{cl-intersection} (@pxref{Lists as |
| 2657 | Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command | 2657 | Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command |
| 2658 | can be used for comparing lists of strings. | 2658 | can be used for comparing lists of strings. |
| 2659 | 2659 | ||
| 2660 | @item mismatch @var{seq1} @var{seq2} [@var{option}]@dots{} | ||
| 2661 | @cmindex mismatch | 2660 | @cmindex mismatch |
| 2661 | @item mismatch @var{seq1} @var{seq2} [@var{option}]@dots{} | ||
| 2662 | A wrapper around the function @code{cl-mismatch} (@pxref{Searching | 2662 | A wrapper around the function @code{cl-mismatch} (@pxref{Searching |
| 2663 | Sequences,,, cl, GNU Emacs Common Lisp Emulation}). This command can | 2663 | Sequences,,, cl, GNU Emacs Common Lisp Emulation}). This command can |
| 2664 | be used for comparing lists of strings. | 2664 | be used for comparing lists of strings. |
| 2665 | 2665 | ||
| 2666 | @item set-difference @var{list1} @var{list2} [@var{option}]@dots{} | ||
| 2667 | @cmindex set-difference | 2666 | @cmindex set-difference |
| 2667 | @item set-difference @var{list1} @var{list2} [@var{option}]@dots{} | ||
| 2668 | A wrapper around the function @code{cl-set-difference} (@pxref{Lists | 2668 | A wrapper around the function @code{cl-set-difference} (@pxref{Lists |
| 2669 | as Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command can be | 2669 | as Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command can be |
| 2670 | used for comparing lists of strings. | 2670 | used for comparing lists of strings. |
| 2671 | 2671 | ||
| 2672 | @item set-exclusive-or @var{list1} @var{list2} [@var{option}]@dots{} | ||
| 2673 | @cmindex set-exclusive-or | 2672 | @cmindex set-exclusive-or |
| 2673 | @item set-exclusive-or @var{list1} @var{list2} [@var{option}]@dots{} | ||
| 2674 | A wrapper around the function @code{cl-set-exclusive-or} (@pxref{Lists | 2674 | A wrapper around the function @code{cl-set-exclusive-or} (@pxref{Lists |
| 2675 | as Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command can be | 2675 | as Sets,,, cl, GNU Emacs Common Lisp Emulation}). This command can be |
| 2676 | used for comparing lists of strings. | 2676 | used for comparing lists of strings. |
| 2677 | 2677 | ||
| 2678 | @item substitute @var{new} @var{old} @var{seq} [@var{option}]@dots{} | ||
| 2679 | @cmindex substitute | 2678 | @cmindex substitute |
| 2679 | @item substitute @var{new} @var{old} @var{seq} [@var{option}]@dots{} | ||
| 2680 | A wrapper around the function @code{cl-substitute} (@pxref{Sequence | 2680 | A wrapper around the function @code{cl-substitute} (@pxref{Sequence |
| 2681 | Functions,,, cl, GNU Emacs Common Lisp Emulation}). This command can | 2681 | Functions,,, cl, GNU Emacs Common Lisp Emulation}). This command can |
| 2682 | be used for comparing lists of strings. | 2682 | be used for comparing lists of strings. |
| 2683 | 2683 | ||
| 2684 | @item union @var{list1} @var{list2} [@var{option}]@dots{} | ||
| 2685 | @cmindex union | 2684 | @cmindex union |
| 2685 | @item union @var{list1} @var{list2} [@var{option}]@dots{} | ||
| 2686 | A wrapper around the function @code{cl-union} (@pxref{Lists as Sets,,, | 2686 | A wrapper around the function @code{cl-union} (@pxref{Lists as Sets,,, |
| 2687 | cl, GNU Emacs Common Lisp Emulation}). This command can be used for | 2687 | cl, GNU Emacs Common Lisp Emulation}). This command can be used for |
| 2688 | comparing lists of strings. | 2688 | comparing lists of strings. |