Permalink
Browse files

* helm-help.el: Add info about colors in buffers.

* helm-buffers.el: Add comments, no code change.
* helm-grep.el (helm-c-grep-save-results-1):
buffer-read-only is already local, forget to push this in precedent patch.
  • Loading branch information...
1 parent 4a2f1ca commit 5abfa5895e40cdf85d1dbcec84073a30ebee5711 @thierryvolpiatto thierryvolpiatto committed Dec 4, 2012
Showing with 15 additions and 8 deletions.
  1. +7 −7 helm-buffers.el
  2. +1 −1 helm-grep.el
  3. +7 −0 helm-help.el
View
@@ -219,22 +219,22 @@ Should be called after others transformers i.e (boring buffers)."
'help-echo (car (rassoc buf dired-buffers)))
" " str-before-size size " " mode)
i))
- ;; A buffer file modified somewhere outside of emacs.
+ ;; A buffer file modified somewhere outside of emacs.=>red
((and bfname (not (file-remote-p bfname))
(file-exists-p bfname)
(not (verify-visited-file-modtime buf)))
(cons (concat (propertize truncbuf 'face 'helm-buffer-saved-out
'help-echo bfname)
" " str-before-size size " " mode)
i))
- ;; A new buffer file not already saved on disk.
+ ;; A new buffer file not already saved on disk.=>indianred2
((and bfname (not (file-remote-p bfname))
(not (verify-visited-file-modtime buf)))
(cons (concat (propertize truncbuf 'face 'helm-buffer-not-saved
'help-echo bfname)
" " str-before-size size " " mode)
i))
- ;; A Remote buffer file modified and not saved on disk.
+ ;; A Remote buffer file modified and not saved on disk.=>@orange
((and bfname (file-remote-p bfname) (buffer-modified-p buf))
(let ((prefix (propertize
" " 'display
@@ -243,13 +243,13 @@ Should be called after others transformers i.e (boring buffers)."
'help-echo bfname)
" " str-before-size size " " mode)
i)))
- ;; A buffer file modified and not saved on disk.
+ ;; A buffer file modified and not saved on disk.=>orange
((and bfname (buffer-modified-p buf))
(cons (concat (propertize truncbuf 'face 'helm-ff-symlink
'help-echo bfname)
" " str-before-size size " " mode)
i))
- ;; A remote buffer file not modified and saved on disk.
+ ;; A remote buffer file not modified and saved on disk.=>@green
((and bfname (file-remote-p bfname))
(let ((prefix (propertize
" " 'display
@@ -258,13 +258,13 @@ Should be called after others transformers i.e (boring buffers)."
'help-echo bfname)
" " str-before-size size " " mode)
i)))
- ;; A buffer file not modified and saved on disk.
+ ;; A buffer file not modified and saved on disk.=>green
(bfname
(cons (concat (propertize truncbuf 'face 'font-lock-type-face
'help-echo bfname)
" " str-before-size size " " mode)
i))
- ;; Any non--file buffer.
+ ;; Any non--file buffer.=>grey italic
(t (cons (concat (propertize truncbuf 'face 'italic
'help-echo i)
" " str-before-size size " " mode) i)))))
View
@@ -585,7 +585,7 @@ If N is positive go forward otherwise go backward."
do (setq new-buf (read-string "GrepBufferName: " "*hgrep ")))
(setq buf new-buf))
(with-current-buffer (get-buffer-create buf)
- (set (make-local-variable 'buffer-read-only) t)
+ (setq buffer-read-only t)
(let ((inhibit-read-only t))
(erase-buffer)
(insert "-*- mode: helm-grep -*-\n\n"
View
@@ -164,6 +164,13 @@ helm will look for lisp mode buffers starting by \"helm\" and have \"moc\" in th
When creating a new buffer use \\[universal-argument] to choose a mode for your buffer in a list.
This list is customizable, see `helm-buffers-favorite-modes'.
+Meaning of colors and prefixes for buffers:
+Remote buffers are prefixed with '@'.
+Red => A buffer saved by an external process.
+Indianred2 => A new buffer file not already saved on disk.
+Orange => A buffer file modified and not saved.
+
+
\nSpecific commands for `helm-buffers-list':
\\<helm-c-buffer-map>
\\[helm-buffer-run-zgrep]\t\t->Grep Buffer(s) works as zgrep too (C-u grep all buffers but non--file buffers).

0 comments on commit 5abfa58

Please sign in to comment.