From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.bugs Subject: bug#13646: Whitespace support for file/mode-specific styles and actions Date: Thu, 07 Feb 2013 15:44:35 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360248359 28755 80.91.229.3 (7 Feb 2013 14:45:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Feb 2013 14:45:59 +0000 (UTC) Cc: 13646@debbugs.gnu.org, viniciusjl@ig.com.br To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 07 15:46:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U3Sjt-0001uY-Pm for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Feb 2013 15:46:13 +0100 Original-Received: from localhost ([::1]:53099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3Sjb-0004E7-15 for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Feb 2013 09:45:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3SjQ-0004Ds-Ni for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 09:45:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3SjN-0005UX-EA for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 09:45:44 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3SjN-0005UQ-AF for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 09:45:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U3Skg-0007Xw-P5 for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 09:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Didier Verna Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Feb 2013 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13646 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13646-submit@debbugs.gnu.org id=B13646.136024837428948 (code B ref 13646); Thu, 07 Feb 2013 14:47:02 +0000 Original-Received: (at 13646) by debbugs.gnu.org; 7 Feb 2013 14:46:14 +0000 Original-Received: from localhost ([127.0.0.1]:41042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3Sjt-0007Wq-3D for submit@debbugs.gnu.org; Thu, 07 Feb 2013 09:46:13 -0500 Original-Received: from smtp1-g21.free.fr ([212.27.42.1]:45955) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3Sjo-0007Wg-Tf for 13646@debbugs.gnu.org; Thu, 07 Feb 2013 09:46:11 -0500 Original-Received: from Scofield.local.free.fr (unknown [IPv6:2a01:e35:8b50:e80:5ab0:35ff:fe7b:9220]) by smtp1-g21.free.fr (Postfix) with ESMTP id 49A48940225; Thu, 7 Feb 2013 15:44:37 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Thu, 07 Feb 2013 09:26:01 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (darwin) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEU+HhuqjneJWUYMBQkM FQ+wbVFWVD/ExcXLh2hcAAACUklEQVQ4jU2UMW/jMAyFGTvVzQrg89oQsLoaJ+Hm4CR0jwB3Vjwo c6f8/XuklLaeAn9571EUaUpenpSCOVt5pi0zPx4Pig3EYK72U8HGPAPo+5B82K39nDt4e4KU0mW3 3Qrk3kESpw7shpDbE8DMLD8AN5DiDzB9gyDAm+X6jPgCMfpAla+TGiE7o16xEieCYmoClIt6W7k+ Cdg2FWx5+birVRg1fPsGv1VBxh1TMhBcm9W2OQFxWD6IqIGWngtAjAfr6AjF9ATZmVnAyzY5AXbq gIvRtv9DmZnYCsjsquFyV/AH/zvVRQ7BlUba86Fd1KqvFiTgaK6yPd0VxHWxU+6goDp7entor9Z9 /syVN7RkyjTAWEEMF4wBHOQAduINxmoVcPKda91bS8CtvTVgKgNUXrRNItEpCcG43QHs3ABO6c4N 8F5JJJwXEFSnIAVC9QCuS15hLFbJrxVAgnhBeKZqBglPEQAHewLenWlVRY/cKjWzDEhFC62CCw0I 6RJMDuMyFLwXAEgIwgUVOPNQ4E05sNRFUgCqrl0RjSoQT4YK7VxkpAHWOr7IjJUjiWjhMp/nBugm 91zH1QOgCXOzQnPPOshFrgai4dHDPZ1lJ9z+Sj4doz98AT/obZ+dC4SbDrcOcPQBN7fY+uqpHH0M qiHd88Hm66ke/aWgRSHq1aa2aBiaOvpQ0dTgR217J9dTwWKZkrCq618NB4CfqWPw/l1DxKxvlHwd ZEUvClJYG4j6zUi67phZbGv81RUN4QdO4mMK8Z36NwYxCWvtLzTCCzH/ARk//aW+Idv3AAAAAElF TkSuQmCC X-Face: compface: (warning) : excess data ignored X-Attribution: dvl X-Url: http://www.lrde.epita.fr/~didier X-Web: http://www.lrde.epita.fr/~didier X-Home-Page: http://www.lrde.epita.fr/~didier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70813 Archived-At: Stefan Monnier wrote: >> the following patch extends whitespace.el with the ability to specify >> styles and actions on a file or mode specific basis. > > Can't we already do that in the usual way (i.e. with file-local, > dir-local, or mode hooks settings)? To some extend yes, but the extension I propose is more general because, for example, the matching on file names is done with regexps. Without this, you could end up duplicating a common setting in several dir/file local sections. Another (more personal) argument, is that in general, I don't like the idea of having settings for a single functionality scattered all over the place. I prefer to see those settings in a centralized place, say a customization buffer. -- ELS 2013, June 3/4, Madrid, Spain: http://els2013.european-lisp-symposium.org Scientific site: http://www.lrde.epita.fr/~didier Music (Jazz) site: http://www.didierverna.com