Defining the following function
(defun windows-path-backwards ()
(interactive)
(skip-chars-backward "a-zA-Z0-9\\\\_-:"))
and running it while standing at | in the below text
C:\this\path|
moves it to
C:|\this\path
Redefining the function as
(defun windows-path-backwards ()
(interactive)
(skip-chars-backward "a-zA-Z0-9\\\\_:-"))
and repeating the same procedure moves the pointer from
C:\this\path|
to
|C:\this\path
Why is there difference between these two functions when the only change is the order of the :
and -
characters in the character class skip-chars-backward
takes as an argument.