Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
92cb2eaf
Commit
92cb2eaf
authored
May 13, 2008
by
John Paul Wallington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ibuffer-buffer-file-name): New function.
(define-ibuffer-column filename): Use it.
parent
a1feed48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
lisp/ibuffer.el
lisp/ibuffer.el
+12
-8
No files found.
lisp/ibuffer.el
View file @
92cb2eaf
...
...
@@ -1233,6 +1233,17 @@ a new window in the current frame, splitting vertically."
(
defsubst
ibuffer-map-deletion-lines
(
func
)
(
ibuffer-map-on-mark
ibuffer-deletion-char
func
))
(
defun
ibuffer-buffer-file-name
()
(
or
buffer-file-name
(
let
((
dirname
(
or
(
and
(
boundp
'dired-directory
)
(
if
(
stringp
dired-directory
)
dired-directory
(
car
dired-directory
)))
(
and
(
memq
major-mode
'
(
cvs-mode
vc-dir-mode
))
(
bound-and-true-p
default-directory
)))))
(
and
dirname
(
expand-file-name
dirname
)))
""
))
(
define-ibuffer-op
ibuffer-do-save
()
"Save marked buffers as with `save-buffer'."
(
:complex
t
...
...
@@ -1753,14 +1764,7 @@ If point is on a group name, this function operates on that group."
(
t
(
format
"%d files"
total
))))))
(
let
((
directory-abbrev-alist
ibuffer-directory-abbrev-alist
))
(
abbreviate-file-name
(
or
buffer-file-name
(
and
(
boundp
'dired-directory
)
(
if
(
stringp
dired-directory
)
dired-directory
(
car
dired-directory
)))
(
and
(
eq
major-mode
'vc-dir-mode
)
(
bound-and-true-p
default-directory
))
""
))))
(
ibuffer-buffer-file-name
))))
(
define-ibuffer-column
filename-and-process
(
:name
"Filename/Process"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment