annotate lisp/hyperbole/hmous-info.el @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;!emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; FILE: hmous-info.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; SUMMARY: Walks through Info networks using one key.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; USAGE: GNU Emacs Lisp Library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; KEYWORDS: docs, help, hypermedia, mouse
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;; AUTHOR: Bob Weiner
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;; ORIG-DATE: 04-Apr-89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;; LAST-MOD: 1-Nov-95 at 20:33:46 by Bob Weiner
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; This file is for use with Hyperbole.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;; Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; Available for use and distribution under the same terms as GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;; DESCRIPTION:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;; This code is machine independent.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;; To install: See hui-mouse.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;; DESCRIP-END.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;;###autoload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 (defun smart-info ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 "Walks through Info documentation networks using one key or mouse key.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 If key is pressed within:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 (1) the first line of an Info Menu Entry or Cross Reference, the desired node
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 is found;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 (2) the Up, Next, or Previous entries of a Node Header (first line),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 the desired node is found;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (3) the File entry of a Node Header (first line),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 the 'Top' node within that file is found;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 (4) at the end of the current node, the Next node is found (this will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 descend subtrees if the function 'Info-global-next' is bound);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (5) anywhere else (e.g. at the end of a line), the current node entry is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 scrolled up one windowful.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 Returns t if key is pressed within an Info Node Header, Cross Reference,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 or a Menu; otherwise returns nil."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ;; If at end of node, go to next node
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ((last-line-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (if (fboundp 'Info-global-next) (Info-global-next)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (Info-next)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ((Info-handle-in-node-hdr))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 ((Info-handle-in-note))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 ((Info-handle-in-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 ((pos-visible-in-window-p (point-max))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 (if (fboundp 'Info-global-next) (Info-global-next)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 (Info-next)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ;; If nothing else scroll forward a windowful.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ((smart-scroll-up))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ;;;###autoload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (defun smart-info-assist ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 "Walks through Info documentation networks using one assist-key or mouse assist-key.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 If assist-key is pressed within:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 (1) the first line of an Info Menu Entry or Cross Reference, the desired node
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 is found;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (2) the Up, Next, or Previous entries of a Node Header (first line),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 the last node in the history list is found;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (3) the File entry of a Node Header (first line),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 the 'DIR' root-level node is found;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 (4) at the end of the current node, the Previous node is found (this will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 return from subtrees if the function 'Info-global-prev is bound);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 (5) anywhere else (e.g. at the end of a line), the current node entry is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 scrolled down one windowful.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 Returns t if assist-key is pressed within an Info Node Header, Cross Reference,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 or a Menu; otherwise returns nil."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ;; If at end or beginning of node, go to previous node
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 ((last-line-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 (if (fboundp 'Info-global-prev) (Info-global-prev)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (Info-prev)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 ((Info-handle-in-node-hdr-assist))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 ((Info-handle-in-note))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 ((Info-handle-in-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 ((pos-visible-in-window-p (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 (if (fboundp 'Info-global-prev) (Info-global-prev)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (Info-prev)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 ;; If anywhere else, scroll backward a windowful.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 ((smart-scroll-down))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (defun Info-handle-in-node-hdr ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 "If within an Info node header, move to <FILE>Top, <Up>, <Previous>, or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 <Next> node, depending on which label point is on, and return t.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 Otherwise, return nil."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 ;; Test if on 1st line of node, i.e. node header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (if (not (first-line-p))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 (let ((nodename "Top") (filep nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 (if (and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 (re-search-forward "[:, \t\n]" nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 (re-search-backward
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 "\\(File\\|Node\\|Up\\|Prev\\|Previous\\|Next\\):[ \t]" nil t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 (progn (setq filep (string-equal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 "file"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 (downcase (buffer-substring
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 (match-beginning 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 (match-end 1)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 (if (re-search-forward (concat ":[ \n]\\([^,\t\n"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (if filep " ")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 "]*\\)") nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 (setq nodename (buffer-substring
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 (match-beginning 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 (match-end 1)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 (error "Node header not found.")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 (setq nodename
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (cond ((= (aref nodename 0) ?\() nodename)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (filep (concat "(" nodename ")" "Top"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 (buffer-file-name (concat "(" buffer-file-name ")" nodename))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 (t nodename)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 (if hyperb:lemacs-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (Info-goto-node nodename nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 (Info-goto-node nodename))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 t)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 (defun Info-handle-in-node-hdr-assist ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 "If within an Info node header when the 'smart-info-assist' command is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 executed, when within the <FILE> header go to the DIR top-level node. When
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 within any other header (<Up>, <Previous>, or <Next>) go to last node from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 history list. Return t if in Info node header. Otherwise return nil."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 ;; Test if on 1st line of node, i.e. node header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 (if (not (first-line-p))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (if (and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 (re-search-forward "[:, \t\n]" nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 (re-search-backward
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 "\\(File\\|Node\\|Up\\|Prev\\|Previous\\|Next\\):[ \t]" nil t) )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ;; If in <FILE> hdr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 (progn (if (string-equal
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 "file"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 (downcase (buffer-substring
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (match-beginning 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 (match-end 1))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 (Info-directory)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 (Info-last))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 (error "Node header not found.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 nil))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 ;;;###autoload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 (defun Info-handle-in-note ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 "Follows an Info cross-reference.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 If point is within the first line of an Info note (cross-reference), follows
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 cross-reference and returns t; otherwise returns nil."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 (let ((note-name) (opoint (point)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 (skip-chars-forward "^:")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (if (and (re-search-backward
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 "\*\\(Ref\\|Note\\|See\\)\\([ \t\n]+\\|$\\)" nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 (looking-at "\*\\(Ref\\|Note\\|See\\)[ \t\n]+\\([^:]*\\):")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (<= (match-beginning 0) opoint)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 (> (match-end 0) opoint))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 ;; Remove newline and extra spaces from 'note-name'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (setq note-name (hypb:replace-match-string
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 "[ \n\t]+"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 (buffer-substring
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 (match-beginning 2) (match-end 2))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 " " t))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (if note-name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 (progn (Info-follow-reference note-name) t))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 (defun Info-handle-in-menu ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 "Displays node referred to by an Info Menu Entry.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 If point is within an Info menu entry, goes to node referenced by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 entry and returns t; otherwise returns nil."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 ;; Test if there is a menu in this node
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 (let ((in-menu nil) (curr-point (point)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 (goto-char (point-min))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 (setq in-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 (and (search-forward "\n* menu:" nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 (< (point) curr-point))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 (if (not in-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 (let ((node))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 (save-excursion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 (forward-char) ; Pass '*' char if point is in front of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 (if (search-backward "\n*" nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 (progn (forward-char 2)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 (setq node (Info-extract-menu-node-name)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 (if (null node)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 (if hyperb:lemacs-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 (Info-goto-node node nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 (Info-goto-node node))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 t)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 (provide 'hmous-info)