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
Open sidebar
emacs
emacs
Commits
cb0cd911
Commit
cb0cd911
authored
Sep 22, 1994
by
Richard M. Stallman
Browse files
(file-ownership-preserved-p): New function.
parent
2d5e692e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
lisp/files.el
lisp/files.el
+7
-0
No files found.
lisp/files.el
View file @
cb0cd911
...
...
@@ -1429,6 +1429,13 @@ we do not remove backup version numbers, only true file version numbers."
(
string-match
"~\\'"
name
)
(
length
name
))))))))
(
defun
file-ownership-preserved-p
(
file
)
"Returns t if deleting FILE and rewriting it would preserve the owner."
(
let
((
handler
(
find-file-name-handler
file
'file-ownership-preserved-p
)))
(
if
handler
(
funcall
handler
'file-ownership-preserved-p
file
)
(
=
(
nth
2
(
file-attributes
file
))
(
user-uid
)))))
(
defun
file-name-sans-extension
(
filename
)
"Return FILENAME sans final \"extension\".
The extension, in a file name, is the part that follows the last `.'."
...
...
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