[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/objed 5c4ac71 159/166: Improve `objed-define-object` do
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/objed 5c4ac71 159/166: Improve `objed-define-object` docstring |
Date: |
Sun, 29 Dec 2019 08:21:19 -0500 (EST) |
branch: externals/objed
commit 5c4ac71f62185a7059ea5c480369daa3465e7ebb
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Improve `objed-define-object` docstring
---
objed-objects.el | 30 ++++++++++++++++++++----------
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/objed-objects.el b/objed-objects.el
index 06702dd..9e31d2f 100644
--- a/objed-objects.el
+++ b/objed-objects.el
@@ -254,9 +254,15 @@ Usage:
(objed-define-object package name
[:keyword [code-form]...]...)
+
+This macro creates a command named objed-<name>-object. This
+command can be used to activate objed for the defined object and
+is used internally to query for information needed for objed
+commands.
+
PACKAGE is the name of the package the object should be loaded
-for. If nil you are defining a default object and need to add a
-binding in variable `objed-object-map' for the object command.
+for. If non-nil this will defer loading until PACKAGE is
+available.
NAME is a symbol which defines the name which will be used to
refer to this object. ARGS is a list of keyword arguments and
@@ -282,9 +288,13 @@ These keywords can be used instead of :get-obj above. The
value
for each is the code to run which should return the point
position corresponding to the keyword. Point is allword to move
between the keyword expression. The code runs in the same order
-the keywords are provided. It is also possible to use only :beg
-and :end with regular expressions to define an object. See
-`objed--get-regex-object' for details of their format.
+the keywords are provided.
+
+It is also possible to use only :beg and :end with regular
+expressions to define an object. See `objed--get-regex-object'
+for details of their format. If :end is omitted the regexp
+provided by :beg separates the objects on its own. This can be
+used for text objects which don't have an end marker.
:try-next (optional)
@@ -305,11 +315,11 @@ throw an error.
:mode (optional)
-Object defintions which don't use this keyword apply to all
-modes. If given it should be a symbol of a `major-mode'. Any
-keyword definitions used for this object will then override the
-default ones when in this mode. Keywords not used fallback to use
-the general definition.
+Object defintions which use this keyword derive from an already
+existing object with the same NAME. If given it should be a
+symbol of a `major-mode'. Any keyword definitions of the mode
+specific version will override the ones from the non mode
+specific version.
:atp (optional)
- [elpa] externals/objed 70cf23e 145/166: Merge pull request #51 from flatwhatson/fix-company, (continued)
- [elpa] externals/objed 70cf23e 145/166: Merge pull request #51 from flatwhatson/fix-company, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 2a06126 143/166: Add functions to map over objects, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed fea1148 148/166: Fixes #54, identifier movement for symbols with regex chars, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed cc46438 146/166: Syntactic changes, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed fdea65d 151/166: Adding `objed-switch-alist` #57, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed c3cd6ab 150/166: Merge pull request #55 from r-darwish/patch-1, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed e079a76 152/166: Add objed-init-hook #57, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed a5684df 156/166: Add objed-switch-functions (#57), Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 18eb298 161/166: Add objed-define-local-object-keys*, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 878b5eb 154/166: Don't use obsolete var names, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 5c4ac71 159/166: Improve `objed-define-object` docstring,
Clemens Radermacher <=
- [elpa] externals/objed e5648b4 165/166: Ensure minibuffer commands reset even without objed-mode, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed ccc7bc7 164/166: Describe new object binding helpers, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 4a954dc 157/166: Update docstring, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed be54bfa 155/166: Simplify optional dependency loading (fix #56), Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 5e600c6 163/166: Version bump, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 01f0621 166/166: Version bump, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 226fd50 149/166: Update README.asc, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed f55b4c9 160/166: Add key definition helpers for object keys, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed b683880 162/166: Fix init for region object without mark, Clemens Radermacher, 2019/12/29