all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* backward-symbol
@ 2007-01-30  9:23 Andreas Roehler
  2007-01-30 20:25 ` backward-symbol Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Roehler @ 2007-01-30  9:23 UTC (permalink / raw)
  To: emacs-devel


As `forward-syntax' and `forward-symbol' exist already,
these two functions--following scheme of backward-word
in simple.el--could be helpful.

Propose to integrate them into thingatpt.el


(defun backward-symbol (&optional arg)
  "Move backward until encountering the beginning of a symbol.
With argument, do this that many times."
  (interactive "p")
  (forward-symbol (- (or arg 1))))

(defun backward-same-syntax (&optional arg)
  "Move backward until encountering the beginning of a same-syntax.
With argument, do this that many times."
  (interactive "p")
  (forward-same-syntax (- (or arg 1))))

Thanks

__
Andreas Roehler

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: backward-symbol
  2007-01-30  9:23 backward-symbol Andreas Roehler
@ 2007-01-30 20:25 ` Richard Stallman
  2007-02-01  3:48   ` backward-symbol Daniel Brockman
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2007-01-30 20:25 UTC (permalink / raw)
  To: Andreas Roehler; +Cc: emacs-devel

    As `forward-syntax' and `forward-symbol' exist already,
    these two functions--following scheme of backward-word
    in simple.el--could be helpful.

I don't see a need to make a "backward-" version of every motion
function.  It is not hard to pass -1 as an argument.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: backward-symbol
  2007-01-30 20:25 ` backward-symbol Richard Stallman
@ 2007-02-01  3:48   ` Daniel Brockman
  2007-02-01  6:10     ` backward-symbol Kevin Rodgers
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Brockman @ 2007-02-01  3:48 UTC (permalink / raw)
  To: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> I don't see a need to make a "backward-" version of every
> motion function.  It is not hard to pass -1 as an argument.

It's not?  How do you do it?

-- 
Daniel Brockman <daniel@brockman.se>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: backward-symbol
  2007-02-01  3:48   ` backward-symbol Daniel Brockman
@ 2007-02-01  6:10     ` Kevin Rodgers
  2007-02-01  6:21       ` backward-symbol Miles Bader
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Rodgers @ 2007-02-01  6:10 UTC (permalink / raw)
  To: emacs-devel

Daniel Brockman wrote:
> Richard Stallman <rms@gnu.org> writes:
> 
>> I don't see a need to make a "backward-" version of every
>> motion function.  It is not hard to pass -1 as an argument.
> 
> It's not?  How do you do it?

`C-u -1 ...' or `ESC -1 ...' or `M-- M-1 ...'

-- 
Kevin Rodgers
Denver, Colorado, USA

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: backward-symbol
  2007-02-01  6:10     ` backward-symbol Kevin Rodgers
@ 2007-02-01  6:21       ` Miles Bader
  0 siblings, 0 replies; 5+ messages in thread
From: Miles Bader @ 2007-02-01  6:21 UTC (permalink / raw)
  To: Kevin Rodgers; +Cc: emacs-devel

Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:
>>> I don't see a need to make a "backward-" version of every
>>> motion function.  It is not hard to pass -1 as an argument.
>
> `C-u -1 ...' or `ESC -1 ...' or `M-- M-1 ...'

... and note that you don't need to actually type "-1" after ESC or C-u,
you can just type the "-", e.g. "ESC -" or "C-u -", or with a meta key "M--".

-Miles

-- 
I'm beginning to think that life is just one long Yoko Ono album; no rhyme
or reason, just a lot of incoherent shrieks and then it's over.  --Ian Wolff

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-01  6:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-30  9:23 backward-symbol Andreas Roehler
2007-01-30 20:25 ` backward-symbol Richard Stallman
2007-02-01  3:48   ` backward-symbol Daniel Brockman
2007-02-01  6:10     ` backward-symbol Kevin Rodgers
2007-02-01  6:21       ` backward-symbol Miles Bader

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.