From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Brubeck Unhammer Newsgroups: gmane.emacs.help Subject: Re: ispell default dictionary keeps reverting to "american" Date: Sun, 02 Sep 2007 10:15:07 -0700 Organization: http://groups.google.com Message-ID: <1188753307.609687.63490@y42g2000hsy.googlegroups.com> References: <1188730937.948851.317630@22g2000hsm.googlegroups.com> <87642t2sc9.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1188754885 10520 80.91.229.12 (2 Sep 2007 17:41:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2007 17:41:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 02 19:41:23 2007 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 1IRtRi-0001lu-VA for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Sep 2007 19:41:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRtRg-0002jP-Cv for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Sep 2007 13:41:12 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!y42g2000hsy.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 84.236.215.103 Original-X-Trace: posting.google.com 1188753307 6069 127.0.0.1 (2 Sep 2007 17:15:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 2 Sep 2007 17:15:07 +0000 (UTC) In-Reply-To: <87642t2sc9.fsf@gmx.de> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.23 (X11; Linux i686; U; nb),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: y42g2000hsy.googlegroups.com; posting-host=84.236.215.103; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:151579 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:47102 Archived-At: Sven Joachim skreiv: > Look at ispell-change-dictionary's docstring: > > ,---- > | ispell-change-dictionary is an interactive compiled Lisp function in `ispell.el'. > | It is bound to . > | (ispell-change-dictionary dict &optional arg) > | > | Change to dictionary dict for Ispell. > | With a prefix arg, set it "globally", for all buffers. > | Without a prefix arg, set it "locally", just for this buffer. > `---- > > So I'd presume that C-u M-x ispell-change-dictionary (interactively) > or (setq ispell-change-dictionary "nynorsk" t) (in your .emacs) do the > trick. Does that work? Seems like it should, yeah, but even with the prefix argument, the value changes just before pressing M-$. I can start emacs, do "C-h v ispell-dictionary" and it tells me it's set to "nynorsk", then I do M- $ and I get only American suggestions for spelling, "C-h v ispell- dictionary" again tells me that it's set to "american". Right after starting emacs, I can do "C-u M-x ispell-change-dictionary RET nynorsk", and it tells me "No change, using nynorsk dictionary", but still on the first spellcheck it'll revert to "american". _After_ the first spellcheck though, I can use ispell-change-dictionary to set it to "nynorsk" locally, and it stays that way in that buffer (although setting it globally doesn't override "american", I have to set it locally in each new buffer _after_ running at least one ispell- check).