From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: master 262a7c9ea0: New minor mode elide-head-mode Date: Sun, 9 Jan 2022 04:59:49 -0600 Message-ID: References: <164172314114.31544.13495331125988316383@vcs2.savannah.gnu.org> <20220109101221.E3FDAC0DA16@vcs2.savannah.gnu.org> <87ee5htdhu.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15828"; mail-complaints-to="usenet@ciao.gmane.io" To: Po Lu , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 09 12:01:51 2022 Return-path: Envelope-to: ged-emacs-devel@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 1n6VxP-00040T-Go for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Jan 2022 12:01:51 +0100 Original-Received: from localhost ([::1]:34892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6VxO-0008O4-Df for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Jan 2022 06:01:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6VvV-0007eP-0p for emacs-devel@gnu.org; Sun, 09 Jan 2022 05:59:53 -0500 Original-Received: from mail-pj1-f51.google.com ([209.85.216.51]:35567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6VvT-00028G-DX for emacs-devel@gnu.org; Sun, 09 Jan 2022 05:59:52 -0500 Original-Received: by mail-pj1-f51.google.com with SMTP id r16-20020a17090a0ad000b001b276aa3aabso19128347pje.0 for ; Sun, 09 Jan 2022 02:59:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=CTn4m3kJ9VJ/z6j0+j8og6NpQt2u1aMrk1UDkKW5ueU=; b=k02SQg6HOeKVcACVkQNAJqawC/5F6KTdIwgNRZBSJoXCn2ax2jjg8CTFkoQCLwZcDH lfc50th0BpDjBM7WYjMhUk82lWqsTWCaxadu/5ttdYNWDDk4bnONfF8GsZLCTpdBMNn/ cF8z5L/tpr1J7pLmSZFLeUIfwKfX+vacNqk/9OkUwoVNFmPKhFDbJX/9A6UYzp0gca4s Cohxm6Oqi8ul5kihQ0Hl5GJlnF2YzABtEdupCyXFPw4GPNNAb2Mmvk/pxE8lAOK0yGLH T4fy3ptwXSMzcHQWxzpIJfm9o2an+d9zojK7qL5eYF6OgJ9ns09MliOADUGErQCytTBq ExbQ== X-Gm-Message-State: AOAM531NUkpYJPDjmxxtN8picAFu7KCWpSzJ/hgijymOvHCeZ8ip2JP5 8XYTimLFLtXKWIUlJgVro1bfOc19HJkgM6nBn2I= X-Google-Smtp-Source: ABdhPJw0pDYcRf/cKK5YTFbEazvdcuzZ47kz0K0EvGHDRq3mz7fOKJ9s7BztometQZUYZdRJ2PSaheffXUbEYPJpRHA= X-Received: by 2002:a17:90a:4482:: with SMTP id t2mr24598381pjg.133.1641725989759; Sun, 09 Jan 2022 02:59:49 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 9 Jan 2022 04:59:49 -0600 In-Reply-To: <87ee5htdhu.fsf@yahoo.com> Received-SPF: pass client-ip=209.85.216.51; envelope-from=stefankangas@gmail.com; helo=mail-pj1-f51.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:284500 Archived-At: Po Lu writes: > For example: > > (defun elide-head-show () > "Show a header in the current buffer elided by \\[elide-head]." > (interactive) > (elide-head-mode 0)) I chose not to do that, in order not to change the (admittedly buggy) behavior of the old commands. But if people think it's a good idea, I have no objections to such a cleanup. > And if those commands are made such simple wrappers, they could be > un-obsoleted as well, since it would be useful to explictly disable or > enable elide-head-mode inside `find-file-hook' and other similar places. We don't usually provide such commands for modes, I think?