Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
ee6be958
Commit
ee6be958
authored
Jul 10, 2000
by
Miles Bader
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dired-show-file-type): New function.
parent
f01fd03b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
lisp/dired-aux.el
lisp/dired-aux.el
+14
-1
No files found.
lisp/dired-aux.el
View file @
ee6be958
;;; dired-aux.el --- less commonly used parts of dired -*-byte-compile-dynamic: t;-*-
;; Copyright (C) 1985, 1986, 1992, 1994, 1998 Free Software Foundation, Inc.
;; Copyright (C) 1985, 1986, 1992, 1994, 1998
, 2000
Free Software Foundation, Inc.
;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>.
;; Maintainer: FSF
...
...
@@ -1969,6 +1969,19 @@ with the command \\[tags-loop-continue]."
"sQuery replace in marked files (regexp): \nsQuery replace %s by: \nP"
)
(
tags-query-replace
from
to
delimited
'
(
dired-get-marked-files
)))
;;;###autoload
(
defun
dired-show-file-type
(
file
&optional
deref-symlinks
)
"Print the type of FILE, according to the `file' command.
If FILE is a symbolic link and the optional argument DEREF-SYMLINKS is
true then the type of the file linked to by FILE is printed instead."
(
interactive
(
list
(
dired-get-filename
t
)
current-prefix-arg
))
(
with-temp-buffer
(
if
deref-symlinks
(
call-process
"file"
nil
t
t
"-L"
file
)
(
call-process
"file"
nil
t
t
file
))
(
when
(
bolp
)
(
backward-delete-char
1
))
(
message
(
buffer-string
))))
(
provide
'dired-aux
)
...
...
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