From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#27881: New major mode: Less mode Date: Tue, 01 Aug 2017 20:16:59 -0600 Message-ID: <87k22m90is.fsf@tromey.com> References: <1501437183.13205.0@smtp.gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1501640306 16962 195.159.176.226 (2 Aug 2017 02:18:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2017 02:18:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: steve@sanityinc.com, tom@tromey.com, dgutov@yandex.ru, 27881@debbugs.gnu.org, monnier@iro.umontreal.ca To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 02 04:18:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dcjEh-0003Pm-67 for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Aug 2017 04:18:11 +0200 Original-Received: from localhost ([::1]:45163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcjEh-0001mr-Vb for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Aug 2017 22:18:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcjEc-0001ml-OF for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 22:18:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcjEY-0003t0-Kv for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 22:18:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34796) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcjEY-0003sm-Hs for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 22:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dcjEY-0003IR-7O for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 22:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Aug 2017 02:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27881 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-Cc: Steve Purcell , bug-gnu-emacs@gnu.org, Tom Tromey , Stefan Monnier , Dmitry Gutov Original-Received: via spool by submit@debbugs.gnu.org id=B.150164026712650 (code B ref -1); Wed, 02 Aug 2017 02:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Aug 2017 02:17:47 +0000 Original-Received: from localhost ([127.0.0.1]:37473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcjEI-0003Hy-JY for submit@debbugs.gnu.org; Tue, 01 Aug 2017 22:17:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcjEF-0003Hk-Q8 for submit@debbugs.gnu.org; Tue, 01 Aug 2017 22:17:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcjE9-0003Qh-HF for submit@debbugs.gnu.org; Tue, 01 Aug 2017 22:17:38 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60010) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcjE9-0003Q6-E2 for submit@debbugs.gnu.org; Tue, 01 Aug 2017 22:17:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcjE8-0001l1-8g for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 22:17:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcjDz-0003Ij-K6 for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 22:17:33 -0400 Original-Received: from gproxy9-pub.mail.unifiedlayer.com ([69.89.20.122]:40695) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcjDz-00030s-9F for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 22:17:27 -0400 Original-Received: from cmgw4 (unknown [10.0.90.85]) by gproxy9.mail.unifiedlayer.com (Postfix) with ESMTP id AD4D01E0C34 for ; Tue, 1 Aug 2017 20:17:07 -0600 (MDT) Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id s2H31v00H2f2jeq012H6An; Tue, 01 Aug 2017 20:17:07 -0600 X-Authority-Analysis: v=2.2 cv=aJeAkf1m c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=IkcTkHD0fZMA:10 a=KeKAF7QvOSUA:10 a=pGLkceISAAAA:8 a=gQB6JClK7eoacdfokHIA:9 a=QEXdDO2ut3YA:10 a=6kGIvZw6iX1k4Y-7sg4_:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=L0XVDQTX5q1TIXhZogNvaZL/8dxojgG/9FhcAYi9PFI=; b=cwafiA9rvLSRR4UY5KAK1H4ufS QqdMRnxBK37E5jaE5O9FNAHaHjzkrInpX2sXsdwSziyr88iR6uynuysKe6vaOYfL1iaQXZ6/gmt6d xUnbJo4KWlI1ggiaSyhuY3zcw; Original-Received: from 174-29-39-24.hlrn.qwest.net ([174.29.39.24]:51298 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1dcjDa-000yCT-Vi; Tue, 01 Aug 2017 20:17:03 -0600 X-Attribution: Tom In-Reply-To: <1501437183.13205.0@smtp.gmail.com> ("Simen \=\?utf-8\?Q\?Heggest\?\= \=\?utf-8\?Q\?\=C3\=B8yl\=22's\?\= message of "Sun, 30 Jul 2017 19:53:03 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 174.29.39.24 X-Exim-ID: 1dcjDa-000yCT-Vi X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-29-39-24.hlrn.qwest.net (bapiya) [174.29.39.24]:51298 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:135235 Archived-At: >>>>> "Simen" =3D=3D Simen Heggest=C3=B8yl writes: Simen> +(defcustom less-css-lessc-command "lessc" Simen> + "Command used to compile LESS files. Simen> +Should be lessc or the complete path to your lessc executable, Simen> + e.g.: \"~/.gem/ruby/1.8/bin/lessc\"" Simen> + :type 'file Simen> + :group 'less-css Simen> + :safe 'stringp) Simen> + Simen> +;;;###autoload Simen> +(defcustom less-css-compile-at-save nil Simen> + "If non-nil, the LESS buffers will be compiled to CSS after each = save." Simen> + :type 'boolean Simen> + :group 'less-css Simen> + :safe 'booleanp) It seems dangerous to me to mark these both as safe. A file could specify a dangerous command and then say it's ok to run it on save. Probably the command should not be :safe. Maybe the other variables defined after this should also not be safe. Tom