3
3
; ; Author: Bob Weiner
4
4
; ;
5
5
; ; Orig-Date: 18-Sep-91 at 02:57:09
6
- ; ; Last-Mod: 5-Jan-25 at 01:12:45 by Bob Weiner
6
+ ; ; Last-Mod: 5-Jan-25 at 11:27:31 by Bob Weiner
7
7
; ;
8
8
; ; SPDX-License-Identifier: GPL-3.0-or-later
9
9
; ;
@@ -552,7 +552,7 @@ button is found in the current buffer."
552
552
(re-search-backward regexp nil t )))
553
553
(goto-char (+ (match-beginning 0 ) (length ebut:label-start))))))
554
554
555
- (when (or (not buffer-file-name) (hmail:editor-p) (hmail:reader-p))
555
+ (when (or (not (hypb: buffer-file-name) ) (hmail:editor-p) (hmail:reader-p))
556
556
(widen )
557
557
(hmail:msg-narrow))
558
558
@@ -614,7 +614,7 @@ labels only; optional MATCH-PART enables partial matches."
614
614
(setq currbuf (and (file-readable-p currfile)
615
615
(find-file-noselect currfile))
616
616
dir (file-name-directory currfile))
617
- (setq currfile (buffer-file-name currbuf)))
617
+ (setq currfile (hypb: buffer-file-name currbuf)))
618
618
(and currfile currbuf
619
619
(unwind-protect
620
620
(setq src-matches
@@ -834,7 +834,7 @@ delimiters. With POS-FLAG non-nil, return the list of label-or-key,
834
834
but-start-position, but-end-position. Positions include
835
835
delimiters. With TWO-LINES-FLAG non-nil, constrain label search
836
836
to two lines."
837
- (when (equal buffer-file-name (gbut:file))
837
+ (when (equal (hypb: buffer-file-name) (gbut:file))
838
838
(hbut:label-p as-label start-delim end-delim pos-flag two-lines-flag)))
839
839
840
840
(defun gbut:save-buffer ()
@@ -1055,7 +1055,7 @@ Default is the symbol hbut:current."
1055
1055
(delim-text-start (hattr:get hbut 'lbl-start ))
1056
1056
(delim-text-end (hattr:get hbut 'lbl-end )))
1057
1057
(if (and name-key
1058
- (or (equal loc buffer-file-name)
1058
+ (or (equal loc (hypb: buffer-file-name) )
1059
1059
(equal loc (current-buffer )))
1060
1060
(equal name-key (ibut:label-to-key (hattr:get hbut 'name ))))
1061
1061
(unless (and delim-text-start delim-text-end
@@ -1064,7 +1064,7 @@ Default is the symbol hbut:current."
1064
1064
(goto-char delim-text-start)
1065
1065
(skip-chars-forward " ^-_a-zA-Z0-9" ))
1066
1066
; ; Here handle when there is no name preceding the implicit button.
1067
- (unless (and (or (equal loc buffer-file-name)
1067
+ (unless (and (or (equal loc (hypb: buffer-file-name) )
1068
1068
(equal loc (current-buffer )))
1069
1069
delim-text-start delim-text-end
1070
1070
(< delim-text-start (point ))
@@ -1297,10 +1297,10 @@ is given."
1297
1297
cd 0 (string-match " \\ s +\\ '" cd)))
1298
1298
(expand-file-name cd wd))
1299
1299
wd)))
1300
- (buffer-file-name
1300
+ ((hypb: buffer-file-name)
1301
1301
(if full-flag
1302
- buffer-file-name
1303
- (file-name-nondirectory buffer-file-name)))
1302
+ (hypb: buffer-file-name)
1303
+ (file-name-nondirectory (hypb: buffer-file-name) )))
1304
1304
; ; Handle any preceding @loc hyp-source implicit button location references.
1305
1305
; ; This is used in report buffers of explicit buttons, i.e. hui:hbut-report
1306
1306
; ; as well as the *HyRolo* display matches buffer.
@@ -1347,10 +1347,10 @@ This is used to obtain the source of Hyperbole buttons for buffers that
1347
1347
represent the output of particular document formatters."
1348
1348
(when (or (eq major-mode 'Info-mode )
1349
1349
(string-match " \\ .info\\ (-[0-9]+\\ )?$" (buffer-name )))
1350
- (let ((src (and buffer-file-name
1350
+ (let ((src (and (hypb: buffer-file-name)
1351
1351
(substring
1352
- buffer-file-name
1353
- 0 (string-match " \\ .[^.]+$" buffer-file-name)))))
1352
+ (hypb: buffer-file-name)
1353
+ 0 (string-match " \\ .[^.]+$" (hypb: buffer-file-name) )))))
1354
1354
(cond ((file-exists-p (concat src " .texi" ))
1355
1355
(concat src " .texi" ))
1356
1356
((file-exists-p (concat src " .texinfo" ))
@@ -1747,7 +1747,7 @@ button label. Return the symbol for the button, else nil."
1747
1747
Keys in optional KEY-SRC or the current buffer."
1748
1748
(save-excursion
1749
1749
(save-restriction
1750
- (if (hbdata:to-entry-buf (or key-src (buffer-file-name )))
1750
+ (if (hbdata:to-entry-buf (or key-src (hypb: buffer-file-name)))
1751
1751
(let (hbuts)
1752
1752
(save-restriction
1753
1753
(narrow-to-region (point ) (if (search-forward " \f " nil t )
0 commit comments