From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tpeplt Newsgroups: gmane.emacs.help Subject: Re: An error I don't know how to debug Date: Fri, 05 Apr 2024 11:00:40 -0400 Message-ID: <874jcfhn1j.fsf@gmail.com> 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="25295"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Renaud =?utf-8?Q?Bussi=C3=A8res?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 05 17:01:43 2024 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 1rsl4R-0006Dh-Bq for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 05 Apr 2024 17:01:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsl3p-0006bG-S3; Fri, 05 Apr 2024 11:00:59 -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 1rsl3f-0006a0-WB for help-gnu-emacs@gnu.org; Fri, 05 Apr 2024 11:00:51 -0400 Original-Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rsl3d-0005tj-2F for help-gnu-emacs@gnu.org; Fri, 05 Apr 2024 11:00:47 -0400 Original-Received: by mail-qk1-x72d.google.com with SMTP id af79cd13be357-78a2a97c296so130879185a.2 for ; Fri, 05 Apr 2024 08:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712329243; x=1712934043; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HpndnGSegZzHibYK8TZ0PAJdi3fhweT6/u8WxCiCYwM=; b=WmdPhuacG8+T2Cn7It/6jJr6jj2TlhWFpisvccd6lrgOs53Fm923GlO8ifawzBa/7h xhGK6urr7OBjWZEDcWNigejqDfQhCJCxybBVhk9//SQoMAZtfwI4jE9gbWzmJrQ1cUJy SmgiUhCrW4T3fi2WlaLj/diEh4GjTLjQQ16JZ3wdTLtCj9y4YvYorD+Rx/y6C1GKR2za Rbm/noTU7Wa4B4bGJST+/qFCjxO2iZJUPQBVJD8S7yAJsD6RPG2CjZMwW56SWYpjqH7T 0XRm5DxgogjE2rGgEXxwRtkPGaoEiXOBeL5mgTFN60e+w+j5DoJxioKbzz9Ai5kDK3nd QyDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712329243; x=1712934043; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HpndnGSegZzHibYK8TZ0PAJdi3fhweT6/u8WxCiCYwM=; b=JQX+m5Yuoab6F6b7EKhRP2VoLG9x7ySPMiWi6VwF5ghCiH4nIaXydrzXzlrXmR5Jik 01VfxhWc96GLfQjsUCSx/c5+m2craRBiDmC27FTmS+GUvP28kE4qGIPVk02Yw1VNIrGX G1tkoV+9k35UkQxTNf+b64auqjpTdtgD6NEhs5JEigREURalKjYqoXKZV9dwbmJBikWT JBaaKa+lEuhPwhnj12Gi3OoBiTFXVidndjNtngKgWWSnKD+hYk5JS3Ouz1sErQxKtO+y vu9frPlZBKBqp6KVmp1JTBnp2i+6zMjZVwaDFgbrocQGkYvLtugci2RfusMDuFCzW2Hn UM7A== X-Gm-Message-State: AOJu0Yz/VYqWdpfSRA5Xc65TjRP1MiTJICRwFz1IR4Yr/IMUxElQpTrh XPQ9oWiDCuVXphDgufT04DxP/tZ3tTF+L9W667DKu10wZXDVq0c5TkWk+GsZyWI= X-Google-Smtp-Source: AGHT+IF+ZEbSdom81chDp+S9OhLGHEYyMhJo4lH1ieLFMVHcdKLn32Nm75P1/s7c8MQ4o4LN4Rpz5A== X-Received: by 2002:a05:620a:2494:b0:788:31a1:4a16 with SMTP id i20-20020a05620a249400b0078831a14a16mr1983904qkn.43.1712329242872; Fri, 05 Apr 2024 08:00:42 -0700 (PDT) Original-Received: from t530.local ([2600:8806:a821:2b00::e54]) by smtp.gmail.com with ESMTPSA id c20-20020ae9e214000000b0078d50b7d685sm89686qkc.30.2024.04.05.08.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 08:00:42 -0700 (PDT) In-Reply-To: ("Renaud =?utf-8?Q?Bussi=C3=A8re?= =?utf-8?Q?s=22's?= message of "Fri, 5 Apr 2024 09:53:01 -0400") Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=tpeplt@gmail.com; helo=mail-qk1-x72d.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.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:146248 Archived-At: Renaud Bussi=C3=A8res writes: > Hello, > > Before restarting Emacs, I played a bit in my 'init.el' (which is > tangled from an Org file) and I also updated several packages. Now a > bug shows up when I start Emacs: > > command-line: Buffer is read-only: # > > That line appears in the *Messages* buffer. > > Also, strangely, I use the 'dashboard.el' package and its footer line > appears at the bottom even if the variable is set so it shouldn't show > up. It used to not show up, but because of this bug I guess (??), it > doesn't behave like it should? > > I tried the "check-paren" function on the 'init.el', it doesn't find > anything. I tried starting Emacs with the '--debug-init' option, it > doesn't say anything. > > Note that the first message I got was: > > doom-mode-line--create-bar-image: Buffer is read-only: # > > So I though this could be where the problem is, although I didn't > change anything related to the doom-mode-line bar option. I used to > (setopt doom-modeline-bar-with 0.1) so it doesn't appear, I changed > that to '1', and now the error changed to the one above, > 'command-line: ...'. > > Any clue how I could fix this? I don't even know where the error comes fr= om. > > Thanks for your support, > Renaud > > You can try the following in order to narrow down the source of the problem: 1. Start emacs from a shell prompt using the -q (alternatively, --no-init-file) option: $ emacs -q 2. In emacs, type C-x C-f (bound to =E2=80=98find-file=E2=80=99, by default= ). At the prompt "Find file: ...", enter the name of your Emacs initialization file. 3. Step through your initialization file, evaluating each expression, using C-x C-e (bound to =E2=80=98eval-last-sexp=E2=80=99). Use M-C-f (b= ound to =E2=80=98forward-sexp=E2=80=99) to advance to the end of each top-level = expression before evaluating it. You can define a keyboard macro to reduce the repetitive combination. - C-x ( ; start kmacro - M-C-f - C-x C-e - C-x ) ; end kmacro - C-x e ; run kmacro - e ; repeat last kmacro Paying attention to the messages that are displayed as you do this, you should be able to locate the expression that leads to the problem that you are seeing (something is turning on read-only mode in the *scratch* buffer) 4. Also, examine the docstring for the option that you set using =E2=80=98setopt=E2=80=99 with C-h v to see whether you are setting it to= a valid value. --=20 The lyf so short, the craft so long to lerne. - Geoffrey Chaucer, The Parliament of Birds.