From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6IuCLBeUrWOX4QAAbAwnHQ (envelope-from ) for ; Thu, 29 Dec 2022 14:20:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SP+HKxeUrWN/hAEAG6o9tA (envelope-from ) for ; Thu, 29 Dec 2022 14:20:23 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 631EE124B7 for ; Thu, 29 Dec 2022 14:20:22 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 050CC604DB; Thu, 29 Dec 2022 13:20:20 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0EF075FC27 for ; Thu, 29 Dec 2022 13:20:18 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id E9F4B5FB9E; Thu, 29 Dec 2022 08:20:16 -0500 (EST) Received: (nullmailer pid 394725 invoked by uid 1000); Thu, 29 Dec 2022 13:20:15 -0000 From: David Bremner To: Boruch Baum , notmuch@notmuchmail.org Subject: Re: bugreport: notmuch-hello (debian package elpa-notmuch 0.37-1) In-Reply-To: <20221229122308.awg67xcxbokbv7lv@debian-BULLSEYE-live-builder-AMD64> References: <20221229122308.awg67xcxbokbv7lv@debian-BULLSEYE-live-builder-AMD64> Date: Thu, 29 Dec 2022 09:20:15 -0400 Message-ID: <87o7rm73e8.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: PW7KRLKMD4YMO7TYRUYBP2MEVX2HT5JO X-Message-ID-Hash: PW7KRLKMD4YMO7TYRUYBP2MEVX2HT5JO X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672320023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=aT0dy0i7wk3b8+AiLZix2WnQwRLSHF6w+Ub8waFuDsQ=; b=GNK4GSfuu01t8s6NrabaJkxdVcjnvFHv7n7hXyJqLO55HSWrxgr9Fgy2xbFk3GzK61PMbu si+bX6MJZrhs8KVrlwSV8p/y4RhiNiA9qV3iePSe+YyFAJ6HXyxD5RmxznPHgrlUU0yc7p T5ydme/+UBKp7gBNIkm2upuOy9qMuXQov9DHX+1jFEus4nkGqywBqIgbu8V8YIOsto4xHw KAe3ntoWNUdYPK9ImMj1/hgwg3hST0LO05N5/PV9MjeL5KDo8Rmd2TqaNJbA4/Od91x65e BY8dLCqStG/5PgIMvsgqbjjFXx7v+WlQX0H+u9BtJT4M9TxtvJPrXxFV22JO2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672320023; a=rsa-sha256; cv=none; b=WhtpDlfhPESydYfKUDZ0LdUKxxuoPxQ4sY92xPhjO2z5x22xoy5/HqNmR0YMb5NNuVSdly eAcAjJxHGrr8oBnBXc2gATyf8H6h93VwFlj0kzxMMXSX3VKeRn3DZ0MQ1mqpNOyH8l5O9X 39bls9vofMX/PlvuIHFHlRIZwTqldMIdUdjjqJFldCEZxuEyXpB2IOASghrnNR6mWKiF78 5O181KsTO54OVN7iL5QOgVlr8fUktEvOL58qpSuhcLlkEgc4Agyvz53q3DSqYxD87gQLYj 8jb6Ux2DjemHB3qLSgl4parJM2qZotyMggy48E4wAwIRAUH77uDeDWt4XNfDZA== X-Spam-Score: -1.19 X-Migadu-Queue-Id: 631EE124B7 Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.19 X-TUID: TFoHGbEka54u Boruch Baum writes: > I wasn't sure the best way to report a bug against it, so I hope by > sending it to thislist it will find its proper home. Sure that's fine. Or report a debian bug using reportbug, which saves you copying down the relevant versions. In particular it's possibly relevant what version of emacs you are using. > > export NOTMUCH_CONFIG=$HOME/.config/notmuch/notmuch.conf > > With this setting, I successfully set-up notmuch, created a database, > and searched it from the command-line. However, from within emacs, M-x > notmuch-hello failed when it would internally send shell command: > > notmuch count --exclude=false > > The emacs shell-command error buffer would report "Error: cannot load > config file". From outside emacs, that shell command *would* succeed. I wasn't able to duplicate this (I'm running the debian packages and emacs 28). 1) As a first step, try M-x getenv NOTMUCH_CONFIG 2) Just to confirm, you're not doing anything fancy with shell wrappers for either emacs or notmuch, are you? > > What did work for me was to create a default profile folder and move > the config file there. > > export NOTMUCH_CONFIG="" Being set to the empty string is not the same as being unset from notmuch's point of view. So maybe try unset instead. Empty string means no config file is searched for or loaded. > mkdir ~/.config/notmuch/default > mv ~/.config/notmuch/{notmuch.conf,default/config} > > But then, in order to be able to continue to use notmuch from the > command-line I needed to perform > > export NOTMUCH_CONFIG=$HOME/.config/notmuch/default/config > > So it looks like the elisp package isn't checking the file location > precedence mentioned in the man pages. That definitely should not be the case, but may be potentially related to having NOTMUCH_CONFIG="".