From mboxrd@z Thu Jan 1 00:00:00 1970 From: "briangpowell ." Subject: Re: [OT] wildcards in autocorrect? Date: Sat, 28 Mar 2015 13:47:53 -0400 Message-ID: References: <97A269DA-728F-4FC4-8B18-36254ACCA6C7@flintfam.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3b5882b846b05125cd99f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybupv-000853-P1 for emacs-orgmode@gnu.org; Sat, 28 Mar 2015 13:47:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ybupu-0008Fp-DN for emacs-orgmode@gnu.org; Sat, 28 Mar 2015 13:47:55 -0400 Received: from mail-ig0-x233.google.com ([2607:f8b0:4001:c05::233]:36962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybupu-0008Fj-6S for emacs-orgmode@gnu.org; Sat, 28 Mar 2015 13:47:54 -0400 Received: by igcxg11 with SMTP id xg11so43579895igc.0 for ; Sat, 28 Mar 2015 10:47:53 -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" --001a11c3b5882b846b05125cd99f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable * 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--thank= 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 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 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 wildca= rd > autocorrect objects, e.g.: > >> > >> oc.* ---> co.* > >> > >> This will correct ocrrect, ocmputer, ocndition, etc. Does anyone know > 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 ma= ke > 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 > >> > >> > > > > --001a11c3b5882b846b05125cd99f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
* Something like this may do what you seek (which isn= 't clear to me):

Mx replace-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 u= seful to you:

Query Replace

M-% string <RET> newstring= <RET>
Replace some occurrences of st= ring 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 you= r question is slightly funny to long time Emacs users like myself because E= macs has been built, piece-by-piece, by thousands of programmers, to do the= most complex editing jobs you can imagine and the regular expression libra= ry is the fastest in the world for "buffers", "windows"= and visual incremental search and replace (as I describe above).=C2=A0 By = the way if you have to do search and replace, and you want to do it visuall= y, 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 calc= ulating the digits of=C2=A0=CF=80.=C2=A0 I'm talking about Fabrice Bell= ard--thank 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 suggest you use FlySpell-Mode (in addition to "abbrev" f= unctions that the other Emacs hackers suggested).













On Sat, Mar 28, 2015 at 1:17 PM, Ken = Mankoff <mankoff@gmail.com> wrote:
May= be key-chord mode could help with 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
>>
>>
>


--001a11c3b5882b846b05125cd99f--