Buffer-local in Ebrowse member buffers.")
-(defvar ebrowse--mode-strings nil
- "Strings displayed in the mode line.
-Buffer-local in Ebrowse tree buffers.")
-
-
(defvar ebrowse--frame-configuration nil
"Frame configuration saved when viewing a class/member in another frame.
Buffer-local in Ebrowse buffers.")
Buffer-local in Ebrowse buffers.")
-(defvar ebrowse--mode-line-props nil
- "Text properties of mode line strings in member buffers.
-Buffer-local in Ebrowse member buffers.")
-
-
;;; Temporaries used to communicate with `ebrowse-find-pattern'.
(defvar ebrowse-temp-position-to-view nil)
Tree mode key bindings:
\\{ebrowse-tree-mode-map}"
(interactive)
- (let* ((props (text-properties-at
- 0
- (car (default-value 'mode-line-buffer-identification))))
- (ident (apply #'propertize "C++ Tree" props))
+ (let* ((ident (propertized-buffer-identification "C++ Tree"))
header tree buffer-read-only)
(kill-all-local-variables)
ebrowse--show-file-names-flag
ebrowse--frozen-flag
ebrowse--tree-obarray
- ebrowse--mode-strings
revert-buffer-function))
(setf ebrowse--show-file-names-flag nil
ebrowse--frozen-flag nil
major-mode 'ebrowse-tree-mode
mode-name "Ebrowse-Tree"
- mode-line-buffer-identification (list ident)
+ mode-line-buffer-identification ident
buffer-read-only t
selective-display t
selective-display-ellipses t
(defun ebrowse-update-tree-buffer-mode-line ()
"Update the tree buffer mode line."
- (setf ebrowse--mode-strings
- (concat (if ebrowse--frozen-flag (or buffer-file-name
- ebrowse--tags-file-name))
- (if (buffer-modified-p) "-**")))
(ebrowse-rename-buffer (if ebrowse--frozen-flag
(ebrowse-frozen-tree-buffer-name
ebrowse--tags-file-name)
ebrowse--inline-display-flag
ebrowse--const-display-flag
ebrowse--pure-display-flag
- ebrowse--mode-line-props
ebrowse--frozen-flag)) ;buffer not automagically reused
- (setq ebrowse--mode-line-props (text-properties-at
- 0 (car (default-value
- 'mode-line-buffer-identification)))
- mode-name "Ebrowse-Members"
- mode-line-buffer-identification 'ebrowse--member-mode-strings
+ (setq mode-name "Ebrowse-Members"
+ mode-line-buffer-identification
+ (propertized-buffer-identification "C++ Members")
buffer-read-only t
ebrowse--long-display-flag nil
ebrowse--attributes-flag t
(concat (ebrowse-class-name-displayed-in-member-buffer)
" ")))
(ident (concat name (ebrowse-member-list-name))))
- (setq ebrowse--member-mode-strings
- (apply #'propertize ident ebrowse--mode-line-props))
+ (setq mode-line-buffer-identification
+ (propertized-buffer-identification ident))
(ebrowse-rename-buffer (if name ident ebrowse-member-buffer-name))
(force-mode-line-update)))