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: Tue, 8 Jun 2021 23:42:04 +0800 Message-ID: References: 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="36605"; 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 Tue Jun 08 17:42:55 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 1lqdsU-0009HC-LY for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Jun 2021 17:42:54 +0200 Original-Received: from localhost ([::1]:50126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqdsT-0003JB-I3 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Jun 2021 11:42:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqdrv-0003Ck-EZ for help-gnu-emacs@gnu.org; Tue, 08 Jun 2021 11:42:20 -0400 Original-Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:38610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqdrt-0003E7-H6 for help-gnu-emacs@gnu.org; Tue, 08 Jun 2021 11:42:19 -0400 Original-Received: by mail-lj1-x22c.google.com with SMTP id s22so7177969ljg.5 for ; Tue, 08 Jun 2021 08:42:17 -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 :content-transfer-encoding; bh=VIMynbxuDCGl9XvIEnMgg9YQYCknhoa3CdgVGv5wcHc=; b=RFTIdG2VWAIq3G8CJnOaMmO0NyMaCJ+hW5nOhF2Fd1nWTXI8R6gFiEOiZx0fUlkELZ 9fEcvBSp80+pOzubNrSpzw0iQwzFQK0D4kcMh7dNGzESee1thHvesQtK7S+e6vLooeDI gCZ6pYr3QUl9p66gNuJjt+SrVJvGaxSNK7jjVN0uqXKFS/ErKEusE6ETRB4JZLCpOT19 P+WDRSRBTLFLoReIGjglEvz2SxZXCwN8iBwRgfWIu1qj1+TBTl+vpwT2ui3Zf9IDSjXr cHXwODXJFM4Yhcd5GEimDtKFjBFTID6x4sSYZy9fj5RNLQykDv4qPy+30ig0PqjWCO1Y onNA== 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:content-transfer-encoding; bh=VIMynbxuDCGl9XvIEnMgg9YQYCknhoa3CdgVGv5wcHc=; b=Zs2vhhuDxVC9wwTN1tbuRA57A2c1wqTHJC19e06RGZ7yX9BUcdz9K8Ny10o4P3E5L4 N2SLNkxk7CyjUBZ0YOsD+doVz8MkFUDC3yC+ihU5ILv1Ylxwj5CbmfEq32sajEfbQKWR NYJKIpQJd+v14C4AjSidPYx87wfhjBvcjun+VuRSSMird/M2BiEWM4oFkTMwyky6VGqx QwndAXTiKUsSi2VOmobHVPW8IAnzSBcaDKutenAGLonM+dZitJZ8dtPAuFFQe0lVRVbV GQiugTJh3VDl0ZOTfxGSJuekK6sE/e54bcHLhNJU4jVCJXGcaZ+Fnxtt3JPWUSprmMdJ jdQQ== X-Gm-Message-State: AOAM533Y6RcSsv4pWV2rM0PVpp+SAVBL54tktNe6gCP72H9/1pIAM7r7 KK4UB4LmhGmd1eiL5KPUELrsQCqGDFjnW04UvVI= X-Google-Smtp-Source: ABdhPJzasaGqgR/ytskG2QBt0A64zqBVCPBVV0p/8dxeJKHfzMT+oJLwNuQTiT/coBYq9tMAo4rvwunetynn2McQG3M= X-Received: by 2002:a2e:b169:: with SMTP id a9mr18179401ljm.320.1623166935733; Tue, 08 Jun 2021 08:42:15 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::22c; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x22c.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:130629 Archived-At: On Tue, Jun 8, 2021 at 10:31 PM Jean Louis wrote: > > * Hongyi Zhao [2021-06-08 11:18]: > > 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. > > I cannot know, what I know is that it applies in almost any buffer. I > just use TAB so much more to complete. I rechecked its documentation located at here , and it seems that it really can do the thing I mentioned above and even more can be done. Below are some relevant descriptions: 5.3 Automatic Parsing of TEX Files [...] TeX-parse-self Parse file after loading it if no style hook is found for it. [User Option] TeX-auto-save Automatically save style information when saving the buffer. [User Option] [...] ;; Only parse LaTeX class and package information. (setq-default TeX-auto-regexp-list =E2=80=99LaTeX-auto-minimal-regexp-list) ;; The class and package information is usually near the beginning. (setq-default TeX-auto-parse-length 2000) Regards --=20 Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China