From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.bugs Subject: bug#48748: 28.0.50; The xdg-mime-apps-files function contains a dolist over a cons of strings Date: Mon, 31 May 2021 08:38:39 +0200 Message-ID: References: <84bd27a3c27c489402603116e32f27bdeb9fb85e.camel@gmail.com> <87o8crmsbp.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006f8b4a05c39a7aa3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26948"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48748@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 31 08:39:28 2021 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 1lnbaC-0006mm-0C for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 08:39:28 +0200 Original-Received: from localhost ([::1]:54058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnbaB-0001LL-0W for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 02:39:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnbZm-0001LB-Tz for bug-gnu-emacs@gnu.org; Mon, 31 May 2021 02:39:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnbZm-0004mz-4k for bug-gnu-emacs@gnu.org; Mon, 31 May 2021 02:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnbZm-0005u2-1U for bug-gnu-emacs@gnu.org; Mon, 31 May 2021 02:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 May 2021 06:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48748 X-GNU-PR-Package: emacs Original-Received: via spool by 48748-submit@debbugs.gnu.org id=B48748.162244313822680 (code B ref 48748); Mon, 31 May 2021 06:39:01 +0000 Original-Received: (at 48748) by debbugs.gnu.org; 31 May 2021 06:38:58 +0000 Original-Received: from localhost ([127.0.0.1]:60837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnbZi-0005ti-5H for submit@debbugs.gnu.org; Mon, 31 May 2021 02:38:58 -0400 Original-Received: from mail-ua1-f51.google.com ([209.85.222.51]:46857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnbZf-0005tU-No for 48748@debbugs.gnu.org; Mon, 31 May 2021 02:38:56 -0400 Original-Received: by mail-ua1-f51.google.com with SMTP id p1so6007943uam.13 for <48748@debbugs.gnu.org>; Sun, 30 May 2021 23:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Za/OOfAcMmEM47VPlXzwRJjMHFFaOyyNkibfotGxr2I=; b=FIlVRn6JvBfLmooG0Bgq9A+ig9XPg1FxQLwLgVOlG/rz5kgK/0fvKDML4ftNCV2S8H zxKoCmNmSvxmFTmnNrG2ZJlR0pWGKCa5m2547qO208peeYiYmJA3qihMVOiQb+yYoE1T JWlloSp2/WYOIkb2v5CZDM/TJwvUdVjCiPCqy8AV6W00/u8f04SYRUuwpWCpXqKwoFaC IrcYGMF+3yqR2N5zGESCSO0/T6gVHbuulp8wvXDDVdCeAtLJq0mMGo8a6bpLFz0DT+WK ER+fM7EaDO8V39nXJO7ab2qDM+z5ULlXtDeiK7PmSYnVVNZ+4QRJQJ56X32SSbg5Rd6o f4dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Za/OOfAcMmEM47VPlXzwRJjMHFFaOyyNkibfotGxr2I=; b=ttpjy8z5QqusypXkv841d1IxmAPLkhXmF9Hmnu3Q5anMI4ErFTC+Zg3uNBLLnb3NkF NTs2u9qOTHuZE3K0CjKLtMK8nsEbP3AEFnAZ/vi5JpbZ+e74gUfqvA99yLU67zN2kqw9 lupG83tl+TtvnoNT0r0JvfiVCvK7GO7EF3QrcwO/QGYrkJYGwBX9Yvwi4vxiE/Vk+uEh UyPQ9R05ZQoucOAVJa/RuHphLWblD8tlp3mOxAJl3icdm52VtoXwu34fKTDeGZPUS8+A AEaer21y8w9Sut2mvIBSDvzfZ0j5I0rY+X85AItgNhTPNP21y4AnoIEBP6UfECYoy2FQ 2hRQ== X-Gm-Message-State: AOAM531V8yiFvu3AJFY34PSB8Nr2sLCZnd/7wPC9QTYxcK23q5t4++4S Yv20CyZcaoArx/cJkaTWczvq0pazogixpBfk/3yaLsvAHyU= X-Google-Smtp-Source: ABdhPJyBRD9yYodmFm1ShjuinpOx3ArT2e+xIZyiT/CNqCUQkTtI3yy+RNbuvwsJ1/BZ2/xee6gtzKmkJgU5mYD1UP4= X-Received: by 2002:ab0:710f:: with SMTP id x15mr2635614uan.74.1622443130062; Sun, 30 May 2021 23:38:50 -0700 (PDT) In-Reply-To: <87o8crmsbp.fsf@gnus.org> 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" Xref: news.gmane.io gmane.emacs.bugs:207672 Archived-At: --0000000000006f8b4a05c39a7aa3 Content-Type: text/plain; charset="UTF-8" Great! Thank you... On Mon, 31 May 2021 at 06:37, Lars Ingebrigtsen wrote: > dalanicolai@gmail.com writes: > > > On Fedora with KDE, evaluating the function `xdg-mime-apps-files` > > (after > > loading the library `xdg`) causes a wrong argument error. > > > > The error is caused by the first dolist receiving a cons of strings > > (the desktop argument is and definitely should be a string). That cons > > should become a list. > > I'm guessing the code was only tested when XDG_CURRENT_DESKTOP isn't > defined -- then that cons is the right thing. I've now pushed a fix to > Emacs 28 that should work when XDG_CURRENT_DESKTOP is defined, too. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --0000000000006f8b4a05c39a7aa3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Great! Thank you...

On Mon, 31 May 2021 at 06:37, Lars Inge= brigtsen <larsi@gnus.org> wrote= :
dalanicolai@gmail.com writ= es:

> On Fedora with KDE, evaluating the function `xdg-mime-apps-files`
> (after
> loading the library `xdg`) causes a wrong argument error.
>
> The error is caused by the first dolist receiving a cons of strings > (the desktop argument is and definitely should be a string). That cons=
> should become a list.

I'm guessing the code was only tested when XDG_CURRENT_DESKTOP isn'= t
defined -- then that cons is the right thing.=C2=A0 I've now pushed a f= ix to
Emacs 28 that should work when XDG_CURRENT_DESKTOP is defined, too.

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--0000000000006f8b4a05c39a7aa3--