From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Flyspell difficult to configure, documentation not honest Date: Fri, 13 Jul 2018 20:41:09 +0200 Organization: Aioe.org NNTP Server Message-ID: <86fu0n7zcq.fsf@zoho.com> References: <974173872.5393015.1531407541695.ref@mail.yahoo.com> <86va9k9xav.fsf@zoho.com> <868t6fa10v.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1531507419 1774 195.159.176.226 (13 Jul 2018 18:43:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2018 18:43:39 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 13 20:43:35 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fe32S-0000Ic-Nl for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jul 2018 20:43:32 +0200 Original-Received: from localhost ([::1]:38754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fe34Z-0002x8-1n for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jul 2018 14:45:43 -0400 X-Received: by 2002:a1c:f60b:: with SMTP id w11-v6mr728733wmc.7.1531507270321; Fri, 13 Jul 2018 11:41:10 -0700 (PDT) Original-Path: usenet.stanford.edu!h21-v6no5460700wmb.0!news-out.google.com!d26-v6ni16849wmb.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: onLrbz09yV+MU3RaxdbMkg.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.3 Mail-Copies-To: never Cancel-Lock: sha1:YtIcT7UcFwODR9IsNx813MWsnkE= Original-Xref: usenet.stanford.edu gnu.emacs.help:223315 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:117440 Archived-At: Eric S Fraga wrote: >> OK, but why not just spell check when you >> are done and have the typing/spellchecking >> processes separated? > > Simple: especially with emails, I forget to > do so and I end up with less than appealing > results... The auto-correct features of > flyspell allow me to continue writing and > only correct when I pause. OK, so the idle timer does it. Still it would seem it would happen fast enough for my taste. In your situation (forgetting to spellcheck) I would bind it to a shortcut and have it enter my muscle memory. If I still forgot about it, I would tie it to some appropriate hook, be it `message-send-hook'. I already have that do this (the below code), which enables me to use the same interface for mail and Usenet (the "Newsgroups" or "To" header that is empty is removed). (defun remove-empty-headers () (interactive) (goto-char (point-min)) (while (re-search-forward "\\(To\\|Newsgroups\\): \n" (get-header-separator-pos) t) ; NOERROR (replace-match "") )) ;; (setq message-send-hook nil) (defun message-send-hook-f () (remove-empty-headers) ) (setq message-send-hook #'message-send-hook-f) But to each his/her own, as always. Here, the results don't vary. Or they do, which is the point. -- underground experts united http://user.it.uu.se/~embe8573