From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#36266: 26.1; Problems with sieve-manage Date: Sun, 11 Aug 2019 08:11:50 -0700 Message-ID: <877e7j68jt.fsf@ericabrahamsen.net> References: <23815.51315.484730.915010@alice.local> <8736iuezpj.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="137710"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36266@debbugs.gnu.org To: hartzell@alerce.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 11 17:12:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hwpW7-000ZfZ-Jw for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Aug 2019 17:12:19 +0200 Original-Received: from localhost ([::1]:40536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwpW5-0004mG-Rf for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Aug 2019 11:12:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46087) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwpVr-0004iU-Eb for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2019 11:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwpVq-00087b-D7 for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2019 11:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hwpVq-00087W-9k for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2019 11:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hwpVq-0007HY-3G for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2019 11:12:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <23815.51315.484730.915010@alice.local> Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Aug 2019 15:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36266 X-GNU-PR-Package: emacs Original-Received: via spool by 36266-submit@debbugs.gnu.org id=B36266.156553632127986 (code B ref 36266); Sun, 11 Aug 2019 15:12:02 +0000 Original-Received: (at 36266) by debbugs.gnu.org; 11 Aug 2019 15:12:01 +0000 Original-Received: from localhost ([127.0.0.1]:45700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hwpVp-0007HJ-4D for submit@debbugs.gnu.org; Sun, 11 Aug 2019 11:12:01 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:41474 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hwpVn-0007H7-OH for 36266@debbugs.gnu.org; Sun, 11 Aug 2019 11:12:00 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id A3D3FFA0A7; Sun, 11 Aug 2019 15:11:52 +0000 (UTC) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164885 Archived-At: On 07/25/19 11:28 AM, Eric Abrahamsen wrote: > hartzell@alerce.com writes: > >> I asked for help with these on the `help-gnu-emacs` mailing list and >> Eric suggested that I also report them as bugs so that they don't get >> lost. Here is the email thread: >> >> https://lists.gnu.org/archive/html/help-gnu-emacs/2019-06/msg00185.html >> >> g. >> >> --- >> >> I've been trying to use sieve-manage in GNU Emacs 26.1 on a Mac with >> dovecot-pigeonhole-0.5.6 on a FreeBSD 12 system. >> >> I've run into a few problems: >> >> 1. I can start sieve-manage, use the `f` key with the `` >> line highlighted, edit a script, and use `C-c C-l` to upload it to >> the server. >> >> The problem is that the script, on the server, is named `> script>.sieve`, which is awkward. >> >> But worse, if/when I restart sieve-manage it offers me two choices, >> one labeled `` (which is the button to create a new >> script) and one which is the existing script which was saved under >> that same name. >> >> I've tried renaming the buffer, but the code has a preference for >> `sieve-buffer-script-name`. >> >> Is there some way to rename the buffer? > > I think it's a little weird that `sieve-new-script' (which defaults to > "" is a configurable option at all. IMO, there are two > separate concerns: some placeholder text for the button that's used to > create a new script (there's no reason to make this configurable), and > the default name for a newly-created script (the new name should be > prompted for on a script-by-script basis, and there's no reason to have > a default at all). > > I've attached a simple diff which checks if your new script has the same > name as `sieve-new-script' and prompts you to rename it. But I think a > more sensible solution would be to remove the `sieve-new-script' option > altogether. Then hard-code the "new script" button text, and always > prompt for a name for a new script. I'll just do the simpler fix for now...