From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tu Do Newsgroups: gmane.emacs.help Subject: [ANN] Lisp source code formatter in any major mode (including fundamental-mode) Date: Wed, 8 Apr 2015 08:11:56 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1428506132 3310 80.91.229.3 (8 Apr 2015 15:15:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2015 15:15:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 08 17:15:27 2015 Return-path: Envelope-to: geh-help-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 1YfrhH-0001Iv-Hi for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Apr 2015 17:15:19 +0200 Original-Received: from localhost ([::1]:53345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfrhG-0002WK-Sh for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Apr 2015 11:15:18 -0400 X-Received: by 10.66.153.173 with SMTP id vh13mr5278996pab.37.1428505917142; Wed, 08 Apr 2015 08:11:57 -0700 (PDT) X-Received: by 10.50.56.102 with SMTP id z6mr213878igp.3.1428505917105; Wed, 08 Apr 2015 08:11:57 -0700 (PDT) Original-Path: usenet.stanford.edu!news.glorb.com!l13no2558845iga.0!news-out.google.com!n7ni2138igk.0!nntp.google.com!l13no2558838iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=14.161.13.65; posting-account=p5Z7tQoAAADPYWtcXKha8p3X0RJobi7g Original-NNTP-Posting-Host: 14.161.13.65 User-Agent: G2/1.0 Injection-Date: Wed, 08 Apr 2015 15:11:57 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:211298 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103580 Archived-At: A few days ago I announced a new released of Srefactor with only a rudiment= ary support for Lisp code formatting. Now it is quite complete and can form= at a 10k Lisp source file fine in around 10 seconds, with significant time = spending on indentation rather than code rearrangement. Homepage: https://github.com/tuhdo/semantic-refactor. Some demos: - Formatting whole buffer in Clojure: http://i.imgur.com/puTmYJL.gif - Formatting whole buffer demo in Emacs Lisp: http://i.imgur.com/BNWSL7W.gi= f - Transform between one line <--> Multiline: http://i.imgur.com/L8D5tXv.gif Available Commands: - srefactor-lisp-format-buffer: format whole buffer - srefactor-lisp-format-defun: format current defun cursor is in - srefactor-lisp-one-line: turn the current sexp of the same level into one= line; with prefix argument, recursively turn all inner sexps into one line= . - srefactor-lisp-format-sexp: format the current sexp cursor is in. The formatting commands are usable on Common Lisp and Scheme as well. With = such formatting tool like this, it would be useful when you try to read you= r Emacas Lisp backtrace (which is just one-line unformatted code), other th= an writing code. If there is any problem, please submit an issue report and I will be happy = to fix it.