From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Autocompletion for partially typesetted stuff in auctex. Date: Sat, 12 Jun 2021 16:14:36 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32830"; mail-complaints-to="usenet@ciao.gmane.io" To: Hongyi Zhao , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 12 10:16:15 2021 Return-path: Envelope-to: geh-help-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 1lryoR-0008MP-2y for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Jun 2021 10:16:15 +0200 Original-Received: from localhost ([::1]:47378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lryoQ-00079j-3c for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Jun 2021 04:16:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lryn8-00060Z-BR for help-gnu-emacs@gnu.org; Sat, 12 Jun 2021 04:14:54 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:42769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lryn6-00041g-FM for help-gnu-emacs@gnu.org; Sat, 12 Jun 2021 04:14:54 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id j2so12176423lfg.9 for ; Sat, 12 Jun 2021 01:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=BXUzjHmbV/fUfcqBooGKAZP1pZyQsMv3GLUJ9pRA8hI=; b=kHw1bQpFFiIGaWBKaUltTYDbJLkFng1nvMkOnNc1NkulMiNvztoELR5vT8MZHOVvl1 F6FE/QynI1DF56Hig7aIHJ0b4pu1Mn/he3KQdxR5AHjlCpyBdDqF9E11C4Z+3UEpNhUL 4h8bbvPbqUfCpZtcOZF8ahg5I8hBPOZQ592SqKoBvpjkyZv8ueU3YLTPvfnbPXfCzsYW 9O0SN4FoBTELxVEygSOJ843NbYgr7ufstr466buTh4Kbiyr59mSgg5MrL6wBzTf2SZwX 7zeKIi1XZnmzSwu0bv1JhCR9Olo45m8b9J59+khJOOi7k3mF/GXlgX4u/C5yEC2vd6m3 q8wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=BXUzjHmbV/fUfcqBooGKAZP1pZyQsMv3GLUJ9pRA8hI=; b=Ex7+Tzbvyk3SP7qI/FTBoEKl6jxGkU1XNmlq7XB6dwzQB4WhJ03E8obaXofV+7K/9C mgknrpNueyZtZKpsSsA2Pd/Sy/aHMvqtLL6roAtQshnvJ4HSCA5muru9wgdtdK9AgtQp n9DMHxFlV6ITQPPQBLVZCwdOluX1NY+MMQ1b9cW7I1i5GuvvsLYFq+T6qGYThK6R4P+X v8o8AATjL8ffB1QKQNKQeXdWJOmyRPMLrEBLHPW34ljC/mjEFLlZ9oZlJ6IH9o5mXQsc mvI2U3KP9eBOFL8ySW5Mg1q8QgSfl7YWPHFKR6ZJYcbQ7zT0i4FwHNTUWnlGOGf5bxb8 4eQA== X-Gm-Message-State: AOAM530NY8YyDPicTATm9YLuYgN82Cn+5Ru8ithinHZD52OlXlyv64Pm cE1f3LZaptUV75JAQQ72ZG5DJ2GEjumkhDVnHIo= X-Google-Smtp-Source: ABdhPJyxMc7KSWjsB5nQQwqgUWyoCRhqb/8EZrS+Q2vuLiwW0Zo2klk54BLgJba5ANLA8D5voGw9Ufb/TxWc/JYIuP4= X-Received: by 2002:ac2:5f59:: with SMTP id 25mr5023558lfz.484.1623485688757; Sat, 12 Jun 2021 01:14:48 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x129.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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130772 Archived-At: On Sat, Jun 12, 2021 at 11:41 AM Jean Louis wrote: > > * Hongyi Zhao [2021-06-08 11:18]: > > On Tue, Jun 8, 2021 at 3:21 PM Jean Louis wrote: > > > > > > * Hongyi Zhao [2021-06-08 07:41]: > > > > The following description is an excerpt from > > > > : > > > > > > > > There is a completion mechanism for partially written macros > > > > available as well. > > > > > > > > But I want to know if it can help to complete the commands/macro names > > > > defined in any packages called in the preamble of the current project > > > > documents. > > > > > > > > Any hints will be highly appreciated. > > > > > > Try M-x pabbrev-mode > > > > > > It will capture words in many buffers and use such for completion. > > > > If I type a command used in the TeX document for the first time, in > > this case, it does not appear in any buffers, but only in LaTeX > > package definition files. I don't know if your above-mentioned method > > applies to this situation also. > > Please see Emacs package `auctex' and the manual section below: > (info "(auctex) Completion") > > As that will give you wanted completion. > > Do you use `auctex'? I just plain to switch from other TeX editors currently used by me, say, `TeXstudio', to `auctex'. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China