From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Emacs Book Vs Emacs Manuals Date: Sun, 28 Jun 2015 16:55:01 +0200 Message-ID: <87mvzjc27u.fsf@mbork.pl> References: <554C9356.5000204@gmail.com> <20150508125314086261755@bob.proulx.com> <87bnhuc177.fsf@mbork.pl> <55561B9E.4070101@arlsoft.com> <87y4kpfvct.fsf@debian.uxu> <87mvzmv7ef.fsf@nl106-137-147.student.uu.se> <871tgycjae.fsf@mbork.pl> <9e0032db-1717-4cd0-88bb-bd97219b65df@googlegroups.com> <87oak0lqrc.fsf@nl106-137-147.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435503360 26739 80.91.229.3 (28 Jun 2015 14:56:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jun 2015 14:56:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 28 16:55:51 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 1Z9Dzr-0005HH-JO for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 16:55:51 +0200 Original-Received: from localhost ([::1]:39168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Dzq-0002Ag-WE for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 10:55:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Dzd-0002A3-Cl for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:55:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9DzX-0007ct-QT for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:55:37 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:58641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9DzX-0007cg-Jw for help-gnu-emacs@gnu.org; Sun, 28 Jun 2015 10:55:31 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id D9C0D4FA047 for ; Sun, 28 Jun 2015 16:55:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WRhkX-1zco-J for ; Sun, 28 Jun 2015 16:55:07 +0200 (CEST) Original-Received: from localhost (ipz217.internetdsl.tpnet.pl [79.190.154.217]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 409E34F607F for ; Sun, 28 Jun 2015 16:55:07 +0200 (CEST) In-reply-to: <87oak0lqrc.fsf@nl106-137-147.student.uu.se> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 195.110.48.8 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:105249 Archived-At: On 2015-06-28, at 00:40, Emanuel Berg wrote: > Rusi writes: > > I actually think both keyboard macros and regexps as > a method of editing code are bad (both almost as bad, > but regexps are still a bit better because they can be > read, and the skills you get are usable elsewhere). Emanuel, are you aware of C-x C-k RET? > But both are bad in the sense they solve problems by > rearranging code according to patterns which almost > turn the code into something graphical! Or to be > precise, the methods are not bad but good but my code > never looks like that. If there are patterns to the > code those should be expressed by other means - not as > ASCII art! If you edit text, which is somehow =E2=80=9Cgraphical=E2=80=9D, why shoul= dn=E2=80=99t the code reflect the problem? Not that it has to, but IMHO there=E2=80=99s nothin= g wrong if it does. Note that my Emacs usage is somewhat atypical: while I do edit code often, I edit texts in natural languages (usually marked up in LaTeX or Org-mode) even more often. > So I ask again, next time you use this with real > technology like Lisp, C, C++, zsh, SQL, even groff, > LaTeX, just about anything that I know that would be > interesting to see. Admittedly, I don=E2=80=99t think I=E2=80=99ve ever used macros when edit= ing Elisp, for instance. OTOH, I have Oleh Krehel=E2=80=99s Lispy for that (have you se= en that? Some commands, e.g., the xc/xi pair, look almost like magic.). > I have only seen one example so far and there > I disagree: I think the Elisp one-liner is the best > solution by far. I disagree (not surprising), and when I next use a kbd macro, I'll try to remember to show it here. (One other case I like keyboard macros is rearranging things, e.g., paragraphs, in a buffer; I open two windows with the same buffer, but with the point in different places, and record a macro which kills something in one window and yanks in the other one. Very handy.) Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University