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.devel Subject: Re: did the abbrev mechanism ever expand =?utf-8?B?wqt0d28gd29y?= =?utf-8?B?ZHPCuw==?= to =?utf-8?Q?=C2=ABtwo?= different =?utf-8?Q?words=C2=BB=2E?= Date: Fri, 08 Jan 2021 11:55:28 +0100 Message-ID: <87v9c7zoin.fsf@gmail.com> References: <871rewmrsh.fsf@mat.ucm.es> <83zh1kjyg4.fsf@gnu.org> <87ft3blu0u.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="7900"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 08 11:56:53 2021 Return-path: Envelope-to: ged-emacs-devel@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 1kxpRt-0001wn-9z for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Jan 2021 11:56:53 +0100 Original-Received: from localhost ([::1]:34604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxpRs-0004Pe-CQ for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Jan 2021 05:56:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxpQb-0003o1-Vv for emacs-devel@gnu.org; Fri, 08 Jan 2021 05:55:38 -0500 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:35127) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxpQa-000114-5R for emacs-devel@gnu.org; Fri, 08 Jan 2021 05:55:33 -0500 Original-Received: by mail-wm1-x32c.google.com with SMTP id e25so8055986wme.0 for ; Fri, 08 Jan 2021 02:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=FazFEJJofgDvBXgo3/Wh+kA/qG1iaAG/uDgD/wpN9NA=; b=WGEO9ip4ANpIPuhWA/sraLGF9NU3K7xh/22sBujcYHrZIgW1t2UkqCuB8ADBsz2kgZ hJ+ObU6vnvocSePuyjFYZxGeVcWBCkWtXpYDfLOK+0NVA8yc/F6lj5J1kNx5l+bEWIhj kqF4rHsMwruGOY927LdyOl05UmQQO7fhQP9njb90npU4sSEvIVQoqWODLOg7t6fYz5Iq z+hr3bffIJAMgGCbamH8vhGAGmuU0IHCGeOs/X2W4IRpiQy9qTkEoMtkT5/ilx2Unoit YPv1nO+JbBnBLSOCyKi8pE6cJjXupTIuLANaMKF9JEJCUutdahd52P+nAyO2bugOUhMg VP/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=FazFEJJofgDvBXgo3/Wh+kA/qG1iaAG/uDgD/wpN9NA=; b=sb6h/zRTa53FtCZTqvMqeOHb9jfccb8To3vOLgbyKsS/McmsQVVDcQ2UWmfRmMwEW/ cyfc/r2EZDhzeU19NY97sUG4TgTJcURQ5uJHsdKsO+Q4/NL17T7sIUv/ovSVIEtjTckd 0qQnQpElZqgR9h9advDwRgglrDMPQkoUpP+pZWHCWJR5jy2sK7ImADVa99wSsxgKaCuz uoYn4xIafEqk4N4ihbH0UdU5pSoUu2mcya5yjJKvQf+zXH96+BBLXiyFIkTXzSkinduj gfZxpdxvrAM27jaVT/SHCbTTlLt/mliLAxbugPkhnjDHXry4vuW0kB831QKox0OzDuOf h8ig== X-Gm-Message-State: AOAM533+NMCto145wTSsBW5PSRn9zR9bD7w56QVPloQEFlBYECkS2yPS 7ctk8bCHrZ65/+WNA6BHzqKY2CZXtb4= X-Google-Smtp-Source: ABdhPJxVORa6wItGmmGMuXuhQuQqBkWj9tIgNd2aYKHupIUbaHx3k+tAgJTsFx9OnjbfQGv00F6VWA== X-Received: by 2002:a05:600c:2903:: with SMTP id i3mr2494634wmd.41.1610103329828; Fri, 08 Jan 2021 02:55:29 -0800 (PST) Original-Received: from rltb ([2a01:e34:ecfc:a861:69b6:6aaf:dbd3:8964]) by smtp.gmail.com with ESMTPSA id k18sm15307764wrd.45.2021.01.08.02.55.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 02:55:29 -0800 (PST) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87ft3blu0u.fsf@mat.ucm.es> (Uwe Brauer's message of "Fri, 08 Jan 2021 09:20:17 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32c.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, 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-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262737 Archived-At: Uwe Brauer writes: > Thanks, I read the documentation but I am unable to figure out, what > regexp has to be used for that regexp I should use in order to make a > two word expansion work.=20 > > All regexp I tried returned error. > > So this=20 > > (define-abbrev-table 'fundamental-mode-abbrev-table > '( > ("a que" "a qu=C3=A9" :regexp 1 :count 0))) > > > Does not return error but does not work as well. > You've forgotten the 'hook' argument in the abbrev definition. Also, :regexp is a property for the whole table, so you need something like this: (define-abbrev-table 'fundamental-mode-abbrev-table '( ("a que" "a qu=C3=A9" nil :count 0)) "Uwe's table" :regexp "\\(\\w+ ?\\w+\\)") (I agree the documentation could be clearer) Robert