From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by inbox.vuxu.org (Postfix) with ESMTP id E961429B36 for ; Thu, 15 Feb 2024 15:57:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1radAe-0002l4-4y; Thu, 15 Feb 2024 09:57:04 -0500 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 1radAa-0002km-AV for info-gnus-english@gnu.org; Thu, 15 Feb 2024 09:57:00 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1radAX-0000hQ-Jt for info-gnus-english@gnu.org; Thu, 15 Feb 2024 09:57:00 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1radAR-0003jl-3m for info-gnus-english@gnu.org; Thu, 15 Feb 2024 15:56:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Subject: Re: line brake for attachments Date: Thu, 15 Feb 2024 15:56:39 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87frxtg4ig.fsf@tullinup.koldfront.dk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:5U2+sivpc/z/+V5hVWAgLnyX9oY= OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc X-Now-Playing: p1, X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97, Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Dieter writes: > <\#part ...> > <\#/part>" > > for me it would be (much) nicer if this attachment needs only one line > like this: > > <\#part ...><\#/part>" > > Is it possible to have a (customizable) variable for this behaviour? Not out of the box, it seems to be "hardcoded" in the last line of mml-insert-tag: (defun mml-insert-tag (name &rest plist) "Insert an MML tag described by NAME and PLIST." (when (symbolp name) (setq name (symbol-name name))) (insert "<#" name) (while plist (let ((key (pop plist)) (value (pop plist))) (when value ;; Quote VALUE if it contains suspicious characters. (when (string-match "[][\"'\\~/*;()<>= \t\n[:multibyte:]]" value) (setq value (with-output-to-string (let (print-escape-nonascii) (prin1 value))))) (insert (format " %s=%s" key value))))) (insert ">\n")) which is called by mml-insert-empty-tag, which is in turn called by mml-attach-file - called by you, I assume. You could either wrap mml-attach-file in a little code that removes the linefeed you do not like, and then call that, or (perhaps more risky) add an advice to mml-insert-tag. Or simply override it with your own version :-) Best regards, Adam -- "Jo, tak som falbyder, det ville da være Adam Sjøgren prisværdigt." asjo@koldfront.dk