aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2005-10-02 03:11:03 +0000
committerChong Yidong2005-10-02 03:11:03 +0000
commit24bbdbefccdba78e91874559d3b7dee0c1cbdbe6 (patch)
tree1ceab0560b2229eadaa4402cb290d32ddb6cc76b
parentdceb5300d213250d0f2d95d976f4e5289377d459 (diff)
downloademacs-24bbdbefccdba78e91874559d3b7dee0c1cbdbe6.tar.gz
emacs-24bbdbefccdba78e91874559d3b7dee0c1cbdbe6.zip
* speedbar.el: Remove RCS tag.
(speedbar-check-read-only): Handle non-existent files. * dframe.el, ezimage.el, sb-image.el: Remove RCS tags. * info.el (Info-speedbar-hierarchy-buttons) (Info-speedbar-goto-node): Call speedbar-select-attached-frame.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/dframe.el5
-rw-r--r--lisp/ezimage.el5
-rw-r--r--lisp/info.el18
-rw-r--r--lisp/sb-image.el5
-rw-r--r--lisp/speedbar.el20
6 files changed, 34 insertions, 29 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 69fb7798069..165fe825693 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12005-10-01 Chong Yidong <cyd@stupidchicken.com>
2
3 * speedbar.el: Remove RCS tag.
4 (speedbar-check-read-only): Handle non-existent files.
5
6 * dframe.el, ezimage.el, sb-image.el: Remove RCS tags.
7
8 * info.el (Info-speedbar-hierarchy-buttons)
9 (Info-speedbar-goto-node): Call speedbar-select-attached-frame.
10
12005-10-01 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> 112005-10-01 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2 12
3 * textmodes/bibtex.el (bibtex-valid-entry-whitespace-re): 13 * textmodes/bibtex.el (bibtex-valid-entry-whitespace-re):
diff --git a/lisp/dframe.el b/lisp/dframe.el
index c2b2441a94d..b180d6bbf00 100644
--- a/lisp/dframe.el
+++ b/lisp/dframe.el
@@ -4,7 +4,6 @@
4 4
5;; Author: Eric M. Ludlam <zappo@gnu.org> 5;; Author: Eric M. Ludlam <zappo@gnu.org>
6;; Keywords: file, tags, tools 6;; Keywords: file, tags, tools
7;; X-RCS: $Id: dframe.el,v 1.1 2005/09/30 13:18:43 cyd Exp $
8 7
9(defvar dframe-version "1.3" 8(defvar dframe-version "1.3"
10 "The current version of the dedicated frame library.") 9 "The current version of the dedicated frame library.")
@@ -23,8 +22,8 @@
23 22
24;; You should have received a copy of the GNU General Public License 23;; You should have received a copy of the GNU General Public License
25;; along with GNU Emacs; see the file COPYING. If not, write to the 24;; along with GNU Emacs; see the file COPYING. If not, write to the
26;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 25;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
27;; Boston, MA 02111-1307, USA. 26;; Boston, MA 02110-1301, USA.
28 27
29;;; Commentary: 28;;; Commentary:
30;; 29;;
diff --git a/lisp/ezimage.el b/lisp/ezimage.el
index fc0c08621c8..dd3a1944306 100644
--- a/lisp/ezimage.el
+++ b/lisp/ezimage.el
@@ -4,7 +4,6 @@
4 4
5;; Author: Eric M. Ludlam <zappo@gnu.org> 5;; Author: Eric M. Ludlam <zappo@gnu.org>
6;; Keywords: file, tags, tools 6;; Keywords: file, tags, tools
7;; X-RCS: $Id: ezimage.el,v 1.1 2005/09/30 13:15:10 cyd Exp $
8 7
9;; This file is part of GNU Emacs. 8;; This file is part of GNU Emacs.
10 9
@@ -20,8 +19,8 @@
20 19
21;; You should have received a copy of the GNU General Public License 20;; You should have received a copy of the GNU General Public License
22;; along with GNU Emacs; see the file COPYING. If not, write to the 21;; along with GNU Emacs; see the file COPYING. If not, write to the
23;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 22;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24;; Boston, MA 02111-1307, USA. 23;; Boston, MA 02110-1301, USA.
25 24
26;;; Commentary: 25;;; Commentary:
27;; 26;;
diff --git a/lisp/info.el b/lisp/info.el
index 7868125b9b0..a7cabcde820 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -4012,8 +4012,6 @@ This will add a speedbar major display mode."
4012 (speedbar-change-initial-expansion-list "Info") 4012 (speedbar-change-initial-expansion-list "Info")
4013 ) 4013 )
4014 4014
4015(eval-when-compile (defvar speedbar-attached-frame))
4016
4017(defun Info-speedbar-hierarchy-buttons (directory depth &optional node) 4015(defun Info-speedbar-hierarchy-buttons (directory depth &optional node)
4018 "Display an Info directory hierarchy in speedbar. 4016 "Display an Info directory hierarchy in speedbar.
4019DIRECTORY is the current directory in the attached frame. 4017DIRECTORY is the current directory in the attached frame.
@@ -4030,13 +4028,12 @@ specific node to expand."
4030 ;; being known at creation time. 4028 ;; being known at creation time.
4031 (if (not node) 4029 (if (not node)
4032 (speedbar-with-writable (insert "Info Nodes:\n"))) 4030 (speedbar-with-writable (insert "Info Nodes:\n")))
4033 (let ((completions nil) 4031 (let ((completions nil))
4034 (cf (selected-frame))) 4032 (speedbar-select-attached-frame)
4035 (select-frame speedbar-attached-frame)
4036 (save-window-excursion 4033 (save-window-excursion
4037 (setq completions 4034 (setq completions
4038 (Info-speedbar-fetch-file-nodes (or node '"(dir)top")))) 4035 (Info-speedbar-fetch-file-nodes (or node '"(dir)top"))))
4039 (select-frame cf) 4036 (select-frame speedbar-frame)
4040 (if completions 4037 (if completions
4041 (speedbar-with-writable 4038 (speedbar-with-writable
4042 (dolist (completion completions) 4039 (dolist (completion completions)
@@ -4052,7 +4049,7 @@ specific node to expand."
4052(defun Info-speedbar-goto-node (text node indent) 4049(defun Info-speedbar-goto-node (text node indent)
4053 "When user clicks on TEXT, go to an info NODE. 4050 "When user clicks on TEXT, go to an info NODE.
4054The INDENT level is ignored." 4051The INDENT level is ignored."
4055 (select-frame speedbar-attached-frame) 4052 (speedbar-select-attached-frame)
4056 (let* ((buff (or (get-buffer "*info*") 4053 (let* ((buff (or (get-buffer "*info*")
4057 (progn (info) (get-buffer "*info*")))) 4054 (progn (info) (get-buffer "*info*"))))
4058 (bwin (get-buffer-window buff 0))) 4055 (bwin (get-buffer-window buff 0)))
@@ -4062,7 +4059,7 @@ The INDENT level is ignored."
4062 (raise-frame (window-frame bwin))) 4059 (raise-frame (window-frame bwin)))
4063 (if speedbar-power-click 4060 (if speedbar-power-click
4064 (let ((pop-up-frames t)) (select-window (display-buffer buff))) 4061 (let ((pop-up-frames t)) (select-window (display-buffer buff)))
4065 (select-frame speedbar-attached-frame) 4062 (speedbar-select-attached-frame)
4066 (switch-to-buffer buff))) 4063 (switch-to-buffer buff)))
4067 (if (not (string-match "^(\\([^)]+\\))\\([^.]+\\)$" node)) 4064 (if (not (string-match "^(\\([^)]+\\))\\([^.]+\\)$" node))
4068 (error "Invalid node %s" node) 4065 (error "Invalid node %s" node)
@@ -4128,7 +4125,7 @@ NODESPEC is a string of the form: (file)node."
4128 (nreverse completions)))) 4125 (nreverse completions))))
4129 4126
4130;;; Info mode node listing 4127;;; Info mode node listing
4131;; FIXME: Seems not to be used. -stef 4128;; This is called by `speedbar-add-localized-speedbar-support'
4132(defun Info-speedbar-buttons (buffer) 4129(defun Info-speedbar-buttons (buffer)
4133 "Create a speedbar display to help navigation in an Info file. 4130 "Create a speedbar display to help navigation in an Info file.
4134BUFFER is the buffer speedbar is requesting buttons for." 4131BUFFER is the buffer speedbar is requesting buttons for."
@@ -4136,8 +4133,7 @@ BUFFER is the buffer speedbar is requesting buttons for."
4136 (let ((case-fold-search t)) 4133 (let ((case-fold-search t))
4137 (not (looking-at "Info Nodes:")))) 4134 (not (looking-at "Info Nodes:"))))
4138 (erase-buffer)) 4135 (erase-buffer))
4139 (Info-speedbar-hierarchy-buttons nil 0) 4136 (Info-speedbar-hierarchy-buttons nil 0))
4140 )
4141 4137
4142(dolist (mess '("^First node in file$" 4138(dolist (mess '("^First node in file$"
4143 "^No `.*' in index$" 4139 "^No `.*' in index$"
diff --git a/lisp/sb-image.el b/lisp/sb-image.el
index e36cc23de19..e1ed8d06a86 100644
--- a/lisp/sb-image.el
+++ b/lisp/sb-image.el
@@ -4,7 +4,6 @@
4 4
5;; Author: Eric M. Ludlam <zappo@gnu.org> 5;; Author: Eric M. Ludlam <zappo@gnu.org>
6;; Keywords: file, tags, tools 6;; Keywords: file, tags, tools
7;; X-RCS: $Id: sb-image.el,v 1.1 2005/09/30 13:15:10 cyd Exp $
8 7
9;; This file is part of GNU Emacs. 8;; This file is part of GNU Emacs.
10 9
@@ -20,8 +19,8 @@
20 19
21;; You should have received a copy of the GNU General Public License 20;; You should have received a copy of the GNU General Public License
22;; along with GNU Emacs; see the file COPYING. If not, write to the 21;; along with GNU Emacs; see the file COPYING. If not, write to the
23;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 22;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24;; Boston, MA 02111-1307, USA. 23;; Boston, MA 02110-1301, USA.
25 24
26;;; Commentary: 25;;; Commentary:
27;; 26;;
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index 84411f12223..0978a31681e 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -4,7 +4,6 @@
4 4
5;; Author: Eric M. Ludlam <zappo@gnu.org> 5;; Author: Eric M. Ludlam <zappo@gnu.org>
6;; Keywords: file, tags, tools 6;; Keywords: file, tags, tools
7;; X-RCS: $Id: speedbar.el,v 1.68 2005/09/30 13:15:10 cyd Exp $
8 7
9(defvar speedbar-version "1.0" 8(defvar speedbar-version "1.0"
10 "The current version of speedbar.") 9 "The current version of speedbar.")
@@ -27,8 +26,8 @@ this version is not backward compatible to 0.14 or earlier.")
27 26
28;; You should have received a copy of the GNU General Public License 27;; You should have received a copy of the GNU General Public License
29;; along with GNU Emacs; see the file COPYING. If not, write to the 28;; along with GNU Emacs; see the file COPYING. If not, write to the
30;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 29;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
31;; Boston, MA 02111-1307, USA. 30;; Boston, MA 02110-1301, USA.
32 31
33;;; Commentary: 32;;; Commentary:
34;; 33;;
@@ -2822,12 +2821,15 @@ indicator, then do not add a space."
2822 (re-search-forward "^\\([0-9]+\\):\\s-*[[<][+-\?][]>] " 2821 (re-search-forward "^\\([0-9]+\\):\\s-*[[<][+-\?][]>] "
2823 nil t)) 2822 nil t))
2824 (setq speedbar-ro-to-do-point (point)) 2823 (setq speedbar-ro-to-do-point (point))
2825 (if (not (file-writable-p (speedbar-line-file))) 2824 (let ((f (speedbar-line-file)))
2826 (speedbar-add-indicator 2825 (if f
2827 speedbar-object-read-only-indicator 2826 (if (not (file-writable-p f))
2828 (regexp-quote speedbar-object-read-only-indicator)) 2827 (speedbar-add-indicator
2829 (speedbar-add-indicator 2828 speedbar-object-read-only-indicator
2830 " " (regexp-quote speedbar-object-read-only-indicator)))) 2829 (regexp-quote speedbar-object-read-only-indicator))
2830 (speedbar-add-indicator
2831 " " (regexp-quote
2832 speedbar-object-read-only-indicator))))))
2831 (if (input-pending-p) 2833 (if (input-pending-p)
2832 ;; return that we are incomplete 2834 ;; return that we are incomplete
2833 nil 2835 nil