diff options
| author | Michael Albinus | 2008-02-10 20:45:35 +0000 |
|---|---|---|
| committer | Michael Albinus | 2008-02-10 20:45:35 +0000 |
| commit | 6981d00a6b71b8b713ff224f564281cac2d3d6e9 (patch) | |
| tree | 4901871199eceb8b946f8e42e4a17a77cdad8ad2 | |
| parent | eac1939a47dde9ccf13c4d49d42fb08f0edac16b (diff) | |
| download | emacs-6981d00a6b71b8b713ff224f564281cac2d3d6e9.tar.gz emacs-6981d00a6b71b8b713ff224f564281cac2d3d6e9.zip | |
* 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'.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/net/dbus.el | 14 |
2 files changed, 19 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f31b26834e3..f2c662e03c7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2008-02-10 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/dbus.el: Remove `no-byte-compile' cookie. | ||
| 4 | (dbus-call-method, dbus-register-signal, dbus-debug) | ||
| 5 | (dbus-registered-functions-table): Declare them with | ||
| 6 | `declare-function' or `defvar', respectively. | ||
| 7 | (top): Don't assert any longer. Require 'cl when compiling. | ||
| 8 | Apply `ignore-errors' but `dbus-ignore-errors'. | ||
| 9 | |||
| 1 | 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu> | 10 | 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 11 | ||
| 3 | * diff-mode.el (diff-add-change-log-entries-other-window): Use | 12 | * diff-mode.el (diff-add-change-log-entries-other-window): Use |
diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el index 4390f305b66..8c03d9b9e53 100644 --- a/lisp/net/dbus.el +++ b/lisp/net/dbus.el | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | ;;; -*- no-byte-compile: t; -*- | ||
| 2 | ;;; dbus.el --- Elisp bindings for D-Bus. | 1 | ;;; dbus.el --- Elisp bindings for D-Bus. |
| 3 | 2 | ||
| 4 | ;; Copyright (C) 2007, 2008 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2007, 2008 Free Software Foundation, Inc. |
| @@ -33,8 +32,15 @@ | |||
| 33 | ;;; Code: | 32 | ;;; Code: |
| 34 | 33 | ||
| 35 | ;; D-Bus support in the Emacs core can be disabled with configuration | 34 | ;; D-Bus support in the Emacs core can be disabled with configuration |
| 36 | ;; option "--without-dbus". Check it. | 35 | ;; option "--without-dbus". Declare used subroutines and variables. |
| 37 | (assert (featurep 'dbusbind) nil "D-Bus is not supported") | 36 | (declare-function dbus-call-method "dbusbind.c") |
| 37 | (declare-function dbus-register-signal "dbusbind.c") | ||
| 38 | (defvar dbus-debug) | ||
| 39 | (defvar dbus-registered-functions-table) | ||
| 40 | |||
| 41 | ;; Pacify byte compiler. | ||
| 42 | (eval-when-compile | ||
| 43 | (require 'cl)) | ||
| 38 | 44 | ||
| 39 | (require 'xml) | 45 | (require 'xml) |
| 40 | 46 | ||
| @@ -158,7 +164,7 @@ usage: (dbus-name-owner-changed-handler service old-owner new-owner)" | |||
| 158 | args)))))) | 164 | args)))))) |
| 159 | 165 | ||
| 160 | ;; Register the handler. | 166 | ;; Register the handler. |
| 161 | (dbus-ignore-errors | 167 | (ignore-errors |
| 162 | (dbus-register-signal | 168 | (dbus-register-signal |
| 163 | :system dbus-service-dbus dbus-path-dbus dbus-interface-dbus | 169 | :system dbus-service-dbus dbus-path-dbus dbus-interface-dbus |
| 164 | "NameOwnerChanged" 'dbus-name-owner-changed-handler) | 170 | "NameOwnerChanged" 'dbus-name-owner-changed-handler) |