(setq ele (cdr ele)))
(concat res "$\\)")))
-;;; Font-Lock-Settings
+;; Font-Lock-Settings
(defvar bs-mode-font-lock-keywords
(list ;; header in font-lock-type-face
(list (bs--make-header-match-string)
(interactive)
(let ((current (bs--current-buffer))
(inhibit-read-only t))
+ (unless (kill-buffer current)
+ (error "Buffer was not deleted"))
(setq bs-current-list (delq current bs-current-list))
- (kill-buffer current)
(beginning-of-line)
(delete-region (point) (save-excursion
(end-of-line)
START-BUFFER is the buffer where we started buffer selection.
ALL-BUFFERS is the list of buffer appearing in Buffer Selection Menu."
(let ((name (copy-sequence (buffer-name))))
- (put-text-property 0 (length name) 'mouse-face 'highlight name)
+ (add-text-properties
+ 0 (length name)
+ '(mouse-face highlight
+ help-echo
+ "mouse-2: select this buffer, mouse-3: select in other frame")
+ name)
(if (< (length name) bs--name-entry-length)
(concat name
(make-string (- bs--name-entry-length (length name)) ? ))
'(shell-mode dired-mode))
default-directory
(or buffer-file-name "")))))
- (put-text-property 0 (length string) 'mouse-face 'highlight string)
+ (add-text-properties
+ 0 (length string)
+ '(mouse-face highlight
+ help-echo "mouse-2: select this buffer, mouse-3: select in other frame")
+ string)
string))
(defun bs--insert-one-entry (buffer)
(setq bs--marked-buffers nil)
(bs--show-with-configuration (bs--configuration-name-for-prefix-arg arg)))
-;;; Now provide feature bs
+;; Now provide feature bs
(provide 'bs)
;;; bs.el ends here