From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Fitzsimmons Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] EUDC email addresses via completion-at-point in message-mode Date: Sun, 17 Apr 2022 09:58:12 -0400 Message-ID: References: <4c3f728f989e832d224be1503808a682@condition-alpha.com> <87ilrb4y3j.fsf@ucl.ac.uk> <87h76rgatz.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17951"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eric S Fraga Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 17 16:07:44 2022 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 1ng5Z2-0004UM-2k for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Apr 2022 16:07:44 +0200 Original-Received: from localhost ([::1]:40970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ng5Z0-0006ZU-JW for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Apr 2022 10:07:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng5Wh-0005hy-BI for emacs-devel@gnu.org; Sun, 17 Apr 2022 10:05:19 -0400 Original-Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]:44768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ng5We-0005Kn-O1 for emacs-devel@gnu.org; Sun, 17 Apr 2022 10:05:18 -0400 Original-Received: by mail-io1-xd2c.google.com with SMTP id e194so7760003iof.11 for ; Sun, 17 Apr 2022 07:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fitzsim-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1+5BAyVt9YwgrvUdcYYJDErgvRDgsVllp0aw7S5klPg=; b=6zduKup9QkV8ZVFDmxOoegP+2e3oC6R8Woq6L84SNjiZyov4r6eeZUK1MepZF5Vsgz 9hYc9UuONCq30F5PqnmM/mqQXDFuNubNG+m1iusfN3LN0PKOZmM5Ca5jlpu2Derl6EB+ 9VTVvER1u6e7a/NalMqzpWVJq5P4PKHcXd5tdjKDRQKw24cT09DI5Ik7fHZGJOQPdMsW Ir9xq0+hCP6zP78CevRbE5661bTkGEp1hImG7S8MreEfH7tUB5j/VQaoPTD4wJIASSq/ 1mRH5ioHiwE/7aPALXh+mI7A0t/6Djci3Hx/uR6q57lB9950OXKVaHAqm63/nfXYjceo L6UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1+5BAyVt9YwgrvUdcYYJDErgvRDgsVllp0aw7S5klPg=; b=yO/DJVhefeX1JKNWgNOYphxw5oGndmwII8xJmwcWoiqvQVt6q2eFlI8nBgjIl8Nchy H5U1HF3hL+49lkeeTTFbIb5XI7F5UFv/xfy3QCRjQMWugO1YYldQbxsLLUFrMzKW1TmG Tz9vMQKCSS3vekEugBxYs7piQRaMOYzPpzYRk6dyJaT7S2XNIzei939V3KfSXXUlK8sr M8OBEYRfPzZMOuGb3Wi794IoliOnX+S+jeigQYLzjs2LJyv9Jyz8EbTsTRQp/ySBMGmt igbPRsxp/r3t1srzDMcFFAZ5Ka5+MiM5RETSp1Fh1kNSY788nWsFRkbPCediWIfULhgr mCbQ== X-Gm-Message-State: AOAM530f6v4MiWPUtY3E8L2Kng9kG9GttsueZy/8/oG8yAS0/egD6nyF qMIpXlKxcjOAEXZ3G2a2KgO5Mg5iLQgrjg== X-Google-Smtp-Source: ABdhPJw2Tdig+qXAf5hytrM7w1andBlCHaGHZTdcpCdaDjZa7YyT0HrX0ztahAzVl42vHbO5XSBC3Q== X-Received: by 2002:a05:622a:148f:b0:2f1:de0a:1e0f with SMTP id t15-20020a05622a148f00b002f1de0a1e0fmr4452301qtx.15.1650203894109; Sun, 17 Apr 2022 06:58:14 -0700 (PDT) Original-Received: from localhost.localdomain (69-165-165-189.dsl.teksavvy.com. [69.165.165.189]) by smtp.gmail.com with ESMTPSA id o14-20020a05622a138e00b002e1e78c899fsm5920445qtk.53.2022.04.17.06.58.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Apr 2022 06:58:13 -0700 (PDT) In-Reply-To: <87h76rgatz.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Sun, 17 Apr 2022 13:20:56 +0100") Received-SPF: pass client-ip=2607:f8b0:4864:20::d2c; envelope-from=fitzsim@fitzsim.org; helo=mail-io1-xd2c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:288556 Archived-At: Hi Eric, Eric S Fraga writes: > On Friday, 15 Apr 2022 at 23:35, Alexander Adolf wrote: >> In any case, if you move point to the To: line, type a substring for >> which you know there will be a match in EUDC, and then do >> "M-: (completion-at-point)", what happens? > > I get completion using one of the other sources, not eudc. > > In any case, I have now changed the behaviour of tab to always use eudc > (if in an appropriate header line), with abbrev and ecomplete invoked > with other keys (SPC or comma and M-n respectively). This works > effectively for me and will continue to work if/when eudc includes the > other sources of addresses. Glad to hear you got a satisfactory setup. Interesting idea of multiple keybindings for different completions. If EUDC includes the other sources, do you foresee using just EUDC? Or do you think keeping the extra keys will give better usability? What do you think the "out-of-the-box" behavior should be? Should the following: "emacs -Q" C-x m TAB say "no completions found; to start adding contacts, do ". Should the following: "emacs -Q" (in *scratch*) emacs-devel@gnu.org C-x m TAB expand to emacs-devel@gnu.org via dabbrev-expand? Pressing TAB in both those examples on Emacs 25.1 does nothing, and on master inserts a literal TAB. Thanks, Thomas