emacs-diffs
[Top][All Lists]
Advanced

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

master 92bec37: ; Minor touchups to recent D-Bus changes


From: Basil L. Contovounesios
Subject: master 92bec37: ; Minor touchups to recent D-Bus changes
Date: Sun, 6 Sep 2020 10:51:20 -0400 (EDT)

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

    ; Minor touchups to recent D-Bus changes
    
    * doc/misc/dbus.texi (Receiving Method Calls): Use lowercase @var
    names.
    * lisp/net/dbus.el (dbus-register-method): Don't quote nil in
    docstring.
    (dbus-get-this-registered-property): Simplify double negation.
---
 doc/misc/dbus.texi | 6 +++---
 lisp/net/dbus.el   | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/doc/misc/dbus.texi b/doc/misc/dbus.texi
index c16b7aa..a68cb26 100644
--- a/doc/misc/dbus.texi
+++ b/doc/misc/dbus.texi
@@ -1466,9 +1466,9 @@ If @var{handler} returns a reply message with an empty 
argument list,
 to distinguish it from @code{nil} (the boolean false).
 
 If @var{handler} detects an error, it shall return the list
-@code{(:error @var{ERROR-NAME} @var{ERROR-MESSAGE)}}.
-@var{ERROR-NAME} is a namespaced string which characterizes the error
-type, and @var{ERROR-MESSAGE} is a free text string.  Alternatively,
+@code{(:error @var{error-name} @var{error-message)}}.
+@var{error-name} is a namespaced string which characterizes the error
+type, and @var{error-message} is a free text string.  Alternatively,
 any Emacs signal @code{dbus-error} in @var{handler} raises a D-Bus
 error message with the error name @samp{org.freedesktop.DBus.Error.Failed}.
 
diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el
index 639b766..ad5ff8d 100644
--- a/lisp/net/dbus.el
+++ b/lisp/net/dbus.el
@@ -802,7 +802,7 @@ received.  It must accept the input arguments of METHOD.  
The
 return value of HANDLER is used for composing the returning D-Bus
 message.  If HANDLER returns a reply message with an empty
 argument list, HANDLER must return the symbol `:ignore' in order
-to distinguish it from `nil' (the boolean false).
+to distinguish it from nil (the boolean false).
 
 If HANDLER detects an error, it shall return the list `(:error
 ERROR-NAME ERROR-MESSAGE)'.  ERROR-NAME is a namespaced string
@@ -1459,9 +1459,9 @@ nil is returned."
   "Return PROPERTY entry of `dbus-registered-objects-table'.
 Filter out not matching PATH."
   ;; Remove entries not belonging to this case.
-  (seq-remove
+  (seq-filter
    (lambda (item)
-     (not (string-equal path (nth 2 item))))
+     (string-equal path (nth 2 item)))
    (gethash (list :property bus interface property)
             dbus-registered-objects-table)))
 



reply via email to

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