From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.bugs Subject: bug#51809: 29.0.50; [PATCH] Support for outline default state in Diff buffers Date: Tue, 30 Nov 2021 20:33:33 +0100 Message-ID: <87bl21igky.fsf@gmail.com> References: <87lf1sw6ji.fsf@gmail.com> <86h7cgdk4v.fsf@mail.linkov.net> <87ee7kvshn.fsf@gmail.com> <87a6i7x5iq.fsf@gmail.com> <86k0hbam7r.fsf@mail.linkov.net> <878rxrmy7q.fsf@gmail.com> <86y256uc0v.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32181"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51809@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 30 20:34:19 2021 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 1ms8tP-0008CN-EM for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 20:34:19 +0100 Original-Received: from localhost ([::1]:49622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ms8tO-0001PV-3M for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Nov 2021 14:34:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms8t8-0001P9-SG for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 14:34:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ms8t7-0006Oo-V3 for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 14:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ms8t7-0002EJ-So for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2021 14:34:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87lf1sw6ji.fsf@gmail.com> Resent-From: Matthias Meulien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Nov 2021 19:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51809 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51809-submit@debbugs.gnu.org id=B51809.16383008228541 (code B ref 51809); Tue, 30 Nov 2021 19:34:01 +0000 Original-Received: (at 51809) by debbugs.gnu.org; 30 Nov 2021 19:33:42 +0000 Original-Received: from localhost ([127.0.0.1]:42552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms8so-0002Dh-Df for submit@debbugs.gnu.org; Tue, 30 Nov 2021 14:33:42 -0500 Original-Received: from mail-wm1-f49.google.com ([209.85.128.49]:44940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ms8sm-0002DU-SQ for 51809@debbugs.gnu.org; Tue, 30 Nov 2021 14:33:41 -0500 Original-Received: by mail-wm1-f49.google.com with SMTP id p27-20020a05600c1d9b00b0033bf8532855so15563415wms.3 for <51809@debbugs.gnu.org>; Tue, 30 Nov 2021 11:33:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:message-id:mime-version; bh=16cvAqB3D8dz28wv//XGQCoRIPzwb0bVaE8Emv42hfo=; b=fdTawBWfRv/Dy//RMZVIVCBzwsuc5If9v03FlLmWGzFJeALVox+1YRZoPL/ybKgoZq OHWM9FKSrrRNqi4kRqdf4GvEX7doMFZpHnWBMElkmoI7q20pGXE9rs6ByBIoD7twXd9B 6XR3IoOhIfdTxo7P3J5wKml5gj/m9oZBcJxuzlyJ6Iy/tI6/7p3jZlUyB2nX9e/88KZw bgW7vxkdQIgpAYoEqUSRdTlMDnEfLT1wQCcWg2zPZcfxaTXlfLTrvvDZX/w+XGogLRPF Zm8GYEha0nzT1jUVwcQguGEMoeMXMu/zNtTNCztOtUKihPqujernFy4Fj3opkF5t9ntY U5lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :mime-version; bh=16cvAqB3D8dz28wv//XGQCoRIPzwb0bVaE8Emv42hfo=; b=DNrS7WMOnfayFbYeHF3SgDtmFKJu4VZ2V3W7Uqdf6IRAE52JW/DCuI8mnbvNL76ubM EgkvGob8Vilb+vI/ZmIsf48aDDaT3O4tH0sKKTMeEwQUXrujJBHytTWRVf4vH9797Vc2 5hB4An9ZuD6BhUAR6SQ57gEEF1ZpxwD0fnOL+zNK/emtYUClpLjws4pPcbj6NFKKPrYj NAVD9hs6fmcB22acPexsHEYp7b0Zgg2x6tBRjcWM6OVPUFON8zsrf6dPIbcj/eq10ipw +LFyLeKzr4huw7lAYp6MiUzdYSutJc+W0F//vMFM9rHTodCLl5JiINPmPbxUbLPdwx43 tTTA== X-Gm-Message-State: AOAM5306XdaxOT30VMMSDqxrUuHCSv73f4dIHY+CIEeGx1VQLzFsUMuw yjGFcLcQ6X8zTi60x85YTaz/Wl0nzNk= X-Google-Smtp-Source: ABdhPJxu5CrUMsaIq6SBULOLN16gJbBiMyy6TO1FrNajbiNyZtpAJI+akJUAp8eixrGvrT7FqtBfeg== X-Received: by 2002:a1c:9d03:: with SMTP id g3mr794976wme.143.1638300814839; Tue, 30 Nov 2021 11:33:34 -0800 (PST) Original-Received: from carbon.localdomain ([2a01:e0a:245:c850:f180:2554:8940:34b0]) by smtp.gmail.com with ESMTPSA id n32sm4206647wms.1.2021.11.30.11.33.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 11:33:34 -0800 (PST) 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" Xref: news.gmane.io gmane.emacs.bugs:221167 Archived-At: Hi Juri, > (...) Actually, I have been using it all the time, and it saved me in > many cases when long lines in diffs make Emacs unresponsive. Good news! > I have the same problem of too long outline-body lines in xref > buffers, (...) It would be nice to move this feature completely to > outline.el, I fully agree. > so it could be used by other modes, not only in diff-mode. > Please see bug#49731 that will be closed after this feature > will be supported generally by outline-minor-mode. > > Then there are two variants: Yes. I'll think of it. If I remember correctly, org-mode handles an initial state too, I've no idea of how it's implemented there. It may help to choose between the two variants in order to merge all implementations in one place at some point. And many thanks for your comments on the patch. I'll modify it after I have had a look at your sugestion to move the feature to outline.el. But since I've not much spare time, please be patient! -- Matthias