all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Completion- Help
@ 2005-11-30  9:44 FD
  2005-11-30 10:34 ` Anselm Helbig
  0 siblings, 1 reply; 2+ messages in thread
From: FD @ 2005-11-30  9:44 UTC (permalink / raw)


Hi,
I'm trying to use etags to create a Tags file containing a list of words 
so I can use the completion using this list of words.
I put in my .emacs.el this :
(setq tags-table-list '("c:/Program Files/emacs/bin/" ))
(global-set-key [C-tab] 'dabbrev-expand)

(I'm using Windows XP)

My question is how to write the regexp (I'm a newbie) to retrieve the 
words from a file. The file contains only a list of words separated by 
spaces.

I tried
etags -l none -r="[a-zA-Z0-9]+" list.txt
but I obtained this:
etags:  [a-zA-Z0-9]+  :unterminated regexp.

What's wrong?
What should I write?

Where can I find a good documentation on regexps for emacs?

I would like to color only some words in a text (contained in this 
list). Is there an easy way to do this?

Many Thanks

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

* Re: Completion- Help
  2005-11-30  9:44 Completion- Help FD
@ 2005-11-30 10:34 ` Anselm Helbig
  0 siblings, 0 replies; 2+ messages in thread
From: Anselm Helbig @ 2005-11-30 10:34 UTC (permalink / raw)


At Wed, 30 Nov 2005 10:44:24 +0100,
FD wrote:
> My question is how to write the regexp (I'm a newbie) to retrieve the 
> words from a file. The file contains only a list of words separated by 
> spaces.
> 
> I tried
> etags -l none -r="[a-zA-Z0-9]+" list.txt
> but I obtained this:
> etags:  [a-zA-Z0-9]+  :unterminated regexp.

the man page for etags has examples for how it expects a regex to look
like: they have to delimited by slashes. 

> Where can I find a good documentation on regexps for emacs?

i don't know if etags' regexes use the same syntax as emacs' regexes,
but they look similar ("basic regular expressions"). 

in general, the info documentation for emacs is excellent. you can
read about regexps here:

     (info "(Emacs)Regexps")

(copy this line into some emacs buffer, put the cursor behind the last
parentheses, and press C-x C-e). 

hope that helps, 

anselm

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

end of thread, other threads:[~2005-11-30 10:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-30  9:44 Completion- Help FD
2005-11-30 10:34 ` Anselm Helbig

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.