emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master a68a5fe 2/2: Fix recent Command Modes changes in Elisp manual


From: Basil L. Contovounesios
Subject: master a68a5fe 2/2: Fix recent Command Modes changes in Elisp manual
Date: Wed, 17 Feb 2021 17:55:50 -0500 (EST)

branch: master
commit a68a5fe03a8b11d00ca9a1de2a86caa3d97d4d35
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    Fix recent Command Modes changes in Elisp manual
    
    * doc/lispref/commands.texi (Command Modes): Fix typos and grammar.
    Cross-reference the 'declare' form node.
---
 doc/lispref/commands.texi | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi
index e171c3e..1ad2df9 100644
--- a/doc/lispref/commands.texi
+++ b/doc/lispref/commands.texi
@@ -603,10 +603,11 @@ mode that has editable text, and commands that display 
information
 
 Many other commands, however, are specifically tied to a mode, and
 make no sense outside of that context.  For instance, @code{M-x
-dired-diff} will just signal an error used outside of a dired buffer.
+dired-diff} will just signal an error if used outside of a Dired
+buffer.
 
 Emacs therefore has a mechanism for specifying what mode (or modes) a
-command ``belong'' to:
+command ``belongs'' to:
 
 @lisp
 (defun dired-diff (...)
@@ -634,8 +635,8 @@ commands (if they aren't bound to any keys).
 
 If using this extended @code{interactive} form isn't convenient
 (because the code is supposed to work in older versions of Emacs that
-doesn't support the extended @code{interactive} form), the following
-can be used instead:
+don't support the extended @code{interactive} form), the following
+equivalent declaration (@pxref{Declare Form}) can be used instead:
 
 @lisp
 (declare (modes dired-mode))
@@ -657,10 +658,10 @@ call @code{kill-buffer}.  This command will ``work'' from 
any mode,
 but it is highly unlikely that anybody would actually want to use the
 command outside the context of this special mode.
 
-Many modes have a set of different commands that start that start the
-mode in different ways, (e.g., @code{eww-open-in-new-buffer} and
+Many modes have a set of different commands that start the mode in
+different ways (e.g., @code{eww-open-in-new-buffer} and
 @code{eww-open-file}).  Commands like that should never be tagged as
-mode-specific, as then can be issued by the user from pretty much any
+mode-specific, as they can be issued by the user from pretty much any
 context.
 
 @node Generic Commands



reply via email to

[Prev in Thread] Current Thread [Next in Thread]