* ffap vs. arrows
@ 2004-12-07 0:39 Dan Jacobson
0 siblings, 0 replies; 2+ messages in thread
From: Dan Jacobson @ 2004-12-07 0:39 UTC (permalink / raw)
ffap can't detect the file name with the cursor upon it in the former:
echo>>/etc/motd
echo>> /etc/motd
Only the latter. Nor with single >.
Didn't test <.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ffap vs. arrows
[not found] <mailman.4291.1102461359.27204.bug-gnu-emacs@gnu.org>
@ 2004-12-08 18:05 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-12-08 18:05 UTC (permalink / raw)
Dan Jacobson wrote:
> ffap can't detect the file name with the cursor upon it in the former:
> echo>>/etc/motd
> echo>> /etc/motd
> Only the latter. Nor with single >.
Although valid, that is terrrible style. You should use whitespace
before any redirection operator for readability:
echo >>/etc/motd
That can be made to work when editing shell scripts with this (as long
as point is within the file name itself, of course):
;; In sh-mode, add the ">" redirection operator to the characters
;; stripped from the beginning of a file name:
(let ((chars-beg-end (cdr (assq 'file ffap-string-at-point-mode-alist))))
(setq ffap-string-at-point-mode-alist
(cons (list 'sh-mode
(nth 0 chars-beg-end) ; chars
(concat (nth 1 chars-beg-end) ">") ; beg
(nth 2 chars-beg-end)) ; end
ffap-string-at-point-mode-alist)))
> Didn't test <.
It works with "<" (again, as long as point is within the file name).
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-08 18:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-07 0:39 ffap vs. arrows Dan Jacobson
[not found] <mailman.4291.1102461359.27204.bug-gnu-emacs@gnu.org>
2004-12-08 18:05 ` Kevin Rodgers
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.