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 15:03:07 +0100 Message-ID: <87sg75ue78.fsf@gmail.com> References: <87v9cam56e.fsf@mat.ucm.es> <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> <87bldtqip1.fsf@gmail.com> <8735z5yxjg.fsf@mat.ucm.es> <875z41qham.fsf@gmail.com> <87pn29x9ea.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="4844"; 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 15:04:14 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 1kzgkv-00019T-UR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jan 2021 15:04:13 +0100 Original-Received: from localhost ([::1]:33576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzgku-0001j3-Sk for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jan 2021 09:04:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzgkk-0001fb-FA for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2021 09:04:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51407) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzgkk-0002ZA-5Y for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2021 09:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzgkk-00022t-0n for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2021 09:04:02 -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 14:04: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.16105465987796 (code B ref 45693); Wed, 13 Jan 2021 14:04:01 +0000 Original-Received: (at 45693) by debbugs.gnu.org; 13 Jan 2021 14:03:18 +0000 Original-Received: from localhost ([127.0.0.1]:34720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzgk2-00021f-3Z for submit@debbugs.gnu.org; Wed, 13 Jan 2021 09:03:18 -0500 Original-Received: from mail-wm1-f52.google.com ([209.85.128.52]:36968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzgk0-00021Q-EH for 45693@debbugs.gnu.org; Wed, 13 Jan 2021 09:03:16 -0500 Original-Received: by mail-wm1-f52.google.com with SMTP id g10so1715100wmh.2 for <45693@debbugs.gnu.org>; Wed, 13 Jan 2021 06:03:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=5R+LjfC+cgEWg3MrxuUW7RxuHUD5N0dAEUY/JQGUMMM=; b=AKY0Y5oJBZ4ZPygtxNfpshn49KgNVbmg/W98auevCjpvKFuh30Xe8lyw5BK8H4WHUl q7aZ7eYut3d/YV6jyGGeYvWGKiip+1JwOskLgmkb0XpsVHyY1TX5PQu8iQCPFXSITLjA 9pu+nkcs/kX3LFzYsZ7T1qFVAVv2JKAI8vUDrHCPb+aODxZg9zgVf2/sTgMdXPjC4/RG hlQrK4pAg5np7k2iu5ZUsveitxryTtik8eBWh4qf/NmX4W86LoIMeBCCcYH1g2ve/X1L EDS0+sdFT3P8pBozT/qbQ6d/xmuZdp+Q95330yNosqFC0MCMKZpBgjzEIXdZRU+f9MUI Xxpg== 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:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=5R+LjfC+cgEWg3MrxuUW7RxuHUD5N0dAEUY/JQGUMMM=; b=bDsZnCytO6R2QDVqyNKoDfRfwWQhKdJjD119Q06/HX8StG1hiYwKGygu44vUQdQ5Vd agRcxCeO3IC4pZLtemernk6Mhvh9i+xe1VRO6wnWkn/lIDmqVYrwQfczZGkkJxFYQwKG wfL2dSVJ3wx5ceh+bIOIhM+Gz4ZeNvZ25s/ornHFzymFbFojQCp07FOhwknRuZhmfnwy dcVoaTvTgYsquFdf3IsYWJe2rceVE2ofKTFTzAwBVYx/2GoIKD9qLZKB1a63jqQ67xgo Li5M0i8QHcXKHpcfqXxWXL2s1AlMWzWWaVkrngzthsI7hQjkcku9NFm3XXV8xb2liuvE OwoA== X-Gm-Message-State: AOAM533aYf/Y47dsFrq0Dk8goBs1SZWE/3mdU+72hbmumXuAhGKqT/Zk gWE63pRo/S1CudINaAEyUHqBCZOMx9M= X-Google-Smtp-Source: ABdhPJxPssjdLdTIYNvtXP67tVp7/hux0NCEFlYvUFqV/eF9OozgfyQ50b5ZP5v9cb5AqXQWOwHGeg== X-Received: by 2002:a1c:99d1:: with SMTP id b200mr2338027wme.37.1610546589969; Wed, 13 Jan 2021 06:03:09 -0800 (PST) Original-Received: from rltb ([2a01:e34:ecfc:a861:69b6:6aaf:dbd3:8964]) by smtp.gmail.com with ESMTPSA id h187sm2968050wmf.30.2021.01.13.06.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:03:08 -0800 (PST) In-Reply-To: <87pn29x9ea.fsf@mat.ucm.es> (Uwe Brauer's message of "Wed, 13 Jan 2021 14:18:37 +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:197896 Archived-At: >>>>> On Wed, 13 Jan 2021 14:18:37 +0100, Uwe Brauer said: >> Uwe Brauer writes: >> Based on the code above, there is no list: you=CA=BCre unconditional= ly >> setting local-abbrev-table to a single table. You'd want something >> like: >> (define-minor-mode american-minor-mode=20 >> nil nil nil nil >> (setq local-abbrev-table >> (if american-minor-mode >> (list american-minor-mode-abbrev-table local-abbrev-table)))) Uwe> Ok I did not think that through, you were referring to=20 Uwe> (setq local-abbrev-table (list my-abbrev-table fundamental-mode-ab= brev-table)) Uwe> And the question is what comes first in that list, right? Uwe> You asked whether to take the first or all elements of the list, w= ould Uwe> it be very resource consuming to take all? Not really, but people might find it confusing when 'add a local abbrev' results in modifying more than one abbrev table. Robert