From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: customize hideshow.el? Date: Mon, 14 Aug 2017 06:44:50 +0200 Message-ID: <767f9dfe-3c49-23bd-4ee2-eb6cbb6f78da@gmail.com> References: <861sofza80.fsf@stephe-leake.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1502685948 21488 195.159.176.226 (14 Aug 2017 04:45:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Aug 2017 04:45:48 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 14 06:45:40 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dh7Fz-00054b-Ro for ged-emacs-devel@m.gmane.org; Mon, 14 Aug 2017 06:45:39 +0200 Original-Received: from localhost ([::1]:47017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dh7G6-0005tv-3n for ged-emacs-devel@m.gmane.org; Mon, 14 Aug 2017 00:45:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dh7FK-0005so-A7 for emacs-devel@gnu.org; Mon, 14 Aug 2017 00:44:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dh7FJ-0000vK-FY for emacs-devel@gnu.org; Mon, 14 Aug 2017 00:44:58 -0400 Original-Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]:35267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dh7FJ-0000v7-Af for emacs-devel@gnu.org; Mon, 14 Aug 2017 00:44:57 -0400 Original-Received: by mail-qt0-x22b.google.com with SMTP id p3so46316104qtg.2 for ; Sun, 13 Aug 2017 21:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=V72s/Q34LPLnnZHUCGZHtbdfxh1FAeb6NMfZVQ4aypc=; b=EOwhovtyARWJQMEx1WyP+l/OQm5q4d13TIEIMJm/bLwwEGjZAt1j94NjjbwGD4mKcE lLlp5eEH5/izVVmLBbBXo3dUvU001p+VzwFURaSBM3Acz6+78tWI+TEm5y898aJR2iHy gN0EXCNhfZ3+1D0em54LLkoB1EQhKgORHXpYE4x1VJgl8HjzxS8BEtbGIPvxSpQZ98pb vZelxo9WVaHc3z780y4z3T2gV7vBMsQ2zBGBbrR/7nx0kfAHEWvvZRglCagFajL7EPYa NO3Vu9/oCrVwH3nQGBxlxfYZ+NfAY2RAwvaeMrjxuEe/FYmKBW4SqgwFbVWrGwB2l2wQ OoVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=V72s/Q34LPLnnZHUCGZHtbdfxh1FAeb6NMfZVQ4aypc=; b=bRjS9dS8mvuZNToK3vL+Bk1D7/r33Xn12+Rk88W+gvY6HAV+I9V6S49oEoUh4sKwmo i7ED8nZ3G2AUNW/sJKSqRbhRPrbpx4yj1UyeCJvo/MoVsVil3m7KNljZqNdUTApMSZUI 2G82wBNj5rVJEYSM5ghYvMKNyZZZgs4KIA2OpefUdkcPVDB4KnVf/hkAzG4QNpvfYp/0 OhdM6Luh+UB/lQndRtUtuZDf1EJwnAo13GnLAjZeh2On8L7Oc6qrllWSbfl9X1+dtwXH XqktDZPfQNmOQbffylB8OJGIVfXrNK1BOPO72Z0udxruwf4DMcOhohGC4vQO7lihuIKw cwKA== X-Gm-Message-State: AHYfb5gM4KggdO0IbnFIriDBhbPcSou7OqgqVNy8JPSHm2ywVq3fBc7m MBOjVGDfXvzriWneZUQ= X-Received: by 10.200.10.67 with SMTP id f3mr24213286qti.196.1502685895302; Sun, 13 Aug 2017 21:44:55 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:663a:fda9:ab05:7da6:e7b7? ([2601:184:4180:663a:fda9:ab05:7da6:e7b7]) by smtp.gmail.com with ESMTPSA id e3sm175485qkd.82.2017.08.13.21.44.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Aug 2017 21:44:54 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217533 Archived-At: On 2017-08-13 18:58, Yuri Khan wrote: > You can treat the symptom with a painkiller such as hideshow. But the > root cause is better treated by extracting a > function/procedure/subroutine. The OP seems to be refactoring existing code, so I'm not sure what this comment is getting at :/ Sure, ideally all code would be clean and nice and there would be no need for tools that work around ugly code. In practice, though, it's hard to get people to agree on exactly what clean and nice code is, and many of us end up reading a lot of code they didn't write, cannot change, and don't necessarily like. In these cases, "treating the symptoms with hideshow" sounds like a very reasonable approach. Clément.