unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@online.de>
To: help-gnu-emacs@gnu.org
Subject: Re: force upper case of matched regex text pattern
Date: Thu, 13 Mar 2008 09:53:25 +0100	[thread overview]
Message-ID: <200803130953.26330.andreas.roehler@online.de> (raw)
In-Reply-To: <841e479a-000c-4962-90f9-d2c998547f60@e25g2000prg.googlegroups.com>

Am Donnerstag, 13. März 2008 04:12 schrieb xahlee@gmail.com:
> (defun upcase-matched ()
>   "Returns the upcase of matched text."
>   (let (m1 returnText)
>     (setq m1 (upcase (buffer-substring (match-beginning 1) (match-end
> 1))))
>     (setq returnText (concat "<p>" m1 ))
>     returnText
>   )
> )
> 


Maybe I miss your point:

you should be able to write something like

(concat "<p>" (upcase obj))

where obj is `match-string'


Andreas Röhler




  reply	other threads:[~2008-03-13  8:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-13  3:12 force upper case of matched regex text pattern xahlee
2008-03-13  8:53 ` Andreas Röhler [this message]
     [not found] ` <mailman.8825.1205398225.18990.help-gnu-emacs@gnu.org>
2008-03-13 11:03   ` Xah
2008-03-13 17:42 ` Niels Giesen
2008-03-13 19:50   ` Xah Lee

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=200803130953.26330.andreas.roehler@online.de \
    --to=andreas.roehler@online.de \
    --cc=help-gnu-emacs@gnu.org \
    /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).