From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#69141: [PATCH] Allow attaching files at point using 'gnus-dired-attach' Date: Tue, 20 Feb 2024 07:52:50 +0530 Message-ID: <87wmqzswlh.fsf@gmail.com> References: <87v86qnfqn.fsf@posteo.net> <87bk8fq7w7.fsf@ericabrahamsen.net> <878r3gbgb5.fsf@posteo.net> <87cyss9t16.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9533"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eric Abrahamsen , Philip Kaludercic , 69141@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 20 03:24:58 2024 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 1rcFoY-0002Jh-QU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Feb 2024 03:24:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcFoI-0002Cj-HL; Mon, 19 Feb 2024 21:24:42 -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 1rcFoH-0002Ca-9k for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 21:24:41 -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 1rcFoH-0003Ol-20 for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 21:24:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcFob-00050a-SU for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 21:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2024 02:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 69141-submit@debbugs.gnu.org id=B69141.170839587519187 (code B ref 69141); Tue, 20 Feb 2024 02:25:01 +0000 Original-Received: (at 69141) by debbugs.gnu.org; 20 Feb 2024 02:24:35 +0000 Original-Received: from localhost ([127.0.0.1]:43944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcFoA-0004zO-O7 for submit@debbugs.gnu.org; Mon, 19 Feb 2024 21:24:35 -0500 Original-Received: from mail-pj1-f65.google.com ([209.85.216.65]:45153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcFo5-0004z5-Af for 69141@debbugs.gnu.org; Mon, 19 Feb 2024 21:24:33 -0500 Original-Received: by mail-pj1-f65.google.com with SMTP id 98e67ed59e1d1-2998950e951so926207a91.2 for <69141@debbugs.gnu.org>; Mon, 19 Feb 2024 18:24:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708395782; x=1709000582; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gUOslWMvtV2bgZET1U+RxdWZoNi8kwCzBdlqvZ97y3k=; b=njMpzRNe1I/kIB1GRwIbx7WjA3eSQYiBYrfeQ1ZASp2YGtAYwemgAjL2CrzBW0CfOH gZUAXPr9yzQ807RxysdX82LqgF7m1HwyHML5CTKZjWw93kimPEn7+Eoe4A7WPmNluj2w cFGIbbYvYL9wHX97doabBAbgbeHsWk9Nd46hiWx3a9CHbHubPjSUniiU1qF27PEDsa5g P/Kd0OeX2aoIdcCqwUyMaGPbES2q0EewDvem+wmPkmVnLWkv8NTAdqU4KOvOJs5sME13 9+s+g5F+RJd8u7gLd2L0H/5WK4n2IKsk8A/Z/0/VyKQxZlQBUINOkI1hYpYlLHFxvpU6 ywoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708395782; x=1709000582; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gUOslWMvtV2bgZET1U+RxdWZoNi8kwCzBdlqvZ97y3k=; b=ZEy1+0uD+eUxtKPSFysDT7ROoxebWItwFWO35XDApnZ3Jryit/nVMtybJJk902wswt e7qehK4ZwYmhbpVjcAUhoKsLq2+Nx/XwLdAXiQMwPjdLTcdJcB/9iz//OcCnYO37sSZD 1VTLv584B6uT5VjSvv8G7htYDp8FmbwcIlUqVZ35MgYQPjCYMmRMCqmVNuEcrL7aLRxY sIifWPFyj0yhWJ6wYqUM80wAUAjWGTwbXveJ0AaAYK/mzNUMdWGs2blpqbx8qEi3RpBr hfENAYAa5L+SEIPA147nI5vYXtRT3wjZ5tJkFk5/2GFfh9jcbANDLDY4SFHES/RuAaJq 2QCQ== X-Forwarded-Encrypted: i=1; AJvYcCXVqtX5i2AQ3/pdjGh3HhQaWfQ2eI1OwB5FfsUQN+DWVer0UXlVdnE35ImeJLYIwpidhV7LcNf87D49Xf0OCWHDzeggp5k= X-Gm-Message-State: AOJu0Yz1TBDMmtdF4FKhO65gqWsLuzxnheuEgJXL35/Y7ZKbSU/EQVxs TKFmvoaB0mhNFAQLpQdZ0RMHfC4d0Sd7HsQOxycaCJfHryO8mkVJ X-Google-Smtp-Source: AGHT+IG9EM8ps5W8uAqK5U1+t3y+KZ5/ysTLWRGpvigF2YBNcRVaXbsSnFB280k3d3cObs8T4pO/NQ== X-Received: by 2002:a17:90b:1902:b0:299:5579:33fd with SMTP id mp2-20020a17090b190200b00299557933fdmr5014685pjb.8.1708395780874; Mon, 19 Feb 2024 18:23:00 -0800 (PST) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id c24-20020a17090ad91800b0029948cb4367sm5984645pjv.23.2024.02.19.18.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 18:23:00 -0800 (PST) In-Reply-To: (Stefan Kangas's message of "Mon, 19 Feb 2024 15:33:45 -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:280299 Archived-At: [=E0=AE=A4=E0=AE=BF=E0=AE=99=E0=AF=8D=E0=AE=95=E0=AE=B3=E0=AF=8D =E0=AE=AA= =E0=AE=BF=E0=AE=AA=E0=AF=8D=E0=AE=B0=E0=AE=B5=E0=AE=B0=E0=AE=BF 19, 2024] S= tefan Kangas wrote: > Philip Kaludercic writes: > >> Do you think it would be OK to modify the default behaviour? If so, I >> guess we should mention it in NEWS and point out how to restore the old >> behaviour, for anyone would really needs it. > > I'm not sure it's worth changing it, because other attach commands in > message-mode adds attachments in place, which kind of makes sense if you > are dealing with in-line images. So I can realistically see users > wanting either behaviour, and providing an option does that. > > WDYT? Although as Eli pointed, the place where the attachment shows up is completely up to the MUA, I always found it annoying that the dired command attaches it at the end since it made it (1) hard for me to know whether I attached the file, and (2) hard to present the attachment in a relevant place to other Gnus others. So I ended up resorting to drag-n-drop from dired (now I use yank-media to attach copied files in clipboard). I wouldn't mind having this new defcustom default to nil.