* file-name-core
@ 2006-05-28 19:47 Andreas Roehler
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Roehler @ 2006-05-28 19:47 UTC (permalink / raw)
Hi,
need quite often a combination of
(file-name-sans-extension (file-name-nondirectory file)).
Would call that `file-name-core':
(defun file-name-core (file)
" "
(interactive "fFile to strip: ")
(file-name-sans-extension (file-name-nondirectory file)))
;; (file-name-core "/tmp/daaas.txt")"daaas"
Probably it's known somewhere...
Andreas Roehler
^ permalink raw reply [flat|nested] 2+ messages in thread
* file-name-core
@ 2006-05-28 19:47 Andreas Roehler
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Roehler @ 2006-05-28 19:47 UTC (permalink / raw)
Hi,
need quite often a combination of
(file-name-sans-extension (file-name-nondirectory file)).
Would call that `file-name-core':
(defun file-name-core (file)
" "
(interactive "fFile to strip: ")
(file-name-sans-extension (file-name-nondirectory file)))
;; (file-name-core "/tmp/daaas.txt")"daaas"
Probably it's known somewhere...
Andreas Roehler
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-28 19:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-28 19:47 file-name-core Andreas Roehler
-- strict thread matches above, loose matches on Subject: below --
2006-05-28 19:47 file-name-core Andreas Roehler
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.