all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* thing-at-point-file-name-chars and whitespace e.g. char 32
@ 2009-05-08 20:20 S+*n_Pe*rm*n
  0 siblings, 0 replies; only message in thread
From: S+*n_Pe*rm*n @ 2009-05-08 20:20 UTC (permalink / raw)
  To: emacs-devel

Why doesn't `thing-at-point-file-name-chars; accept " " as an
allowable character by default?
This seems problematic on systems that allow whitespace in paths (not just w32)
;;;
(defvar thing-at-point-file-name-chars "-~/[:alnum:]_.${}#%,:"
  "Characters allowable in filenames.")

;;;
c:/Documents and Settings/All Users/Documents/{...non-whitespace-path...}/
^point     ^(char-after) => 32
(insert (thing-at-point 'filename))
=> c:/Documents

;;;
c:/Documents_and_Settings/All_Users/Documents/{...non-whitespace-path...}/
^point
(insert (thing-at-point 'filename))
=>c:/Documents_and_Settings/All_Users/Documents/{...non-whitespace-path...}/


s_P




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-08 20:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-08 20:20 thing-at-point-file-name-chars and whitespace e.g. char 32 S+*n_Pe*rm*n

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.