summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Waide <waider@waider.ie>2000-12-31 15:58:18 +0000
committerRonan Waide <waider@waider.ie>2000-12-31 15:58:18 +0000
commit09c97b65e169eec8e4a646878ac000c7e8b7ed79 (patch)
tree9482aef66e0c3cfb6f6cede2435f2d91dd98314e
parent02d785a680829d1ba748b034b6fd23cc5a044b6c (diff)
(bbdb-undisplay-records) Don't try to use *BBDB* buffer if it doesn't exist.
-rw-r--r--lisp/bbdb.el29
1 files changed, 20 insertions, 9 deletions
diff --git a/lisp/bbdb.el b/lisp/bbdb.el
index a932295..7e3035d 100644
--- a/lisp/bbdb.el
+++ b/lisp/bbdb.el
@@ -91,11 +91,21 @@ prompt the users on how to merge records when duplicates are detected.")
(eval-when-compile ; pacify the compiler
(defvar bbdb-address-print-formatting-alist) ; "bbdb-print"
+ (defvar bbdb-pop-up-elided-display-name-end) ; "bbdb-com"
+ (defvar bbdb-pop-up-elided-display-fields) ; "bbdb-com"
(defvar mail-mode-map) ; "sendmail"
+ (defvar message-mode-map) ; "message"
(autoload 'widget-group-match "wid-edit")
(autoload 'Electric-pop-up-window "electric")
(autoload 'Electric-command-loop "electric")
(autoload 'bbdb-snarf-nice-real-name "bbdb-snarf")
+ (autoload 'bbdb-migration-query "bbdb-migrate")
+ (autoload 'bbdb-migrate "bbdb-migrate")
+ (autoload 'bbdb-migrate-rewrite-all "bbdb-migrate")
+ (autoload 'bbdb-migrate-update-file-version "bbdb-migrate")
+ (autoload 'bbdb-unmigrate-record "bbdb-migrate")
+ (autoload 'bbdb-redisplay-records "bbdb-com")
+ (autoload 'y-or-n-p-with-timeout "timer")
)
;; Make custom stuff work even without customize
@@ -1404,15 +1414,16 @@ the raw field content and return a string."
(set-buffer b)))
(defun bbdb-undisplay-records ()
- (save-excursion
- (set-buffer bbdb-buffer-name)
- (setq bbdb-showing-changed-ones nil
- mode-line-modified nil
- bbdb-records nil
- buffer-read-only nil)
- (erase-buffer)
- (setq buffer-read-only t)
- (set-buffer-modified-p nil)))
+ (if (bufferp bbdb-buffer-name)
+ (save-excursion
+ (set-buffer bbdb-buffer-name)
+ (setq bbdb-showing-changed-ones nil
+ mode-line-modified nil
+ bbdb-records nil
+ buffer-read-only nil)
+ (erase-buffer)
+ (setq buffer-read-only t)
+ (set-buffer-modified-p nil))))
;;; Electric display stuff