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: Tab completion doesn't work. Date: Tue, 16 May 2023 14:18:13 +0800 Message-ID: References: <878rdqtmlc.fsf@web.de> <87fs7y8iep.fsf@web.de> <87bkim9sg2.fsf@web.de> <874joemdiw.fsf@web.de> <87y1lqkvgn.fsf@web.de> <87bkilnqzt.fsf@web.de> <87fs7xcb9g.fsf@web.de> <87a5y5c9ey.fsf@web.de> <874jodc670.fsf@web.de> <87sfbwc39g.fsf@web.de> 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="10761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 16 08:19:10 2023 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 1pyo1e-0002aE-2v for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 16 May 2023 08:19:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyo1A-0004Ge-1J; Tue, 16 May 2023 02:18:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pyo11-0004E1-HJ for help-gnu-emacs@gnu.org; Tue, 16 May 2023 02:18:32 -0400 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyo0x-0001gU-Ic for help-gnu-emacs@gnu.org; Tue, 16 May 2023 02:18:30 -0400 Original-Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-96a2b6de3cbso1234616266b.1 for ; Mon, 15 May 2023 23:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684217905; x=1686809905; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rcum7YyzfZcY06QME0POh0E44zLYx34aNif3rql9xbU=; b=SYHphoiCUNZuFZUP9rBvtIbwYgmYtRtVwb5metu1jGI+2PjYx3H/TJZNq6cKhrUbZK 1nhZLiZQtCl7B8Z1VNkOWSHRTpUB8j6M/PgUra8OyoNxVBHCw3B2XMkpdgVVXmDtR55K 9Jp3LG+bs/e2XBAkyslK52w5XUnTQqzJo2B8F3pDgwTFVQ+1gYaoYgK0JdD2SIG0eK0j OPSSS5xJKDS3dGqwP2dxqD3Sw3iyuXNyzwwjSs/RRWsptHFAWQ3cgMYynYZVcXHL+tFK 5voN33N4+/TunteRlpu20hpEoR9e+o6JoN9B1vN8v+qAvWxlHy4uyGbGMwHwDIk4Mp1Y 03/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684217905; x=1686809905; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rcum7YyzfZcY06QME0POh0E44zLYx34aNif3rql9xbU=; b=dyVH+DAOuVsIJLuLPDyqgpukrfJiiIpMe6GKtpWtFfen6y6v7nOSr8y3J3mhvzVuay M7TPKLHLtT8eZ47HVzt7qqD2ZvmZoMoXMcvRDTsqWk+mRCOD8hjiGPpJErFv8S7LUbik eoOr4cA9K/92PWewxCyi67PU6gr6VhvB1zQCbnG2nD/4NVnLATToP7/JSXTidqr31QcZ cxqTTiLKwPR0X+0i5xiTxqhM2tG/Mutj+04MX9uAzJQbdNDPBOVQw6Te7MRCjSUCkqpO NCkEZH6BT/E4DtUXUjZ5hNbVv1iogpqx/43HrZmMfFomZaYDIiiJO6LRyyolOC4i0BTp UTlg== X-Gm-Message-State: AC+VfDwu2OmTncIWRhtn2Jrx5UGAv+qbn26X3ZM4VrxyVjxUD2jCh3W0 PUzHlWDd+j+5M/2M9kl49u79VFwgVMyQZ3pd2OU= X-Google-Smtp-Source: ACHHUZ5nFQyvYTcw0XKUKyr6XFRdV59ckz4jXV+mS5ZtFuBWo/0k1qAjUl8sFlqHB5ZXY12b1wx6oKkIEd0FK/E4Y44= X-Received: by 2002:a17:907:9810:b0:969:f677:11b4 with SMTP id ji16-20020a170907981000b00969f67711b4mr24300660ejc.37.1684217905499; Mon, 15 May 2023 23:18:25 -0700 (PDT) In-Reply-To: <87sfbwc39g.fsf@web.de> Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=hongyi.zhao@gmail.com; helo=mail-ej1-x62f.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143631 Archived-At: On Tue, May 16, 2023 at 12:25=E2=80=AFPM Michael Heerdegen wrote: > > Hongyi Zhao writes: > > > > See the attached screenshot for the completion results, which include > > > `bibtex-completion-cite-commands`. > > > > And this also fixed the Tab completion problem discussed in this > > thread, aka, `bib ` will give the desired completion, as shown in > > the screenshot. > > Ok - good! > > I think you would benefit from enabling `debug-on-error' temporarily > when your init file is loaded, and/or, even better, start to compile > your init file regularly, since it will catch a lot of errors and > problems like this. > > This will require some small changes (loading some stuff when compiling > etc.), but if you try to get rid of any warnings you will avoid most of > such surprises. But I also noticed the following description here [1]: Byte-compiling your init file is not recommended (see Byte Compilation in the Emacs Lisp Reference Manual). It generally does not speed up startup very much, and often leads to problems when you forget to recompile the file. A better solution is to use the Emacs server to reduce the number of times you have to start Emacs (see Using Emacs as a Server). If your init file defines many functions, consider moving them to a separate (byte-compiled) file that you load in your init file. [1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.htm= l > Michael. Regards, Zhao