aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-03-13 01:57:05 +0000
committerStefan Monnier2008-03-13 01:57:05 +0000
commitd4432055529388a4e88fdb3001878ecbc8a30388 (patch)
tree2f8301e0c7205c06763b8aafe0caf85255540bab
parentde5ab37dc957b7fcd7031dc1a9f5d16e27279512 (diff)
downloademacs-d4432055529388a4e88fdb3001878ecbc8a30388.tar.gz
emacs-d4432055529388a4e88fdb3001878ecbc8a30388.zip
(Info-current-node): Remove.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/bookmark.el10
2 files changed, 8 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index eded98568e4..c60a2c46e94 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * bookmark.el (Info-current-node): Remove.
4
12008-03-12 Juri Linkov <juri@jurta.org> 52008-03-12 Juri Linkov <juri@jurta.org>
2 6
3 * help.el (describe-project): Remove defaliases for view-todo and 7 * help.el (describe-project): Remove defaliases for view-todo and
@@ -24,7 +28,8 @@
24 * comint.el: Fix up indentation and comment style. Remove `function'. 28 * comint.el: Fix up indentation and comment style. Remove `function'.
25 29
26 * international/mule-cmds.el (reset-language-environment) 30 * international/mule-cmds.el (reset-language-environment)
27 (set-language-environment-nonascii-translation): Don't set-unibyte-charset. 31 (set-language-environment-nonascii-translation):
32 Don't set-unibyte-charset.
28 33
29 * doc-view.el: Remove all cb-args, use closures instead. 34 * doc-view.el: Remove all cb-args, use closures instead.
30 (doc-view-sentinel): Merge doc-view-dvi->pdf-sentinel, 35 (doc-view-sentinel): Merge doc-view-dvi->pdf-sentinel,
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index d8d90d6d6f7..5da231cf3ae 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -297,7 +297,6 @@ through a file easier.")
297(defvar bookmark-yank-point 0) 297(defvar bookmark-yank-point 0)
298(defvar bookmark-current-buffer nil) 298(defvar bookmark-current-buffer nil)
299 299
300(defvar Info-current-node)
301(defvar Info-suffix-list) 300(defvar Info-suffix-list)
302 301
303;; Helper functions. 302;; Helper functions.
@@ -850,8 +849,7 @@ Default to file name if it's nil."
850 849
851 850
852(defun bookmark-buffer-name () 851(defun bookmark-buffer-name ()
853 "Return the name of the current buffer's file, non-directory. 852 "Return the name of the current buffer's file, non-directory."
854In Info, return the current node."
855 (cond 853 (cond
856 ;; Or are we a file? 854 ;; Or are we a file?
857 (buffer-file-name (file-name-nondirectory buffer-file-name)) 855 (buffer-file-name (file-name-nondirectory buffer-file-name))
@@ -885,12 +883,8 @@ In Info, return the current node."
885 (setq bookmark-yank-point (point))))))) 883 (setq bookmark-yank-point (point)))))))
886 (insert string))) 884 (insert string)))
887 885
888
889(defvar Info-current-file)
890
891(defun bookmark-buffer-file-name () 886(defun bookmark-buffer-file-name ()
892 "Return the current buffer's file in a way useful for bookmarks. 887 "Return the current buffer's file in a way useful for bookmarks."
893For example, if this is a Info buffer, return the Info file's name."
894 (cond 888 (cond
895 (buffer-file-name 889 (buffer-file-name
896 ;; Abbreviate the path, both so it's shorter and so it's more 890 ;; Abbreviate the path, both so it's shorter and so it's more