From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88994 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.gnus.general Subject: Bug in gnus-alias-remove-current-body? Date: Wed, 12 Feb 2020 07:51:02 -1000 Organization: Avi Gobbler Publishing Message-ID: <87wo8rheyh.fsf@emailmessageidheader.nil> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="105020"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: ding Original-X-From: ding-owner+M37197@lists.math.uh.edu Wed Feb 12 18:51:54 2020 Return-path: Envelope-to: ding-account@m.gmane-mx.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1wB0-000RD6-Pa for ding-account@m.gmane-mx.org; Wed, 12 Feb 2020 18:51:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1j1wAQ-0007cI-Rh; Wed, 12 Feb 2020 11:51:18 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1j1wAM-0007ZX-It for ding@lists.math.uh.edu; Wed, 12 Feb 2020 11:51:14 -0600 Original-Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1j1wAL-00025X-6A for ding@lists.math.uh.edu; Wed, 12 Feb 2020 11:51:14 -0600 Original-Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j1wAE-00019L-Pc for ding@gnus.org; Wed, 12 Feb 2020 18:51:09 +0100 Original-Received: by mail-pj1-x1030.google.com with SMTP id m13so1201867pjb.2 for ; Wed, 12 Feb 2020 09:51:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:organization:date:message-id:user-agent :mime-version; bh=uonRdoCBPiXsx4EesPXxix89MuCcHmNAvrVbHRwRPsg=; b=EYZW9FFvpU2qeBSjV64b0OqP7xt3NNDzn7bFSPKEzsz4/LRFJ9yKG/xrwzeV11sSNG ZX26ThLgXRQ7dhAFQuePJaiyiJCG0hzAGAzts3yCJ2sI/GcKFBnCb04Dzw/W35cKy4L4 q/BPd4nkbEWrLxBP+AFTy2l54ueI3K4J6sY2NrD9Nk+rgh3CpN7rAiSoNekT0kgzrxvV nCmww3WYUXVTdwaeqv6f97KX9uCnkmWOUfMMhByaXQKnydlGeJNPkLxu8Z6cBEEQKkmq nbcTppECBVIxGE6AkHFgj8Nf5QpNf+iE4zzHPMmG8BLfN5g1mCXYM0wFfZEbAVRFyKr2 HzFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:organization:date:message-id :user-agent:mime-version; bh=uonRdoCBPiXsx4EesPXxix89MuCcHmNAvrVbHRwRPsg=; b=h0OeCw6hpgUC8hAGkE6mbZBA+nwzU7ezapnmCZPKlsp5CDHg5X4qJ3lWNeQY3rIkt6 MRiE9bYP/AQyiR6VMcT9RzXAMV2/H9+tq37DKrohYcDAc6+pQFoo+0R0ne2PeGu+b/6K iShj9ELBNCeCycTMG/7t+3Pb+O9L6N3RarpIMvWyjV0kxmV04bhqzT317nc3up/r27Cp LIh46TBUC7oBdhb2QLYQnA6m3bzdsTN3sYAeK906b+7MSmTBlOnmIArVeCXw03aGoVsP BS0C48lTeJUP4CIktpbnVtO4heYVY7m8G8zoJDwarKu+dif+YNR1ffFgUrNWBpzoD968 hGSA== X-Gm-Message-State: APjAAAVJeZS1kNE25xvk3vWN1Zu3OlSLr/eGEU6jz3b3wWhxbGkHC7V6 pdoZVmNfcRixrb+xrBwtUpvakWiw1fvWOA== X-Google-Smtp-Source: APXvYqyYf8Vn0NcickzCoj6sFdLGSJCsvIoL9s7vnDRtZ9qLeKzHPPmJDwWlwTmW9Xz6/ImcvffaQQ== X-Received: by 2002:a17:90a:d995:: with SMTP id d21mr250379pjv.118.1581529864075; Wed, 12 Feb 2020 09:51:04 -0800 (PST) Original-Received: from localhost (udp072992uds.hawaiiantel.net. [141.239.244.209]) by smtp.gmail.com with ESMTPSA id w18sm1606551pfq.167.2020.02.12.09.51.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 09:51:03 -0800 (PST) List-ID: Precedence: bulk Xref: news.gmane.io gmane.emacs.gnus.general:88994 Archived-At: Aloha, I've been tracking down some odd results with gnus-alias, which are configuration dependent but still worth a look. All of my identities add an extra body text of "\n" (and nothing else but that). This is to make a convenient space between the -- after the headers and the -- before the sig. But when I change identities mid-stream (after having entered a partial message, say, and realizing I should be using a different identity) this happens. The first "\n" in my message is deleted. This is because gnus-alias-remove-current-body is called, and it searches forward from the top of the message text, removing the first match for the previous 'body' addition. In other words it removes the first blank line in my message. Not the desired behavior. I believe gnus-alias-remove-current-body ought to search in reverse from the bottom of the body.[1] As an after-effect, the original "\n" (now at the bottom of the message text) is left in place and a second "\n" (representing the additional body text for the new identity) is added. Am I missing something here? Mahalo, -- Bob Newell Honolulu, Hawai`i - Via Gnus/BBDB/Org/Emacs/Linux [1] Or maybe not? I suppose it depends where the user expects the extra body text to appear. Preamble or postamble? This might expose a defect in the mechanism?