From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Visitor here is a gedit user; how to interest him in Emacs? Date: Thu, 05 Aug 2010 19:46:00 +0200 Organization: Organization?!? Message-ID: <878w4l3qcn.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291857036 563 80.91.229.12 (9 Dec 2010 01:10:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 01:10:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 02:10:32 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQV1k-0005aC-BK for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 02:10:32 +0100 Original-Received: from localhost ([127.0.0.1]:43155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQUc2-0005Vd-TG for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 19:43:59 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!kanaga.switch.ch!switch.ch!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:11VIxlfVa4CaQCgT38DHIeAfIUw= Original-Lines: 42 Original-NNTP-Posting-Date: 05 Aug 2010 19:46:00 CEST Original-NNTP-Posting-Host: 31639a52.newsspool1.arcor-online.net Original-X-Trace: DXC=8FD7hf[i]k=lIh70@4Fo<]lROoR1<`=YMgDjhg2gN7FBo; CXg:1_LiI6ENVa=3>5MOK`al0oR:fUU`9726m>71E@1=@8c7c= Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: usenet.stanford.edu gnu.emacs.help:180428 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76356 Archived-At: dkcombs@panix.com (David Combs) writes: > In article , > Marc Mientki wrote: >>Am 05.08.2010 08:12, schrieb David Combs: >> >>> every time I try to show him some Emacs concep, he says >>> that he can do that in gedit also. >> >>Then let it do the following. C code is given with matrix declaration as: >> int matrix[3][3]; >> >>but someone has used the 1-based indexing instead of C 0-based: >> >> matrix[1][1] = 2; >> matrix[1][2] = 6; >> matrix[1][3] = 1; >> matrix[2][1] = 9; >> matrix[2][2] = 5; >> matrix[2][2] = 12; >> matrix[3][1] = 11; >> matrix[3][2] = 0; > ... > ... > > OK -- now, to show him the POWER of emacs, PLEASE, PLEASE > show the solution to the problem, ie via keyboard macros, > functions, commands, etc. Hm? That's not particularly hard. C-M-% \ And I bet we'll ALL learn some nice technique from > your implementation. I doubt it. That's more basic than the more complex examples in the Emacs manual for regexp replacement. -- David Kastrup