unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* keyboard macro
@ 2010-05-28  8:05 Kanhaiya
  0 siblings, 0 replies; 9+ messages in thread
From: Kanhaiya @ 2010-05-28  8:05 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 402 bytes --]

Hi

Anyone can tell me that why string not appears as selected when i use a keyboard macro.
This macro contains 'query-replace-regex "<qry [^>]+>.+</qry>' and binded with key 'C+f1'.
But while running C+f1 in file, text not got selected but it reaches at the point of ending </qry>.

I need that text should be in selected mode where user can press 'y' or 'no' or '!' for replacement.

Kanhaiya

[-- Attachment #2: Type: text/html, Size: 1099 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* keyboard macro
@ 2013-10-21 16:35 Christof Spitz
  2013-10-21 17:26 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Christof Spitz @ 2013-10-21 16:35 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I have to write special characters for transliteration of a non-european
language (devanagari) in Emacs. These include characters like ā,ī,ū,ś,ṣ etc.
Basically this has become easy since Emacs supports Unicode. The question is how
to enter those special characters easily. In Windows, I use a scripting program
called "AutoHotKey". I defined macros so that, for example, when I write "..a"
it will insert "ā" etc. In Emacs, I was not able to define such macros. I have
to use the "function keys" such as f5, or Ctrl or Alt (Meta), so that I have to
enter f5-a to produce ā, for example. That makes the typewriting slow. If I
define a macro instead, it needs to finish the string "..a" with a space to
"trigger" the insert, but this is not what I want.

So my question: Is there a way to define a macro/keyboard function that will
insert a certain character at the point when I write "..x" (not followed by a
space)?

Or should I better look for a Linux scripting program that works similar to
AutoHotKey in Windows?

Thanks for any hints,
Christof

--

Christof Spitz
Opitzstr. 6a
22301 Hamburg
phone +49 40 38636135
mobile +49 172 9008988


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.4404.1382373480.10748.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2013-10-22 17:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-28  8:05 keyboard macro Kanhaiya
  -- strict thread matches above, loose matches on Subject: below --
2013-10-21 16:35 Christof Spitz
2013-10-21 17:26 ` Stefan Monnier
     [not found] ` <mailman.4410.1382376390.10748.help-gnu-emacs@gnu.org>
2013-10-21 17:39   ` Rustom Mody
2013-10-21 18:17 ` Yuri Khan
2013-10-21 18:25   ` Yuri Khan
     [not found] <mailman.4404.1382373480.10748.help-gnu-emacs@gnu.org>
2013-10-21 17:00 ` Rustom Mody
2013-10-21 17:59   ` Christof Spitz
2013-10-22 17:38 ` Rustom Mody

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).