[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa a7c6757 2/3: Don't use non-existing custom-buffer-done-funct
From: |
Tassilo Horn |
Subject: |
[elpa] elpa a7c6757 2/3: Don't use non-existing custom-buffer-done-function |
Date: |
Sun, 29 May 2016 15:43:52 +0000 (UTC) |
branch: elpa
commit a7c67570b35ef7fe7ab1052d0fd27e8090b38a3b
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Don't use non-existing custom-buffer-done-function
* tex-wizard.el (TeX-wizard): Use `kill-buffer-hook' and
`custom-buffer-done-kill' instead of `custom-buffer-done-function' which
has been removed from Emacs a long time ago.
---
tex-wizard.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tex-wizard.el b/tex-wizard.el
index f5badae..b51c03a 100644
--- a/tex-wizard.el
+++ b/tex-wizard.el
@@ -1,6 +1,6 @@
;;; tex-wizard.el --- Check the TeX configuration
-;; Copyright (C) 2003 Free Software Foundation, Inc.
+;; Copyright (C) 2003, 2006, 2016 Free Software Foundation, Inc.
;; Author: David Kastrup <address@hidden>
;; Keywords: tex, wp, convenience
@@ -90,7 +90,7 @@ and bibliographics references.\n")
(boundp 'LaTeX-mode-hook)
(memq 'turn-on-reftex LaTeX-mode-hook))
(if (and (boundp 'reftex-plug-into-AUCTeX)
- reftex-plug-into-AUCTeX)
+ reftex-plug-into-AUCTeX)
(insert-before-markers
"RefTeX appears to be configured for use with AUCTeX.\n")
(require 'reftex)
@@ -99,8 +99,8 @@ It appears that RefTeX is not configured to cooperate with
AUCTeX. Please configure it using the menus, save for future
sessions, then press the finish button.")
(customize-variable-other-window 'reftex-plug-into-AUCTeX)
- (set (make-local-variable 'custom-buffer-done-function)
- (lambda (buff) (kill-buffer buff) (exit-recursive-edit)))
+ (set (make-local-variable 'custom-buffer-done-kill) t)
+ (add-hook 'kill-buffer-hook #'exit-recursive-edit nil t)
(recursive-edit)
(select-window wizwin)
(switch-to-buffer wizbuf))))