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: Mon, 11 Jan 2021 11:49:41 +0100 Message-ID: <87wnwjd9yy.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> 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="29109"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 45693@debbugs.gnu.org To: Uwe Brauer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 11 11:50:12 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 1kyum4-0007UW-3o for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 11:50:12 +0100 Original-Received: from localhost ([::1]:41638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyum3-0004GZ-72 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 05:50:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyulv-0004GR-63 for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 05:50:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyulu-00047H-Df for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 05:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyulu-0007TH-Ax for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 05:50: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: Mon, 11 Jan 2021 10:50:02 +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.161036219228699 (code B ref 45693); Mon, 11 Jan 2021 10:50:02 +0000 Original-Received: (at 45693) by debbugs.gnu.org; 11 Jan 2021 10:49:52 +0000 Original-Received: from localhost ([127.0.0.1]:55812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyulk-0007Sp-21 for submit@debbugs.gnu.org; Mon, 11 Jan 2021 05:49:52 -0500 Original-Received: from mail-wr1-f54.google.com ([209.85.221.54]:40739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyuli-0007SZ-1q for 45693@debbugs.gnu.org; Mon, 11 Jan 2021 05:49:50 -0500 Original-Received: by mail-wr1-f54.google.com with SMTP id 91so15895701wrj.7 for <45693@debbugs.gnu.org>; Mon, 11 Jan 2021 02:49:49 -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=aoWRxfewViom+ZzYSO6Ogm8wkzpvnYJG927U7+qNOTs=; b=hRStB48YpKzr4UglSDE4HLjijZpx1ryXY0CXuVWI4H5WqSCozhpFAeOzuu8rCVyyuB y5eTm2h/6GZ3IolFiAxYr1vZWGknfUhYM5qiSKzEiQLViJZrDd7tfeSwDp/XC15LFBzg BU6mvzcGSwWty0HLpHbqkyfEmPoE6uRml60T3rvcupn6syVATtD0Di38NQx3Ln8gS/w8 3W3qOUI0YrNP12gHmxx1DAXy5cUsXh7GF7VFN3lQZXa/BiHnR1wqlxiHMI3b4M5qtVjx rR1NvONutzV9BoiWz+RkRJyEe+qxQ0uyA/ood8ad/js/0U3+8GQO/gi7wF8nslsGZGID V+rw== 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=aoWRxfewViom+ZzYSO6Ogm8wkzpvnYJG927U7+qNOTs=; b=enjYZ8jKvAppdK1Bk/Evk8xMOFI9Z33SdWXvS2yu6tKCsYPzUdv7lzspgS5vwmBVB5 KVIZbKsIgX32KJ3T757YkIoyH07zVfkzrC0BcEh7/6AxGW3V3A+es/NyWN24NQPR+ieV JoypAfqshjVS81tTAxf3SvoncHGcoAOdiFzWjOmGyMCc7tX9TJTDP6axr8TdHRzLhkoW vUfEzpwL0BlALiXglP1WGkbj7uY/ZKtf0m7XjCuPu8+A2LArUUPjnN2fFlJxEpIpYBZa BNexNdWGCPdjKWdsHZuqNioe/nxDsV2kxGDdBBsxJOI2ofjx1dnbwU39Le31r8xl5Qun VIAA== X-Gm-Message-State: AOAM53147c+YkKGlr7mq/5yi0A9R+GYEHw6x0P5TtmzHZCgWLQc3m5p/ 2WqBYqgoAkI2vL5cYw7QSgybbc8DdHg= X-Google-Smtp-Source: ABdhPJzgTrJgs7K6UH6IOmLOKddrReg4AybDYiWnhc4q306MDaU9GzvKvZDRJ1hotd3ZL1WKvrRZXA== X-Received: by 2002:a05:6000:11c1:: with SMTP id i1mr15860156wrx.16.1610362183706; Mon, 11 Jan 2021 02:49:43 -0800 (PST) Original-Received: from rltb ([2a01:e34:ecfc:a861:69b6:6aaf:dbd3:8964]) by smtp.gmail.com with ESMTPSA id c16sm24300689wrx.51.2021.01.11.02.49.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 02:49:42 -0800 (PST) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87eeis1oag.fsf_-_@mat.ucm.es> (Uwe Brauer's message of "Sun, 10 Jan 2021 22:21:11 +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:197681 Archived-At: Uwe Brauer writes: > The part=20 > (define-abbrev-table 'my-abbrev-table > '( > ("a que" "a qu=C3=A9" nil :count 0)) > "Uwe's table" > :regexp "\\(\\w+ \\w+\\)") > > Is gone! Yes, and it gets worse. You can get around the 'setq local-abbrev-table' issue by using the ':parents' property: (define-abbrev-table 'fundamental-mode-abbrev-table '( ("asi" "as=C3=AD" nil :count 0)) "Fundamental" :parents (list my-abbrev-table)) (define-abbrev-table 'my-abbrev-table '( ("a que" "a qu=C3=A9" nil :count 0)) "Uwe's table" :regexp "\\(\\w+ \\w+\\)") but write-abbrev-table then produces the following abbrev file: ;;-*-coding: utf-8;-*- (define-abbrev-table 'fundamental-mode-abbrev-table '( ("asi" "as=C3=AD" nil :count 1) )) (define-abbrev-table 'my-abbrev-table '( ("a que" "a qu=C3=A9" nil :count 1) )) so write-abbrev-file doesn=CA=BCt write any of the properties specified in define-abbrev-table to the abbrev file. Robert