all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 26.1.92; skip-chars-backward
@ 2019-03-15 20:33 Andreas Röhler
  2019-03-15 20:47 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Röhler @ 2019-03-15 20:33 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

have the following code in buffer starting and ending with a pipe-char:

-------

|
      ;;;     Wri |

-------

When running the command below, expect it stops at pos 2, after pipe.

Instead it travels from "Wri" only the two lesser chars backward.

Any explanation?

Thanks,

Andreas

--------

(defun skiptest ()
   (interactive)
   (goto-char (point-min))
   (search-forward "Wri")
   (skip-chars-backward "^‘“{<[(|\"'#$/=?!:*+~§%&-_;"))



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

* Re: 26.1.92; skip-chars-backward
  2019-03-15 20:33 26.1.92; skip-chars-backward Andreas Röhler
@ 2019-03-15 20:47 ` Stefan Monnier
  2019-03-15 20:59   ` Andreas Röhler
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2019-03-15 20:47 UTC (permalink / raw)
  To: help-gnu-emacs

>   (skip-chars-backward "^‘“{<[(|\"'#$/=?!:*+~§%&-_;"))

This will stop at any char between & and _ i.e. between codes 38 and 95,
which includes all the uppercase letters A-Z (along with a few more).


        Stefan




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

* Re: 26.1.92; skip-chars-backward
  2019-03-15 20:47 ` Stefan Monnier
@ 2019-03-15 20:59   ` Andreas Röhler
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Röhler @ 2019-03-15 20:59 UTC (permalink / raw)
  To: help-gnu-emacs

On 15.03.19 21:47, Stefan Monnier wrote:
>>    (skip-chars-backward "^‘“{<[(|\"'#$/=?!:*+~§%&-_;"))
> This will stop at any char between & and _ i.e. between codes 38 and 95,
> which includes all the uppercase letters A-Z (along with a few more).
>
>
>          Stefan
>
>
Thanks.


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

end of thread, other threads:[~2019-03-15 20:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-15 20:33 26.1.92; skip-chars-backward Andreas Röhler
2019-03-15 20:47 ` Stefan Monnier
2019-03-15 20:59   ` Andreas Röhler

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.