From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Loris Bennett" Newsgroups: gmane.emacs.help Subject: Re: Spelling correction keyboard fumble Date: Mon, 02 May 2016 09:21:14 +0200 Organization: Freie Universitaet Berlin Message-ID: <87lh3tvsb9.fsf@hornfels.zedat.fu-berlin.de> References: <87twikbo0y.fsf@hornfels.zedat.fu-berlin.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1464882236 27346 80.91.229.3 (2 Jun 2016 15:43:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2016 15:43:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 02 17:43:49 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b8UmD-0003z2-I0 for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jun 2016 17:43:17 +0200 Original-Received: from localhost ([::1]:48104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8UmC-0005fe-RZ for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jun 2016 11:43:16 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-X-Trace: news.uni-berlin.de 6niXAgVW4p+2qx2PlTJnMgkTxlG5mNVh1p+oR65XTLK0fQ Cancel-Lock: sha1:J2s3Q7DkPlddN9fff+CLziM85vo= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:217586 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110203 Archived-At: Hi Joost, Joost Kremers writes: > Loris Bennett wrote: >> Hi, >> >> In a buffer using flyspell with a German dictionary, I had just typed >> >> In adfrc.sh steht >> >> when I had a keyboard fumble and hit some random keys. The above got >> changed to >> >> In Afrika.sh steht >> >> In *Messages* I found: >> >> Corrections: Africa Africa Aelfric defrock unfrock offtrack adfrc Africa Aelfric >> >> Does anyone know what function I called and, correspondingly, which keys >> I must have hit? > > Probably `C-;`, which is bound to > `flyspell-auto-correct-previous-word'. Yes, I think you are probably right. > You know, you can always use `C-h l` (view-lossage) to find out what > keys you just pressed. In Emacs 25, it even displays the commands the > keys you pressed are bound to. Thanks for reminding me about lossage. That's very much a passive part of my Emacs vocabulary. >> And why is the list of corrections in English? > > Mmm... The obvious answer would be that `ispell-local-dictionary` is set > to "english" or some equivalent, but given that the corrected word is > "Afrika", which is obviously German, that can't be the case. So put me > down for a "beats me". Trying out 'C-;' and switching dictionaries around between English and German, I can't reproduce my original observation, so probably as well as the keyboard fumble there was a bit of eye and/or brain fumble going on as well ... Cheers, Loris -- This signature is currently under construction.