From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67361: 29.1; MH-E: creating a new folder can sometimes fail with a Lisp error Date: Wed, 22 Nov 2023 16:41:51 +0200 Message-ID: <83jzq9hmts.fsf@gnu.org> References: <2410849.1700617511@apps0.cs.toronto.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14464"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67361@debbugs.gnu.org, cks.emacsbugs-01@cs.toronto.edu To: Chris Siebenmann , Bill Wohler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 22 15:43:24 2023 Return-path: Envelope-to: geb-bug-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 1r5oRn-0003bS-9y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Nov 2023 15:43:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r5oRU-0007Ju-6T; Wed, 22 Nov 2023 09:43:04 -0500 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 1r5oRQ-0007J2-GH for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2023 09:43:00 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r5oRQ-0007bR-8T for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2023 09:43:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r5oRT-0004PF-GW for bug-gnu-emacs@gnu.org; Wed, 22 Nov 2023 09:43:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Nov 2023 14:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67361 X-GNU-PR-Package: emacs Original-Received: via spool by 67361-submit@debbugs.gnu.org id=B67361.170066413216847 (code B ref 67361); Wed, 22 Nov 2023 14:43:03 +0000 Original-Received: (at 67361) by debbugs.gnu.org; 22 Nov 2023 14:42:12 +0000 Original-Received: from localhost ([127.0.0.1]:58554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r5oQe-0004Nf-0B for submit@debbugs.gnu.org; Wed, 22 Nov 2023 09:42:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r5oQb-0004NP-Rs for 67361@debbugs.gnu.org; Wed, 22 Nov 2023 09:42:10 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r5oQS-0007VK-MS; Wed, 22 Nov 2023 09:42:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Qz4vtr8SKiUYqe2kDMCEhDG4v3mLWWMJPHxz9LF1q+Q=; b=ZOvh+WwSNt3G jQMQcuXWr80QRC/3sLoKu42C5TXG+o1CtBQ1JoQpGfbYU81S9i6iiM8mzvbAFFqRaAY12QGYWcdAa 3zm5hXaLiIaHiwX9d3ipLRxkoPGsLDpFQy3/R/0KSYgvsSYncHLSTw00f37+c66tdR4Mq32MIUDwB RYs4Hj5mSClj7yhSTTdM6XyLuHrk3MCeNRtUw9x1dAuNM5B9eeuWBcEsXioufUL754ifKCPksuGCo QuPQ4bYP/GJn3NamDWNuQlwcFmvJNA0I4TTPjG+qhh1RhONa6ujnab69tWG2Sv+Rkfjb7uBewkPwX oT9FUON6Om3RAzr1k19QQQ==; In-Reply-To: <2410849.1700617511@apps0.cs.toronto.edu> (message from Chris Siebenmann on Tue, 21 Nov 2023 20:45:11 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274758 Archived-At: > Cc: cks.emacsbugs-01@cs.toronto.edu > From: Chris Siebenmann > Date: Tue, 21 Nov 2023 20:45:11 -0500 > > Under some conditions, creating a new (N)MH folder in MH-E can fail with > a Lisp error of 'Wrong type argument: stringp, nil'. This happens if for > some reason you have loaded/required mh-speed.el but have not created a > speedbar. > > Reproduction in 'emacs -Q', assuming you have NMH set up: > > * enter MH-E with M-x mh-rmail > * widen to your entire inbox so you have something to refile, 'F r'. > * require mh-speed: M-: (require 'mh-soeed) > * select a message and refile with 'o'. When asked for the target > folder, enter one that doesn't exist, say '+anewtestfolder'. Say y to > have this folder created. > * the refile will abort with the minibuffer message showing 'Wrong type > argument: stringp, nil' > > The full *Messages* buffer contents are (for my test, with a slightly > different folder path): > Folder +misc/anewtestfolder does not exist. Create it? (y or n) y > Creating +misc/anewtestfolder > mh-prompt-for-folder: Wrong type argument: stringp, nil > > I believe the root cause of this problem is that mh-prompt-for-folder > calls mh-speed-add-folder if 'mh-speed-folder-map is bound: > (when (boundp 'mh-speed-folder-map) > (mh-speed-add-folder folder-name)) > > However, mh-speed-add-folder requires that speedbar-buffer exists, as it > starts with: > (with-current-buffer speedbar-buffer > ....) > > In edebug, it is this with-current-buffer call that appears to fail and > produce the error message when called with no speedbar displayed and > speedbar-buffer nil. > > Requiring or loading mh-speed without a speedbuffer displayed is > probably unusual, but I need to do it in order to customize some aspects > of my MH-E speedbar interface. > > NOTE: I have reproduced this in 'emacs -Q', but this bug report is filed > from within my regular Emacs and MH-E environment, with multiple third > party packages and load-file shadowing and so on. You can ignore those > parts of this report. Adding Bill. I'm not sure if it is better to report MH-E-related bugs here or submit the reports to https://sourceforge.net/p/mh-e/bugs/.