From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#62815: Gnus: MIME types of attachments contain regexp quotation Date: Mon, 24 Apr 2023 12:29:38 +0200 Message-ID: <86bkjd3759.fsf@gnu.org> References: <87o7ns0ztt.fsf@physik.rwth-aachen.de> <83pm874z49.fsf@gnu.org> <831qkc2tq2.fsf@gnu.org> <87bkjf8gj4.fsf@ust.hk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20670"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Andrew G Cohen , 62815@debbugs.gnu.org, Andreas Schwab , bronger@physik.rwth-aachen.de, larsi@gnus.org, Eli Zaretskii To: Andrew Cohen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 24 12:31:28 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 1pqtTk-0005E5-IV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Apr 2023 12:31:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqtTN-0006p9-Lw; Mon, 24 Apr 2023 06:31:05 -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 1pqtTL-0006oZ-37 for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 06:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqtTK-0002bF-Pm for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 06:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pqtTK-0004UH-Cp for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 06:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Apr 2023 10:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62815 X-GNU-PR-Package: emacs Original-Received: via spool by 62815-submit@debbugs.gnu.org id=B62815.168233222612311 (code B ref 62815); Mon, 24 Apr 2023 10:31:02 +0000 Original-Received: (at 62815) by debbugs.gnu.org; 24 Apr 2023 10:30:26 +0000 Original-Received: from localhost ([127.0.0.1]:47645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqtSj-0003BM-UN for submit@debbugs.gnu.org; Mon, 24 Apr 2023 06:30:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqtSj-0002uU-3f for 62815@debbugs.gnu.org; Mon, 24 Apr 2023 06:30:25 -0400 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 1pqtSZ-0002P4-H7; Mon, 24 Apr 2023 06:30:15 -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=Wt+lfLaKZW6Vx/KTtyKpqVAp2w0X+Q2n4O9M1uKuaBI=; b=oJyKuFfpn4V4FUjPBuIa 2xFtR6PY3ZBxkm/SogxssZ6lgT5tWp56zQibC8QLOcEjXDGl+lHWKBmVVK+fvpICeau5hmwEI9fZK J9EFFCcCAWffcGJ98V52yR+GdBogFXEHkJKJoBRXAK3RPPkdLRe3UPgtfv+iOUau+GUENeEHlBRn4 /Bb3wWGR5++OVGnVVRSGn0dbZ4l+0eIKrxS+Y+BeerOdI4mLvlgg/SLItfw2lVmJQ/qS5UJpbNTmA cl1vgSBo7Eg83NANgLEsREHWBNteM6SnkdLpOXlrwudbGIxlQMA0qMygp7Ij+YfaVXoi2O3eE59et 7S4/dI3hFM6fag==; Original-Received: from pd9fb7539.dip0.t-ipconnect.de ([217.251.117.57] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqtSR-0006lL-UI; Mon, 24 Apr 2023 06:30:14 -0400 In-Reply-To: <87bkjf8gj4.fsf@ust.hk> (Andrew Cohen's message of "Sun, 23 Apr 2023 10:43:27 +0800") 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:260556 Archived-At: Andrew Cohen writes: > If all this is right, the simple fix is to revert the part of > 3faa508eba84a1983732099cbd3cc1eaad404158 that treated the extension data > as regexps. I have attached a diff below that does this. If Torsten > and Arash can check if this continues to provide a fix for bug#52038 and > bug#62815 that would be great! Thanks for looking at this. I built the latest repo version (65735cee71) of Emacs and tried it with and w/o your patch. It seems to fix the issues Torsten and I have reported, but ... > There is one more place I think needs fixing (and maybe others I haven't > spotted yet): I see a strange side effect when I use 'e' in article buffer to view a attachment. Without your change, Emacs starts Excel like this (this it at least I see in *Messages* buffer) and it works: Displaying start excel.exe "`cygpath -w -a c\:/msys64/tmp/emm.fMzcnA/file_name.xlsx`" With your change, I get: Displaying start excel.exe "`cygpath -w -a "c:/msys64/tmp/emm.QDUAFP/file_name.xlsx"`" which doesn't work due to extra pair of quotes. This is the entry in my .mailcap: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; \ start excel.exe "`cygpath -w -a %s`" This on Win10. Best, Arash