From mboxrd@z Thu Jan 1 00:00:00 1970 From: "briangpowell ." Subject: Re: [OT] wildcards in autocorrect? Date: Sat, 28 Mar 2015 13:58:09 -0400 Message-ID: References: <97A269DA-728F-4FC4-8B18-36254ACCA6C7@flintfam.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3bcbce58a5b05125cfd89 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybuzr-0004vL-UP for emacs-orgmode@gnu.org; Sat, 28 Mar 2015 13:58:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ybuzq-0003gZ-Ca for emacs-orgmode@gnu.org; Sat, 28 Mar 2015 13:58:11 -0400 Received: from mail-ig0-x22f.google.com ([2607:f8b0:4001:c05::22f]:37295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybuzq-0003gR-67 for emacs-orgmode@gnu.org; Sat, 28 Mar 2015 13:58:10 -0400 Received: by igcxg11 with SMTP id xg11so43674368igc.0 for ; Sat, 28 Mar 2015 10:58:09 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken Mankoff Cc: Org Mode , "Samuel W. Flint" --001a11c3bcbce58a5b05125cfd89 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable * Cosmic: Also in my email today is a link to discussion which brought up QEmacs + Fabrice Bellard--and what some of you "[OT] Emacs Org-Mode hackers" may be interested in: a tiny Emacs version called "Mg": ... beagle3 5 days ago: Related: Fabrice Bellard[0]'s QEmacs. http://bellard.org/qemacs/ - a 160KB executable provides a mostly complete Emacs experience (sans scripting .. sort of like Mg), but does include syntax coloring, unicode, and watching video inside the editor. A 60KB stripped down version has a feature set comparable to Mg as far as I can tell. [0] of FFMPEG, QEMU, BPG, TCC, JSLINUX and more fame. ... On Sat, Mar 28, 2015 at 1:47 PM, briangpowell . wrote: > * Something like this may do what you seek (which isn't clear to me): > > Mx replace-regexp \boc.*\b \bco.*\b > > ** But why you'd do such a thing is a mystery to me--this may be more > useful to you: > > Query Replace > > M-% string newstring > Replace some occurrences of string with newstring. > C-M-% regexp newstring > Replace some matches for regexp with newstring. > > ** Forgive me if you know this already. > > *** But your question is slightly funny to long time Emacs users like > myself because Emacs has been built, piece-by-piece, by thousands of > programmers, to do the most complex editing jobs you can imagine and the > regular expression library is the fastest in the world for "buffers", > "windows" and visual incremental search and replace (as I describe above)= . > By the way if you have to do search and replace, and you want to do it > visually, I suggest "QEmacs"--made by the same genius who created Qemu > (which is what VirtualBox is based on) and he also broke the record for > calculating the digits of =CF=80. I'm talking about Fabrice Bellard--tha= nk God > for him! > > (I recommend QEmacs--just for the fun of it--it has a few amazing > abilities.) > > * Finally, from reading your general [OT]/help me plea: I strongly sugges= t > you use FlySpell-Mode (in addition to "abbrev" functions that the other > Emacs hackers suggested). > > > > > > > > > > > > > > On Sat, Mar 28, 2015 at 1:17 PM, Ken Mankoff wrote: > >> Maybe key-chord mode could help with this? >> >> -k. >> >> Please excuse brevity. Sent from pocket computer with tiny non-haptic >> feedback keyboard. >> >> > On Mar 28, 2015, at 12:57, "Samuel W. Flint" >> wrote: >> > >> > There's something on endless parentheses that will let you generate a >> correction abbrev with a keystroke. >> > >> > Samuel W. Flint >> > Please forgive any typos as this was composed on a screen keyboard. >> > >> >> On Mar 28, 2015, at 9:19 AM, Matt Price wrote: >> >> >> >> I make a lot of typing errors (I have an injury to one hand, which >> impedes bilateral cooperation). In Libreoffice I am able to define wildc= ard >> autocorrect objects, e.g.: >> >> >> >> oc.* ---> co.* >> >> >> >> This will correct ocrrect, ocmputer, ocndition, etc. Does anyone kno= w >> a way to do something similar in Emacs? Right now I am using abbrev mode >> and defining my errors one by one -- it is a very slow process since I m= ake >> so many mistakes and have a moderately large vocabulary. >> >> >> >> I am sure this is possible somehow, I just don't know how. >> >> >> >> thanks as always, >> >> m >> >> >> >> >> > >> >> > --001a11c3bcbce58a5b05125cfd89 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
* Cosmic: = Also in my email today is a link to discussion which brought up QEmacs + Fa= brice Bellard--and what some of you "[OT] Emacs Org-Mode hackers"= may be interested in: a tiny Emacs version called "Mg":

<= span class=3D"" style=3D"white-space:pre">...
beagle3 5 d= ays ago:

Related: Fabrice Bellard[0]'s QEmacs.= http://bellard.org/qemacs/ - a = 160KB executable provides a mostly complete Emacs experience (sans scriptin= g .. sort of like Mg), but does include syntax coloring, unicode, and watch= ing video inside the editor. A 60KB stripped down version has a feature set= comparable to Mg as far as I can tell.
[0] of FFMPEG, QEMU, BPG,= TCC, JSLINUX and more fame.
...

On Sat, Mar 28, 2015 at 1:47 PM, brian= gpowell . <briangpowellms@gmail.com> wrote:
* Something like this may do= what you seek (which isn't clear to me):

Mx replac= e-regexp=C2=A0\boc.*\b=C2=A0\bco.*\b

** But why you'd do such a thing is a mystery = to me--this may be more useful to you:

=
Query Replace

M-% str= ing <RET> newstring <RET>
Repla= ce some occurrences of string with newstring.=C2=A0
C-M-% regexp <RET> newstring <RET>
Replace some matches for regexp with newstring.

** Forgive me if you= know this already.

*** But your question is slightly funny to long time Emacs us= ers like myself because Emacs has been built, piece-by-piece, by thousands = of programmers, to do the most complex editing jobs you can imagine and the= regular expression library is the fastest in the world for "buffers&q= uot;, "windows" and visual incremental search and replace (as I d= escribe above).=C2=A0 By the way if you have to do search and replace, and = you want to do it visually, I suggest "QEmacs"--made by the same = genius who created Qemu (which is what VirtualBox is based on) and he also = broke the record for calculating the digits of=C2=A0=CF=80.=C2=A0 I'm t= alking about Fabrice Bellard--thank God for him!

(I recommend QEmacs--just for th= e fun of it--it has a few amazing abilities.)

* Finally, from reading your genera= l [OT]/help me plea: I strongly suggest you use FlySpell-Mode (in addition = to "abbrev" functions that the other Emacs hackers suggested).













On Sat, Mar 28, 2015 at 1:17 PM, Ken Mankoff &l= t;mankoff@gmail.com<= /a>> wrote:
Maybe key-chord mode could help w= ith this?

=C2=A0 -k.

Please excuse brevity. Sent from pocket computer with tiny non-haptic feedb= ack keyboard.

> On Mar 28, 2015, at 12:57, "Samuel W. Flint" <
swflint@flintfam.org>= wrote:
>
> There's something on endless parentheses that will let you generat= e a correction abbrev with a keystroke.
>
> Samuel W. Flint
> Please forgive any typos as this was composed on a screen keyboard. >
>> On Mar 28, 2015, at 9:19 AM, Matt Price <moptop99@gmail.com> wrote:
>>
>> I make a lot of typing errors (I have an injury to one hand, which= impedes bilateral cooperation). In Libreoffice I am able to define wildcar= d autocorrect objects, e.g.:
>>
>> oc.* ---> co.*
>>
>> This will correct ocrrect, ocmputer, ocndition, etc.=C2=A0 Does an= yone know a way to do something similar in Emacs? Right now I am using abbr= ev mode and defining my errors one by one -- it is a very slow process sinc= e I make so many mistakes and have a moderately large vocabulary.
>>
>> I am sure this is possible somehow, I just don't know how.
>>
>> thanks as always,
>> m
>>
>>
>



--001a11c3bcbce58a5b05125cfd89--