1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-30 19:53:09 +00:00
Commit Graph

53 Commits

Author SHA1 Message Date
Stefan Monnier
4f91a8160f Don't quote lambda expressions with `quote'. 2011-05-23 14:57:17 -03:00
Michael Albinus
07e52e08b0 * net/dbus.el (dbus-list-activatable-names): Add optional argument BUS. 2011-02-07 09:01:15 +01:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Michael Albinus
5c0b407077 * net/dbus.el (dbus-unregister-service): Complete doc. Fix
call of dbus-error signal.
2011-01-10 12:21:01 +01:00
Michael Albinus
1a27c64e1c * net/dbus.el (dbus-register-property): Use `dont-register' keyword. 2011-01-10 11:53:13 +01:00
Michael Albinus
0a203b6115 * net/dbus.el (dbus-unregister-service): Translate returned
integer into a symbol.
(dbus-register-property): Use `dbus-register-service' to do the
name registration.
2011-01-10 10:46:19 +01:00
Michael Albinus
6388924af0 * net/dbus.el (dbus-register-property): Added optional parameter
dont-register-service.  Updated docstring accordingly.
2011-01-04 11:57:24 +01:00
Glenn Morris
537b04b96a Don't be so lax with spelling.
* lisp/net/dbus.el (dbus-name-owner-changed-handler): Doc fix.

* doc/misc/ediff.texi (Quick Help Commands, Miscellaneous): Spelling fix.
2010-11-02 20:49:04 -07:00
Stefan Monnier
f291fe60fb Use `declare' in defmacros.
* lisp/window.el (save-selected-window):
* lisp/subr.el (with-temp-file, with-temp-message, with-syntax-table):
* lisp/progmodes/python.el (def-python-skeleton):
* lisp/net/dbus.el (dbus-ignore-errors):
* lisp/jka-cmpr-hook.el (with-auto-compression-mode):
* lisp/international/mule.el (with-category-table):
* lisp/emacs-lisp/timer.el (with-timeout):
* lisp/emacs-lisp/lisp-mnt.el (lm-with-file):
* lisp/emacs-lisp/eieio.el (with-slots):
* lisp/emacs-lisp/easymenu.el (easy-menu-define):
* lisp/emacs-lisp/debug.el (debugger-env-macro):
* lisp/emacs-lisp/cl-compat.el (Multiple-value-bind, Multiple-value-setq)
(Multiple-value-call, Multiple-value-prog1):
* lisp/emacs-lisp/cl-seq.el (cl-parsing-keywords, cl-check-key)
(cl-check-test-nokey, cl-check-test, cl-check-match): Move indent and
edebug rule to definition.
* lisp/emacs-lisp/lisp-mode.el (save-selected-window)
(with-current-buffer, combine-after-change-calls)
(with-output-to-string, with-temp-file, with-temp-buffer)
(with-temp-message, with-syntax-table, read-if, eval-after-load)
(dolist, dotimes, when, unless):
* lisp/emacs-lisp/byte-run.el (inline): Remove indent rule, redundant.
2010-08-30 15:03:05 +02:00
Michael Albinus
e73f184c42 * net/dbus.el: Accept UNIX domain sockets as bus address.
(top): Don't initialize `dbus-registered-objects-table' anymore,
this is done in dbusbind,c.
(dbus-check-event): Adapt test for bus.
(dbus-return-values-table, dbus-unregister-service)
(dbus-event-bus-name, dbus-introspect, dbus-register-property):
Adapt doc string.
2010-08-23 15:08:54 +02:00
Juanma Barranquero
b24344ca48 * net/dbus.el (dbus-send-signal): Declare function. 2010-07-04 16:32:00 +02:00
Michael Albinus
b1ce08daa9 * net/dbus.el: Implement signal "PropertiesChanged" (from D-Bus 1.3.1).
(dbus-register-property): New optional argument EMITS-SIGNAL.
(dbus-property-handler): Send signal "PropertiesChanged" if requested.
2010-07-04 11:52:57 +02:00
Juanma Barranquero
35b148ee23 * net/dbus.el: Fix typos and declare function. 2010-06-05 22:36:27 +02:00
Michael Albinus
d4b067837e * net/dbus.el (dbus-introspect, dbus-get-property)
(dbus-set-property, dbus-get-all-properties): Use
`dbus-call-method' when noninteractive.  (Bug#5645)
2010-02-28 11:27:39 +01:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Michael Albinus
31bb373f92 * net/dbus.el (dbus-property-handler): Filter lambda forms out
when responding to "GetAll" properties.
2009-12-12 19:18:33 +00:00
Michael Albinus
c0a3970225 * net/dbus.el (dbus-unregister-service): New defun.
(dbus-register-property): Register the handlers for
"org.freedesktop.DBus.Properties" for SERVICE.
(dbus-property-handler): Fix docstring.
2009-11-16 14:25:43 +00:00
Michael Albinus
b172ed20e0 * net/dbus.el (dbus-registered-objects-table): Renamed from
`dbus-registered-functions-table', because it contains also
properties.
(dbus-unregister-object): Unregister also properties.
(dbus-get-property, dbus-set-property, dbus-get-all-properties):
Use a timeout of 500 msec, in order to not block.
(dbus-register-property, dbus-property-handler): New defuns.
2009-11-13 16:05:24 +00:00
Michael Albinus
3f3241732d *** empty log message *** 2009-11-09 22:15:41 +00:00
Michael Albinus
8fb1629fa3 * net/dbus.el (dbus-unregister-object): Release service, if no
other method is registered for it.
2009-11-09 22:05:25 +00:00
Michael Albinus
93fb0645d6 * net/dbus.el (dbus-ping): Add optional parameter TIMEOUT. 2009-08-25 10:13:54 +00:00
Michael Albinus
9e84652313 * net/dbus.el (top): Initialize only when `dbusbind' is loaded. 2009-08-21 06:45:22 +00:00
Michael Albinus
6fd2d19a36 * net/dbus.el (top): Don't check for (getenv
"DBUS_SESSION_BUS_ADDRESS").  It's done in dbusbind.c now.
2009-08-20 15:24:58 +00:00
Michael Albinus
720c7cd6a9 * net/dbus.el (top): Apply `dbus-init-bus' for the :session bus
only if it is running already.
2009-08-19 07:15:28 +00:00
Michael Albinus
ba6f7d8640 * net/dbus.el (dbus-init-bus): Declare. Apply it for the :system
and :session buses.
2009-08-18 15:12:14 +00:00
Michael Albinus
3dec5c364b * net/dbus.el (dbus-call-method-non-blocking): Handle the case the
function returns nil.
(dbus-handle-event): Handle special return value :ignore.
Reported by Jan Moringen <jan.moringen@uni-bielefeld.de>.
2009-07-27 10:02:50 +00:00
Michael Albinus
f213fc091d * net/dbus.el (dbus-event-error-hooks): Fix docstring. Describe
second parameter of hook functions.
(dbus-handle-event): Apply it.
2009-01-28 16:10:38 +00:00
Michael Albinus
e12c189f66 * net/dbus.el (dbus-event-error-hooks): New variable.
(dbus-handle-event): Use it.
2009-01-26 20:26:52 +00:00
Michael Albinus
d665fff055 * net/dbus.el (dbus-string-to-byte-array): Handle empty array. 2009-01-03 14:55:10 +00:00
Michael Albinus
f7d20b3eac * net/dbus.el (dbus-handle-event): The result of a message call
can also be an object, which is not a consp.
2008-11-26 20:17:24 +00:00
Michael Albinus
82697a456d * net/dbus.el (dbus-string-to-byte-array)
(dbus-byte-array-to-string, dbus-escape-as-identifier)
(dbus-unescape-from-identifier): New defuns.
(dbus-handle-event): The result of a message call is a list of
arguments, which must be expanded when passing to
`dbus-method-return-internal'.
2008-11-26 06:09:44 +00:00
Michael Albinus
65b7cb2c90 * net/dbus.el (dbus-service-emacs, dbus-path-emacs): New defconst. 2008-10-12 20:07:49 +00:00
Michael Albinus
736215fd6c * net/dbus.el (dbus-introspect): Use `dbus-call-method-non-blocking'. 2008-08-24 20:16:15 +00:00
Michael Albinus
52a39a6456 * net/dbus.el (dbus-call-method-asynchronously): Declare
it with `declare-function'.
2008-08-04 12:42:28 +00:00
Michael Albinus
5e895c068d * net/dbus.el (dbus-method-return-internal)
(dbus-method-error-internal): Declare them with
`declare-function'.
2008-08-04 12:33:38 +00:00
Michael Albinus
ba0b66b030 * net/dbus.el (dbus-check-event, dbus-handle-event): Handle D-Bus
error messages.
(dbus-set-property): Call `dbus-introspect-get-property' instead
of `dbus-get-property'.
2008-08-01 18:41:05 +00:00
Michael Albinus
98c38bfc56 * net/dbus.el (top): Don't register for "NameOwnerChanged".
(dbus-message-type-invalid, dbus-message-type-method-call)
(dbus-message-type-method-return, dbus-message-type-error)
(dbus-message-type-signal): New defconst.
(dbus-ignore-errors): Fix `edebug-form-spec' property.
(dbus-return-values-table): New defvar.
(dbus-call-method-non-blocking-handler, dbus-event-message-type):
New defun.
(dbus-check-event, dbus-handle-event, dbus-event-serial-number, ):
Extend docstring.  Adapt implementation according to new
`dbus-event' layout.
(dbus-event-service-name, dbus-event-path-name)
(dbus-event-interface-name, dbus-event-member-name): Adapt
implementation according to new `dbus-event' layout.
(dbus-set-property): Correct `dbus-introspect-get-attribute' call.
2008-07-31 19:25:00 +00:00
Michael Albinus
f636d3cafd * net/dbus.el (dbus-interface-properties): New defconst.
(dbus-introspect): Update docstring.
(dbus-introspect-xml, dbus-introspect-get-attribute)
(dbus-introspect-get-node-names, dbus-introspect-get-all-nodes)
(dbus-introspect-get-interface-names)
(dbus-introspect-get-interface, dbus-introspect-get-method-names)
(dbus-introspect-get-method, dbus-introspect-get-signal-names)
(dbus-introspect-get-signal, dbus-introspect-get-property-names)
(dbus-introspect-get-property)
(dbus-introspect-get-annotation-names)
(dbus-introspect-get-annotation)
(dbus-introspect-get-argument-names, dbus-introspect-get-argument)
(dbus-introspect-get-signature, dbus-get-property)
(dbus-set-property, dbus-get-all-properties): New defuns.
2008-07-18 20:20:03 +00:00
Glenn Morris
874a927a02 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 07:31:51 +00:00
Michael Albinus
6981d00a6b * net/dbus.el: Remove `no-byte-compile' cookie.
(dbus-call-method, dbus-register-signal, dbus-debug)
(dbus-registered-functions-table): Declare them with
`declare-function' or `defvar', respectively.
(top): Don't assert any longer.  Require 'cl when compiling.
Apply `ignore-errors' but `dbus-ignore-errors'.
2008-02-10 20:45:35 +00:00
Michael Albinus
4ba11bcb85 * net/dbus.el (dbus-interface-peer): New defconst.
(dbus-ping): New defun.
2008-02-06 20:54:19 +00:00
Michael Albinus
7bb7efbd4a * dbus.el (top): Check (featurep 'dbusbind). 2008-02-03 12:00:51 +00:00
Michael Albinus
246a286b9b * net/dbus.el (dbus-ignore-errors): New macro.
(dbus-unregister-object): New defun.  Moved from dbusbind.c.
(dbus-handle-event, dbus-list-activatable-names, dbus-list-names)
(dbus-list-queued-owners, dbus-get-name-owner, dbus-introspect)
(dbus-get-signatures): Apply `dbus-ignore-errors'.
2008-01-21 20:06:15 +00:00
Michael Albinus
e49d337b18 * net/dbus.el (dbus-list-hash-table)
(dbus-name-owner-changed-handler): Replace "signal" by "member".
(dbus-check-event): Add serial number to event.
(dbus-handle-event): Apply return message if needed.
(dbus-event-serial-number): New defun.
(dbus-event-service-name, dbus-event-path-name)
(dbus-event-interface-name, dbus-event-member-name): Adapt
implementation to serial number.
2008-01-04 21:52:51 +00:00
Magnus Henoch
7d1112ae98 * net/dbus.el (dbus-name-owner-changed-handler): Use
dbus-unregister-object instead of dbus-unregister-signal.
2008-01-03 16:38:47 +00:00
Michael Albinus
0e0c4247f1 * net/dbus.el (dbus-name-owner-changed-handler): Make the function
resistent towards wrong parameters.
(dbus-handle-event): Propagate D-Bus errors only in the debug case.
2007-12-30 15:51:18 +00:00
Michael Albinus
3cc546adf4 * net/dbus.el (dbus-name-owner-changed-handler): Use
`dbus-unregister-signal' for removing old rules.  Obey new
structure of `dbus-registered-functions-table'.
2007-12-16 22:42:47 +00:00
Michael Albinus
79945ac143 * net/dbus.el (dbus-hash-table=): Remove function. We cannot
apply wildcards in a hash table key; there is no usable hash code
then.
(dbus-registered-functions-table): Use `equal' as test function.
(dbus-name-owner-changed-handler): Rewrite due to new hash table
structure.
2007-12-08 12:56:59 +00:00
Michael Albinus
ef6ce14cc0 * net/dbus.el (dbus-hash-table=): Fix for new hash table key
structure.
(dbus-list-hash-table, dbus-name-owner-changed-handler): New
defuns.
(dbus-check-event, dbus-handle-event, dbus-event-bus-name)
(dbus-event-service-name, dbus-event-path-name)
(dbus-event-interface-name, dbus-event-member-name): Fix for new
event structure.
(dbus-list-activatable-names, dbus-list-names)
(dbus-list-queued-owners, dbus-get-name-owner, dbus-introspect):
Reorder `dbus-call-method' arguments.
2007-12-07 04:47:19 +00:00
Michael Albinus
7b760f0a0f * net/dbus.el (dbus-hash-table=): Allow nil as wildcard in the
interface and member fields.
2007-12-05 21:59:12 +00:00