From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sato_ichi@yahoo.com Newsgroups: gmane.emacs.help Subject: Re: spell checker in nroff mode? Date: Sun, 13 Apr 2008 19:50:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208153052 4600 80.91.229.12 (14 Apr 2008 06:04:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Apr 2008 06:04:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 14 08:04:51 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JlHoA-0002da-H7 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Apr 2008 08:04:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JlHnV-00059B-O9 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Apr 2008 02:04:09 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f36g2000hsa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 69.246.119.249 Original-X-Trace: posting.google.com 1208141404 14495 127.0.0.1 (14 Apr 2008 02:50:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 14 Apr 2008 02:50:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f36g2000hsa.googlegroups.com; posting-host=69.246.119.249; posting-account=EZA6BQoAAACC6AxNKsX1Le2UQWMdWqIS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080208 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:157905 X-Mailman-Approved-At: Mon, 14 Apr 2008 02:03:16 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53273 Archived-At: On Apr 5, 1:54 pm, Luke Huang wrote: > I am not a English native speaker so that I always open spell checker > on-the-fly. It works pretty well even if in programming. But, it's a > bit inconvenient when it works when I am writing troff file. > > For example: > > \fBPhysical Address\fP > > In this case spell checker highlights \fBPhysical as a wrong word. How > can I avoid this? (either in an Emacs way or in a troff way) Which spell checker do you have installed, ispell or aspell? If I use aspell in ispell compatibility mode from within Emacs, I can never get it to parse troff files when in nroff mode, no matter what options I try. The only way I got it to work was to use the real ispell program. If you have aspell installed then you probably have a /usr/bin/ispell linked to aspell, so you'll have to rename or delete that link. After installing the real ispell, put this in your .emacs file: (setq ispell-program-name "ispell") (add-hook 'nroff-mode-hook (lambda () (setq ispell-parser 'nroff))) The spell checker should then be able to parse troff when in nroff mode.