Mercurial > emacs
comparison lisp/dired.el @ 38074:7ca7def9af01
(dired-insert-set-properties): Add help-echo to mouse-highlighted text.
(dired-mark-pop-up): Remove help-echo property from the file name.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sun, 17 Jun 2001 11:18:16 +0000 |
parents | e21c3f6fd4d6 |
children | 58a77e50831e |
comparison
equal
deleted
inserted
replaced
38073:54047d1b6974 | 38074:7ca7def9af01 |
---|---|
733 (save-excursion | 733 (save-excursion |
734 (goto-char beg) | 734 (goto-char beg) |
735 (while (< (point) end) | 735 (while (< (point) end) |
736 (condition-case nil | 736 (condition-case nil |
737 (if (dired-move-to-filename) | 737 (if (dired-move-to-filename) |
738 (put-text-property (point) | 738 (add-text-properties |
739 (save-excursion | 739 (point) |
740 (dired-move-to-end-of-filename) | 740 (save-excursion |
741 (point)) | 741 (dired-move-to-end-of-filename) |
742 'mouse-face 'highlight)) | 742 (point)) |
743 '(mouse-face 'highlight | |
744 help-echo "mouse-2: visit this file in other window"))) | |
743 (error nil)) | 745 (error nil)) |
744 (forward-line 1)))) | 746 (forward-line 1)))) |
745 | 747 |
746 (defun dired-insert-headerline (dir);; also used by dired-insert-subdir | 748 (defun dired-insert-headerline (dir);; also used by dired-insert-subdir |
747 ;; Insert DIR's headerline with no trailing slash, exactly like ls | 749 ;; Insert DIR's headerline with no trailing slash, exactly like ls |
2159 (= (length files) 1)) | 2161 (= (length files) 1)) |
2160 (apply function args) | 2162 (apply function args) |
2161 (with-current-buffer (get-buffer-create bufname) | 2163 (with-current-buffer (get-buffer-create bufname) |
2162 (erase-buffer) | 2164 (erase-buffer) |
2163 (dired-format-columns-of-files files) | 2165 (dired-format-columns-of-files files) |
2164 (remove-text-properties (point-min) (point-max) '(mouse-face))) | 2166 (remove-text-properties (point-min) (point-max) '(mouse-face help-echo))) |
2165 (save-window-excursion | 2167 (save-window-excursion |
2166 (dired-pop-to-buffer bufname) | 2168 (dired-pop-to-buffer bufname) |
2167 (apply function args)))) | 2169 (apply function args)))) |
2168 | 2170 |
2169 (defun dired-format-columns-of-files (files) | 2171 (defun dired-format-columns-of-files (files) |