From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gH0QBjGqqGZsTgAA62LTzQ:P1 (envelope-from ) for ; Tue, 30 Jul 2024 08:54:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gH0QBjGqqGZsTgAA62LTzQ (envelope-from ) for ; Tue, 30 Jul 2024 10:54:09 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=gNpCyah2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722329648; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xwS7MxOcXf/6WuITUSNvXSmYdv/PlFuwEmFA8hKxk+A=; b=jZNiysveGre4ipT9cWjpFag+NmSKfidR+ofloZRmZnNmyQa02vcE/gtrYab5EZj46pR5Nl Cavpz26TpFY7d/16DSTWT7EAvsnr3Qj+zFyq+7FHP8R2kYkVetWpT99iaRaN2LpBJXJI+F hpxMYjL4KVOs882RmHTHzbJR379Rw7rP3ERwdXBOlOy0wbkLPStr1mER+JXXFA+8S3MRp8 Vq1wc0+C68n8uxFWAXB6dJHYnqu6QxbC05XVIU9szh9k9lvln8YQdymy2sUL9xGGDQT4/j 3uFUQrm1riFUnmCW8bJgU+ERFZFm3d9fuGwp2gi4X4Uzs8U+NoDbu5vmXyRBjg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722329648; a=rsa-sha256; cv=none; b=Ju7FIGkT0I4npeYN0q78fkqWxYVTBh9LK6TONWm3wDGj8vyT4IEKXrtuaj1PWQvqRmNzDJ bD4Mi4q4HmTG9xClc8TcoFYFu0bpBGkbKhKPCc8jhRy/ojGVLUXHMO4OVEK4FaE4RntDhb /9Fz2fwxvtTFb2J1OL2aYgRjNOvXen5ZmuiKrmwzMInyowEYpmd16kuoS0Che394vWqpKp 9SZk6Jv8ifO4+chBZqt55a7UEcZz6m05DYX8FJzDJg9z7BENNKCZ5UJ/ROAIBPCk8y+aHo ydLHHi8jwsC5qIwnvfMo79MfXMgSVk9zWFX6H7ea4dddtYxuH18YZV0K4XNqlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=gNpCyah2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D97E938410 for ; Tue, 30 Jul 2024 10:54:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYibQ-0001Fz-Le; Tue, 30 Jul 2024 04:53:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sYibP-0001Fk-Gv for emacs-orgmode@gnu.org; Tue, 30 Jul 2024 04:53:03 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sYibN-0000Ga-KD for emacs-orgmode@gnu.org; Tue, 30 Jul 2024 04:53:03 -0400 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5b391c8abd7so1952060a12.2 for ; Tue, 30 Jul 2024 01:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722329579; x=1722934379; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=xwS7MxOcXf/6WuITUSNvXSmYdv/PlFuwEmFA8hKxk+A=; b=gNpCyah2zR8jCROVmWgKrtiBun/WGMl/mSR1UoTXXawy1Huszadd2Xn/fCyfahvm0x UfkCnpM92TeYjdlb2/rK25VneqmhTJVZzcjJsaLwJ933wHl1p8l8UNBZgDay69AXzW54 v756IV/HlIqJL8KiMpptjOV35Cun5tLn2lnAGjsNqkoJ49cOozuzDyX3TOaHBiRci24q Y5WnsqzC7fbOeKAUNJ3MoHqbkr+M4JW8788l1CQ2MwzTV5mkLTtw1suA/6zh//VSHPj7 5YDk/ElTEyCwrDZxqigLduUMiJomkMFst7KAvsC3Uxj/94zD1P2lAM4iUgO0oV98S1xq YJJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722329579; x=1722934379; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xwS7MxOcXf/6WuITUSNvXSmYdv/PlFuwEmFA8hKxk+A=; b=tWW4xGz5ArP5+/mV8gIX0g3DZ9hrXoQPaT8rTYEYwzVkDmGzwUmKIM9Rlo8FN+XT+F JJ26uCkt5o30eqaVT0bvOcv5m3EsXgGcwBQyBASK80zz+F3O9/v70xcpIdP09YIbEeJj UubK3fo/YX/xCFeUzJs1MzybIcPzptUYHghDXQA+6sCnBOoxFNLPzblWjZsSmiN6gXBb j9NrGys7NC95gDN/kKHmbHRo9MFuHZXEHjseLYA3+MN5lHiaHQz7EC7mNWiYwJIpmTxw g3EuORo9Ce6syGYnaotsbvY9eYM5DJ3KozFRunUAKFkjTxpYSZ594dA0hqCBm3v8p207 e5gg== X-Gm-Message-State: AOJu0Yy4njQWyZy14tLer8z9+hdDvqyfvKXAjVNcear+HpAaIGLwRs64 yyt0MwxeB19eA/lrrcMXNJeoQsQAQKpeb67dzHv5qO/qSp/heYzDbhLRbVdQlpcxc2Giaz4To9C HkQ8s4Z6C7zET4INwjbyTFOs4/LLNhc0W38Q= X-Google-Smtp-Source: AGHT+IEKCh+tXrKzIwWKr36fGjN117m0tMxX+qGwu0C5lAgDKFS/eNuM1X7iTb2xjfDMiEuPjNXQNpdtQ1kk/Y6PHP4= X-Received: by 2002:a50:d714:0:b0:5a1:1:27ad with SMTP id 4fb4d7f45d1cf-5b021287307mr5969547a12.16.1722329579130; Tue, 30 Jul 2024 01:52:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pedro Andres Aranda Gutierrez Date: Tue, 30 Jul 2024 10:52:32 +0200 Message-ID: Subject: Re: PATCH: Add tip to integrate spellchecking with #+LANGUAGE: To: Org Mode List Content-Type: multipart/alternative; boundary="000000000000c016a3061e731a63" Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=paaguti@gmail.com; helo=mail-ed1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.75 X-Spam-Score: -6.75 X-Migadu-Queue-Id: D97E938410 X-Migadu-Scanner: mx11.migadu.com X-TUID: VXo3Oe89fJGW --000000000000c016a3061e731a63 Content-Type: text/plain; charset="UTF-8" Hi, put his on hold FTMB, please. I don't yet understand why I get 'en' regardless the language I state in org 9.7.x However, "evaluating" #+LANGUAGE: at startup may be a nice feature for the future, in the sense of reducing the amount of lines to setup Emacs for a specific document. Best, /PA On Tue, 30 Jul 2024 at 08:18, Pedro A. Aranda wrote: > > doc/org-manual.org: Add tip to integrate spellchecking with #+LANGUAGE: > > * doc/org-manual.org: Show how to watch ~org-export-default-language~ in > your ELISP code to automatically adjust your spell-checker. > > --- > > doc/org-manual.org | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/doc/org-manual.org b/doc/org-manual.org > index 6cf51ebca..020fd061f 100644 > --- a/doc/org-manual.org > +++ b/doc/org-manual.org > @@ -14075,6 +14075,18 @@ general options (see [[*Export Settings]]). > '("AUTO" "polyglossia" t ("xelatex" "lualatex"))) > #+end_src > > + *TIP*: you can watch this variable in your ELISP code to interface > + with your spellchecker: > + > + #+begin_src emacs-lisp > + (defun org-export-default-language-watcher (_ newval _ _) > + ;; newval will hold the value defined in #+LANGUAGE: > + ) > + > + (add-variable-watcher 'org-export-default-language > + #'org-export-default-language-watcher)) > + #+end_src > + > - =LATEX_CLASS= :: > > #+cindex: @samp{LATEX_CLASS}, keyword > -- > 2.34.1 > > -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000c016a3061e731a63 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

put his on hold FTMB, please. I don= 't yet understand why I get 'en' regardless the language=C2=A0I= state in org 9.7.x

However, "evaluating"= ; #+LANGUAGE: at startup may be a nice feature for the future, in the sense= of reducing the amount of lines to setup Emacs for a specific document.=C2= =A0

Best, /PA

On Tue, 30 Jul 2024 at 08:18, P= edro A. Aranda <paaguti@gmail.com> wrote:
=C2=A0=C2=A0doc/org-manual.org: Add tip to integrate spellchecking with #+L= ANGUAGE:

* doc/org-manual.org: Show how to watch ~org-export-default-language~ in your ELISP code to automatically adjust your spell-checker.

---

=C2=A0=C2=A0doc/org-manual.org | 12 ++++++++++++
=C2=A0=C2=A01 file changed, 12 insertions(+)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 6cf51ebca..020fd061f 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -14075,6 +14075,18 @@ general options (see [[*Export Settings]]).
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 '("AUTO" "polyglossia" t (&qu= ot;xelatex" "lualatex")))
=C2=A0=C2=A0=C2=A0 #+end_src

+=C2=A0 *TIP*: you can watch this variable in your ELISP code to interface<= br> +=C2=A0 with your spellchecker:
+
+=C2=A0 #+begin_src emacs-lisp
+=C2=A0=C2=A0=C2=A0 (defun org-export-default-language-watcher (_ newval _ = _)
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; newval will hold the value defined in #+= LANGUAGE:
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 )
+
+=C2=A0=C2=A0=C2=A0 (add-variable-watcher 'org-export-default-language<= br> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 #'org-export-default-language-watcher))
+=C2=A0 #+end_src
+
=C2=A0=C2=A0- =3DLATEX_CLASS=3D ::

=C2=A0=C2=A0=C2=A0 #+cindex: @samp{LATEX_CLASS}, keyword
--
2.34.1



--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet

--000000000000c016a3061e731a63--