summaryrefslogtreecommitdiff
path: root/lisp/net/eudc.el
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@fitzsim.org>2022-03-11 17:40:18 -0500
committerThomas Fitzsimmons <fitzsim@fitzsim.org>2022-03-11 17:40:18 -0500
commit190e1fe94bcc1968a1c607093b7e03a2dddaac59 (patch)
tree32b5d066479d771e7017900107dd779341c02267 /lisp/net/eudc.el
parent610d85782bcf71a7821a2019055e7b411e28caec (diff)
downloademacs-190e1fe94bcc1968a1c607093b7e03a2dddaac59.tar.gz
EUDC: Update save-query-as-kill name and docstring
* lisp/net/eudc-vars.el (eudc-server): Fix quoting for checkdoc. (eudc-expansion-save-query-as-kill): Rename from `eudc-expansion-overwrites-query'. Define obsolete variable alias. Update comment and documentation. * lisp/net/eudc.el (eudc-expand-inline): Rename `replace' argument to `save-query-as-kill'. Update argument documentation. * doc/misc/eudc.texi (Inline Query Expansion): Rename `eudc-expand-inline' argument. * etc/NEWS (EUDC): Document `eudc-expansion-overwrites-query' rename to `eudc-expansion-save-query-as-kill'.
Diffstat (limited to 'lisp/net/eudc.el')
-rw-r--r--lisp/net/eudc.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/net/eudc.el b/lisp/net/eudc.el
index 6831c4ffe3d..dbba69d1108 100644
--- a/lisp/net/eudc.el
+++ b/lisp/net/eudc.el
@@ -743,7 +743,7 @@ If none try N - 1 and so forth."
;;;###autoload
-(defun eudc-expand-inline (&optional replace)
+(defun eudc-expand-inline (&optional save-query-as-kill)
"Query the directory server, and expand the query string before point.
The query string consists of the buffer substring from the point back to
the preceding comma, colon or beginning of line.
@@ -751,8 +751,9 @@ The variable `eudc-inline-query-format' controls how to associate the
individual inline query words with directory attribute names.
After querying the server for the given string, the expansion specified by
`eudc-inline-expansion-format' is inserted in the buffer at point.
-If REPLACE is non-nil, then this expansion replaces the name in the buffer.
-`eudc-expansion-overwrites-query' being non-nil inverts the meaning of REPLACE.
+If SAVE-QUERY-AS-KILL is non-nil, then save the pre-expansion
+text to the kill ring. `eudc-expansion-save-query-as-kill' being
+non-nil inverts the meaning of SAVE-QUERY-AS-KILL.
Multiple servers can be tried with the same query until one finds a match,
see `eudc-inline-expansion-servers'."
(interactive)
@@ -769,8 +770,8 @@ see `eudc-inline-expansion-servers'."
(error "No match")
(if (or
- (and replace (not eudc-expansion-overwrites-query))
- (and (not replace) eudc-expansion-overwrites-query))
+ (and save-query-as-kill (not eudc-expansion-save-query-as-kill))
+ (and (not save-query-as-kill) eudc-expansion-save-query-as-kill))
(kill-ring-save beg end))
(cond
((or (= (length response-strings) 1)