unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: gebser@ameritech.net
Subject: Re: What's a better regexp for 'sentence-end' variable??
Date: Fri, 21 Feb 2003 14:46:00 -0500	[thread overview]
Message-ID: <Pine.LNX.4.44.0302211432410.16795-100000@heidegger.mousecar.net> (raw)
In-Reply-To: <u4r6xzevl.fsf@ID-87814.user.dfncis.de>


You got it!

At 19:53 (UTC+0100) on Fri, 21 Feb 2003 Oliver Scholz said:

= gebser@ameritech.net writes:
= [...]
= >
= > ;; Doesn't work. 3
= > ;(eval-after-load 'sgml-mode
= > ;  (define-key sgml-mode-map (kbd "M-e") 'my-html-forward-sentence))
=     ^^^
= 
= [I think, that should be ...'(define-key ... (Note the quote.)]

That fixed it!  Works as expected now.  Very good eye!

= [...]
= Hmm, I am not familiar with all those SGML/HTML/XML-editing-mode. Is
= `html-helper-mode' a package different from psgml? Maybe there is an
= `html-helper-mode-map'?

Not that I've been able to find (using "C-h a html-helper-mode-map" 
and other things).

= 
= >> [...]
= 
= I would use the same technique again:
= 
= (defun my-html-backward-sentence ()
=   (interactive)
=   (save-match-data
=     (if (re-search-backward ">\\([[:alpha:]\\s-*]\\|[.?!]\\)" nil t)
= 	(goto-char (match-beginning 1)) ; then: go to beginning of
= 					; subexpression 1.
=       (goto-char (point-min))))) ; else: go to point-min.
= 
= Hint: If you want to construct regexps for Emacs Lisp, M-x re-builder
= makes this easy. It provides visual feedback on the regexp you are
= constructing in the buffer, subexpressions included.

I'll have a go at this later.  I've got to spend a little more time on 
doing real (paying) work.


Oliver,

Thanks again for everything... very much appreciated.  You're magic.

ken

  reply	other threads:[~2003-02-21 19:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2220.1045823872.21513.help-gnu-emacs@gnu.org>
2003-02-21 14:40 ` What's a better regexp for 'sentence-end' variable?? Stefan Monnier <foo@acm.com>
2003-02-21 14:55   ` gebser
2003-02-21 18:53 ` Oliver Scholz
2003-02-21 19:46   ` gebser [this message]
2003-02-21 20:56     ` Kai Großjohann
2003-02-22  1:14       ` gebser
2003-02-21 19:09 ` David Kastrup
     [not found] <un0kr4229.fsf@ID-87814.user.dfncis.de>
2003-02-21 10:37 ` gebser
     [not found] <mailman.2070.1045574190.21513.help-gnu-emacs@gnu.org>
2003-02-18 14:06 ` Oliver Scholz
2003-02-18 20:15   ` gebser
2003-02-18 22:32     ` David Kastrup
2003-02-19 15:38       ` Kai Großjohann
2003-02-19 15:44         ` David Kastrup
2003-02-19 16:26           ` Kai Großjohann
2003-02-18 22:54     ` Kevin Rodgers
2003-02-19 20:42       ` gebser
2003-02-19 18:41   ` gebser
2003-02-18 13:16 gebser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0302211432410.16795-100000@heidegger.mousecar.net \
    --to=gebser@ameritech.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).