GNU bug report logs - #66838
hyperbole does not detect I’m on a mac

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: hyperbole; Reported by: Mats Lidell <mats.lidell@HIDDEN>; dated Mon, 30 Oct 2023 20:09:02 UTC; Maintainer for hyperbole is bug-hyperbole@HIDDEN.

Message received at 66838 <at> debbugs.gnu.org:


Received: (at 66838) by debbugs.gnu.org; 31 Oct 2023 09:54:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 31 05:54:03 2023
Received: from localhost ([127.0.0.1]:47473 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qxlRj-0001Ru-2s
	for submit <at> debbugs.gnu.org; Tue, 31 Oct 2023 05:54:03 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38104)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <matsl@HIDDEN>) id 1qxlRh-0001RQ-3P
 for 66838 <at> debbugs.gnu.org; Tue, 31 Oct 2023 05:54:01 -0400
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 <matsl@HIDDEN>)
 id 1qxlR3-0007wC-V5; Tue, 31 Oct 2023 05:53:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=119m1PUrMQDPDd7LTTvIso2g1z75X8qT4gWkjYJ7o3c=; b=sEZJkCBj49OtbHHjnyVs
 N4y+Nt3+d1mjsUjW2C9qmzVBSrm3GaYxXOjOR4doV5Nhs5hUeLR9p687LroaGFIiy8zQ7CJrSStzA
 QMj3YTrJcGt/rPtptgTbL2Zccx7gOrMIFBiRcoSRJ1XfmAYRIM4OC8puY2hL8v6FxYjEiNd5TzqJg
 hllqlkUnyEXTcg1mVih+9Tu6mwLBqBxLOknDNtGwpzgOohL5SRgJRkFCvqbWLkcHSavI6FF0n0O2j
 ba3xZxUKFMNvHxzDWJAYx9HEjy8/aLoDoXpX2S0Onv51fdXJNR2CLMuk9QaY66jgeK8Myg6nuWWGQ
 8ru72qJi5Cdnfw==;
From: Mats Lidell <matsl@HIDDEN>
To: Alan Schmitt <alan.schmitt@HIDDEN>
Subject: Re: bug#66838: hyperbole does not detect =?utf-8?Q?I=E2=80=99m?= on
 a mac
In-Reply-To: <m21qdbu8nu.fsf@HIDDEN> (Alan Schmitt's message of "Mon, 30 Oct
 2023 22:01:25 +0100")
References: <m2fs1stf0b.fsf@HIDDEN> <87msvz3me0.fsf@HIDDEN>
 <m21qdbu8nu.fsf@HIDDEN>
Date: Tue, 31 Oct 2023 10:53:19 +0100
Message-ID: <87zfzznmnk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 66838
Cc: 66838 <at> debbugs.gnu.org, hyperbole-users@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> Alan Schmitt writes:
> Hi Mats,
>
> On 2023-10-30 21:07, Mats Lidell <mats.lidell@HIDDEN> writes:
>
> >> When I press M-ret on a path to a pdf, hyperbole offers to run "setsid
> >> -w xdg-open", which I don=E2=80=99t have installed as I=E2=80=99m on a=
 mac. Looking at
> >> hpath:get-external-display-alist, I see that my window system, which is
> >> "mac", is not in the first conditional. Is this a bug?
> >
> > Yes I think so. It seems Hyperbole does not identify that you are on a =
Mac and
> > falls back to settings used when running under X-windows.
> >
> > Can you share what value `window-system' has on your machine? (Use Hype=
rbole
> > key series: {C-hv window-system RET})
>
> My message was not clear, the window-system value is actually "mac"
> (without the quotes). It=E2=80=99s this variant of emacs
> https://bitbucket.org/mituharu/emacs-mac/src/master/, installed through
> homebrew using https://github.com/railwaycat/homebrew-emacsmacport.
>
> >> Is there a way to configure M-ret to open the file in dired instead?
> >
> > Yes there is. You can customize the variable `hpath:native-image-suffix=
es' and
> > add the suffix of the file type that you want to display naively in Ema=
cs. In
> > your case "pdf". The name of the variable is not the best and should pr=
obably
> > be updated now when Emacs supports more native document types than imag=
es.
>
> Thank you for the suggestion, but it=E2=80=99s not exactly what I want. I=
n this
> case, it opens the file itself in emacs (using docview, or in my case
> pdftools). What I would like is a way to open the enclosing folder in
> dired with the file selected. But I now know more of hyperbole do it
> myself:
> <dired-jump nil "~/path/to/file.pdf">
>
> Best,
>
> Alan

This should be fixed by commit
https://git.savannah.gnu.org/cgit/hyperbole.git/commit/?id=3D7decf14c5cc3c0=
a1b4d6d4fb962b93003ccc9d5c
and is available for installation from elpa-devel archive.

Thanks again for the report.

%% Mats




Information forwarded to bug-hyperbole@HIDDEN:
bug#66838; Package hyperbole. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Oct 2023 21:02:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 30 17:02:46 2023
Received: from localhost ([127.0.0.1]:46770 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qxZPK-0000Wx-5Q
	for submit <at> debbugs.gnu.org; Mon, 30 Oct 2023 17:02:46 -0400
Received: from lists.gnu.org ([2001:470:142::17]:34116)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <SRS0=jxim=GM=polytechnique.org=alan.schmitt@HIDDEN>)
 id 1qxZPI-0000Wk-6B
 for submit <at> debbugs.gnu.org; Mon, 30 Oct 2023 17:02:44 -0400
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 <SRS0=jxim=GM=polytechnique.org=alan.schmitt@HIDDEN>)
 id 1qxZOc-00051j-2s; Mon, 30 Oct 2023 17:02:04 -0400
Received: from mx1.polytechnique.org ([129.104.30.34])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1)
 (envelope-from <SRS0=jxim=GM=polytechnique.org=alan.schmitt@HIDDEN>)
 id 1qxZOZ-0003EZ-Mt; Mon, 30 Oct 2023 17:02:01 -0400
Received: from TM.local (unknown [82.66.240.41])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by ssl.polytechnique.org (Postfix) with ESMTPSA id 142E95648B5;
 Mon, 30 Oct 2023 22:01:39 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=polytechnique.org;
 s=svoboda; t=1698699699;
 bh=s6FpDJDwJKC4dynBF2z/hUB0UbYMWf+o1mQ8g11EyEY=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID;
 b=J11a6XYDZzc4j1hxef7Pxs32BlE9uq7HRF7ekUa/ftCB0OPgXTOOR/SwvFMvw2f2f
 N/FNAKuE+gVqjOfZTceTUF8wnQ9MWlx63Ogrs4dnEUI5Bc4izcY2ICcBrC708QNsXr
 3HYdITg09gorvu8fADcetKtMEVK52dq3bRlSzkuA=
From: Alan Schmitt <alan.schmitt@HIDDEN>
To: Mats Lidell <mats.lidell@HIDDEN>
Subject: Re: hyperbole does not detect =?utf-8?Q?I=E2=80=99m?= on a mac
In-Reply-To: <87msvz3me0.fsf@HIDDEN>
References: <m2fs1stf0b.fsf@HIDDEN> <87msvz3me0.fsf@HIDDEN>
Date: Mon, 30 Oct 2023 22:01:25 +0100
Message-ID: <m21qdbu8nu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Mon Oct 30
 22:01:39 2023 +0100 (CET))
X-Spam-Flag: No, tests=bogofilter, spamicity=0.055678, queueID=541875648B8
X-Org-Mail: alan.schmitt.1995@HIDDEN
Received-SPF: pass client-ip=129.104.30.34;
 envelope-from=SRS0=jxim=GM=polytechnique.org=alan.schmitt@HIDDEN;
 helo=mx1.polytechnique.org
X-Spam_score_int: -39
X-Spam_score: -4.0
X-Spam_bar: ----
X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: bug-hyperbole@HIDDEN, hyperbole-users@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Mats,

On 2023-10-30 21:07, Mats Lidell <mats.lidell@HIDDEN> writes:

>> When I press M-ret on a path to a pdf, hyperbole offers to run "setsid
>> -w xdg-open", which I don=E2=80=99t have installed as I=E2=80=99m on a m=
ac. Looking at
>> hpath:get-external-display-alist, I see that my window system, which is
>> "mac", is not in the first conditional. Is this a bug?
>
> Yes I think so. It seems Hyperbole does not identify that you are on a Ma=
c and
> falls back to settings used when running under X-windows.
>
> Can you share what value `window-system' has on your machine? (Use Hyperb=
ole
> key series: {C-hv window-system RET})

My message was not clear, the window-system value is actually "mac"
(without the quotes). It=E2=80=99s this variant of emacs
https://bitbucket.org/mituharu/emacs-mac/src/master/, installed through
homebrew using https://github.com/railwaycat/homebrew-emacsmacport.

>> Is there a way to configure M-ret to open the file in dired instead?
>
> Yes there is. You can customize the variable `hpath:native-image-suffixes=
' and
> add the suffix of the file type that you want to display naively in Emacs=
. In
> your case "pdf". The name of the variable is not the best and should prob=
ably
> be updated now when Emacs supports more native document types than images.

Thank you for the suggestion, but it=E2=80=99s not exactly what I want. In =
this
case, it opens the file itself in emacs (using docview, or in my case
pdftools). What I would like is a way to open the enclosing folder in
dired with the file selected. But I now know more of hyperbole do it
myself:
<dired-jump nil "~/path/to/file.pdf">

Best,

Alan

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFTBAEBCAA9FiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAmVAGaUfHGFsYW4uc2No
bWl0dEBwb2x5dGVjaG5pcXVlLm9yZwAKCRAEDQo7TtLlx8ExCACH8KoEK5eo8+pE
nMCjR6djINklzzttAbqM3xW3DWPMne/C+CuCGqFBxGVP5ItBCe6yJZLiRCDkRUsb
FLzy6T8/nPG7jdH4lS77GXEFACe6ZjcLhexDy943V6EzYHmTdwdZTmciXJVLbmZx
5CLYxDlCr/ZBhJyNSF84N1MjxZZ1wHwjYm0SjHA1R3+NzeqJTIhc0tIAD+IsfYTz
7PC8oZ5MLcbzJrNiltt/4j/97vtQJ+KtRruvSNbjDAzoCBSawOs5exWXF6x+Lqlq
8cpVls+s/i80kh0SdW8vLsrCaQE8Ff6OUNbRtyxfA+cKwzalALCwAXUvVrukLPnR
9mIEKFDO
=zM/b
-----END PGP SIGNATURE-----
--=-=-=--





Information forwarded to bug-hyperbole@HIDDEN:
bug#66838; Package hyperbole. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Oct 2023 20:08:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 30 16:08:03 2023
Received: from localhost ([127.0.0.1]:46711 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qxYYM-0007SQ-Nt
	for submit <at> debbugs.gnu.org; Mon, 30 Oct 2023 16:08:03 -0400
Received: from lists.gnu.org ([2001:470:142::17]:59416)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mats.lidell@HIDDEN>) id 1qxYYK-0007Rv-K7
 for submit <at> debbugs.gnu.org; Mon, 30 Oct 2023 16:08:01 -0400
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 <mats.lidell@HIDDEN>)
 id 1qxYXh-0008Sy-0O; Mon, 30 Oct 2023 16:07:21 -0400
Received: from smtp.egensajt.se ([194.68.80.251])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mats.lidell@HIDDEN>)
 id 1qxYXd-0002Ss-Jh; Mon, 30 Oct 2023 16:07:19 -0400
Received: from ethel (c80-217-132-174.bredband.tele2.se [80.217.132.174])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: mats.lidell@HIDDEN)
 by smtp.egensajt.se (Postfix) with ESMTPSA id 5A5712167F;
 Mon, 30 Oct 2023 21:07:04 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lidells.se; s=dkim;
 t=1698696424; bh=nBh593QLZrNLhaxvJGqXlXB2dx9DsmswsbWCcfeH6pQ=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=eV11WD8MeBUut5IZFzJGw4t07qXHGfIq4gdQD/C1fxUlZzUSXC3Nu8gT84ByKIfMt
 zRuQ2rnwOzzylx+uwrytkgWTaQTDyiszuBbLx2AvJUyBqpONmTtm341n19My8JdbNn
 IPMa3QDyDaDOZtC9xkEbdblPalI9ZMb9JUfSPPn4=
From: Mats Lidell <mats.lidell@HIDDEN>
To: alan.schmitt@HIDDEN
Subject: Re: hyperbole does not detect =?utf-8?Q?I=E2=80=99m?= on a mac
In-Reply-To: <m2fs1stf0b.fsf@HIDDEN> (alan schmitt's message of "Mon, 30 Oct
 2023 14:29:40 +0100")
References: <m2fs1stf0b.fsf@HIDDEN>
Date: Mon, 30 Oct 2023 21:07:03 +0100
Message-ID: <87msvz3me0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=194.68.80.251;
 envelope-from=mats.lidell@HIDDEN; helo=smtp.egensajt.se
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
Cc: bug-hyperbole@HIDDEN, hyperbole-users@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

Hi Alan,

> alan.schmitt@HIDDEN writes:
> Hello,
>
> I=E2=80=99m new to hyperbole, so don=E2=80=99t hesitate to tell me if I s=
hould be asking
> this somewhere else.

No problem. This sounds more like bug so the bug-hyperbole@HIDDEN could be=
 an
alternative but here is fine too and thanks for the report.

> When I press M-ret on a path to a pdf, hyperbole offers to run "setsid
> -w xdg-open", which I don=E2=80=99t have installed as I=E2=80=99m on a ma=
c. Looking at
> hpath:get-external-display-alist, I see that my window system, which is
> "mac", is not in the first conditional. Is this a bug?

Yes I think so. It seems Hyperbole does not identify that you are on a Mac =
and
falls back to settings used when running under X-windows.

Can you share what value `window-system' has on your machine? (Use Hyperbole
key series: {C-hv window-system RET})

> Is there a way to configure M-ret to open the file in dired instead?

Yes there is. You can customize the variable `hpath:native-image-suffixes' =
and
add the suffix of the file type that you want to display naively in Emacs. =
In
your case "pdf". The name of the variable is not the best and should probab=
ly
be updated now when Emacs supports more native document types than images.

%% Mats




Acknowledgement sent to Mats Lidell <mats.lidell@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-hyperbole@HIDDEN. Full text available.
Report forwarded to bug-hyperbole@HIDDEN:
bug#66838; Package hyperbole. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 31 Oct 2023 10:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.