From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#45693: [two word expansion works, but write-abbrev-file destroys it] Date: Wed, 13 Jan 2021 10:39:38 +0100 Message-ID: <87bldtqip1.fsf@gmail.com> References: <87v9cam56e.fsf@mat.ucm.es> <87lfd0svvp.fsf@gnus.org> <87czycpz71.fsf@mat.ucm.es> <87wnwkiybo.fsf@gnus.org> <87eeis1oag.fsf_-_@mat.ucm.es> <87wnwjd9yy.fsf@gmail.com> <83czybfq9q.fsf@gnu.org> <875z4379ri.fsf@mat.ucm.es> <87mtxf4bm6.fsf@gmail.com> <87pn2bxm7x.fsf@mat.ucm.es> <87h7nn2oqp.fsf@gmail.com> <87h7nnxkrm.fsf@mat.ucm.es> <8735z72nk3.fsf@gmail.com> <87sg767fdx.fsf@mat.ucm.es> <87bldu1m0m.fsf@gmail.com> <87h7nmumrq.fsf@mat.ucm.es> <87y2gyxchx.fsf@gmail.com> <87h7nl2spr.fsf@mat.ucm.es> <87o8htqjs4.fsf@gmail.com> <87a6tdyyn0.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11206"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 45693@debbugs.gnu.org To: Uwe Brauer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 13 10:47:02 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzck1-0002kq-OC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jan 2021 10:47:01 +0100 Original-Received: from localhost ([::1]:34014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzck0-00071O-PD for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jan 2021 04:47:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzcdG-0008PD-Fp for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2021 04:40:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzcdG-0006dY-1o for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2021 04:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzcdF-000780-Te for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2021 04:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2021 09:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45693 X-GNU-PR-Package: emacs Original-Received: via spool by 45693-submit@debbugs.gnu.org id=B45693.161053079027379 (code B ref 45693); Wed, 13 Jan 2021 09:40:01 +0000 Original-Received: (at 45693) by debbugs.gnu.org; 13 Jan 2021 09:39:50 +0000 Original-Received: from localhost ([127.0.0.1]:34291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzcd3-00077W-MH for submit@debbugs.gnu.org; Wed, 13 Jan 2021 04:39:50 -0500 Original-Received: from mail-wm1-f41.google.com ([209.85.128.41]:54143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzcd0-00077I-6m for 45693@debbugs.gnu.org; Wed, 13 Jan 2021 04:39:48 -0500 Original-Received: by mail-wm1-f41.google.com with SMTP id k10so943616wmi.3 for <45693@debbugs.gnu.org>; Wed, 13 Jan 2021 01:39:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=oXmCp+QLQAiudYZr+DLNOQgl2/1XcQBmAFQ3whR8qNY=; b=Zp9feIA8dQ5mn1aQPN/cEZJjyFecrOUCh9SNZjtmPhmKfFb38t6vfuDSSNu/VOuezZ NMRLegb2vzIcgyKn33paWKAajXzv7r1A9IpSFIUZGfeLpLkoQ5MMHMAJb0cVIkZ48A3B B8DMD/S9UqJIjVC007jRv0LMnZOKSldZxD42AGiarO//g9JC8+k4M+6X4LREstp/q3PM gRWignEnfJeKNhErUMgDg/a3vtaXsdP6/lACmnYueaXOgt3yFMkKo8tSrUnbeL4JRO95 dOBegpHgKr6306aoUCkFA/P3fZiou/I/v2wl1vv80uofIMnCN8A195x+wE+R8WbGhAEZ h6Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=oXmCp+QLQAiudYZr+DLNOQgl2/1XcQBmAFQ3whR8qNY=; b=jFNlhW6Pay0vTsuimz7J5Y3x9O/EY1dpgkl5NFwR/A8YnWF+JP5X5Qkg8zSeAB4HLI 2WxxiNz2uEGKJxfZk+vUhFSRIP/v0yno+zFVhqU7piWsNnLPPXwK7M56ecxXdF8SHwZ/ CcvNrlE4oMml3lNrnM3ulfFSZm81iGjvVpOH2y+E8An3z3IBK8ANh9pXcpbMuj9A/lp0 E9cSxG6fcuMBrUdH5t5obNGg2KstM1NqgGvM+gEJEcSxqWi0xR4J3NVKx8GV3pv/vRqT 83CNFiRflicsuHo3oevfnKc7zhoHY4a/sZtx9eplEavF0WHGtU2xMqn720eQSyZB+qYM kCSQ== X-Gm-Message-State: AOAM530VbAk6gd67o37xr4CCt1CGb43BrFcJj0AlkSVYFkYvOUnMLtS6 Ug9dIsQK01Gc3pQ8vfdrTb/ddRTtqhw= X-Google-Smtp-Source: ABdhPJwf03dMReshysFI1XC0u7QeO1YpWnIDGN6q+LbdNsK2TnOXHU9dfEkCE0iKvUbnfwX9eznt/A== X-Received: by 2002:a05:600c:4101:: with SMTP id j1mr1296976wmi.55.1610530779989; Wed, 13 Jan 2021 01:39:39 -0800 (PST) Original-Received: from rltb ([2a01:e34:ecfc:a861:69b6:6aaf:dbd3:8964]) by smtp.gmail.com with ESMTPSA id f9sm2492628wrw.81.2021.01.13.01.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 01:39:39 -0800 (PST) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87a6tdyyn0.fsf@mat.ucm.es> (Uwe Brauer's message of "Wed, 13 Jan 2021 10:28:03 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197886 Archived-At: Uwe Brauer writes: >> So it=CA=BCs explicitly documented that 'local-abbrev-table' can be a >> *list* of abbrev tables, but lots of the abbrev code assumes that >> it gets passed a single table. > >> It=CA=BCs easy enough to check for 'consp' in such cases, but then which= of >> tables in that list should we add the abbrev to? The first one? All of >> them? > >> I=CA=BCm leaning towards "first, and document that you should put the mo= st >> specific table at the front of the list of local abbrev tables", but >> I=CA=BCd welcome opinions from others. > > I am not entirely sure, I understand the logic behind this. To give you > a concrete example. (That enters now the flyspell problem). > > I have defined for each language I use flypsell/ispell a minor mode and > a corresponding local-abbrev table. > > 1. American > > 2. British > > 3. German > > 4. Spanish > > 5. French > > 6. And even Hebrew (but we can leave that may out for the moment). > > Now say I am in latex mode and turn spelling for American on (which in > turn turn the minor mode american-spelling on), is then the local abbrev > table the first in that list? That=CA=BCs under the control of your code, no? It=CA=BCs whatever does 'se= tq local-abbrev-table (list ... ...)' Robert