From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MMHtR-0003bc-1a for garchives@archives.gentoo.org; Thu, 02 Jul 2009 08:43:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 894A2E059C; Thu, 2 Jul 2009 08:43:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4DB03E059C for ; Thu, 2 Jul 2009 08:43:44 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id D28FD67621 for ; Thu, 2 Jul 2009 08:43:43 +0000 (UTC) Received: from fauli by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1MMHtP-0007fa-9C for gentoo-commits@lists.gentoo.org; Thu, 02 Jul 2009 08:43:43 +0000 To: gentoo-commits@lists.gentoo.org From: "Christian Faulhammer (fauli)" Subject: [gentoo-commits] emacs r1284 - emacsguide X-VCS-Repository: emacs X-VCS-Revision: 1284 X-VCS-Files: emacsguide/emacsguide.xml X-VCS-Directories: emacsguide X-VCS-Committer: fauli X-VCS-Committer-Name: Christian Faulhammer Content-Type: text/plain; charset=UTF-8 Message-Id: Sender: Christian Faulhammer Date: Thu, 02 Jul 2009 08:43:43 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 630d03e8-47fa-4cb2-aa12-8d24663299f0 X-Archives-Hash: 26f8e49004a9ae8ada3802125e26a983 Author: fauli Date: 2009-07-02 08:43:43 +0000 (Thu, 02 Jul 2009) New Revision: 1284 Modified: emacsguide/emacsguide.xml Log: Add another chapter with sections collected Modified: emacsguide/emacsguide.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- emacsguide/emacsguide.xml 2009-07-02 08:28:30 UTC (rev 1283) +++ emacsguide/emacsguide.xml 2009-07-02 08:43:43 UTC (rev 1284) @@ -251,6 +251,8 @@ =20 + Useful functions in GNU Emacs +
Dired

Lets start by looking at some files.

@@ -267,7 +269,20 @@
       Control-x, control-b
     
+ +

Now you may wish to do replacements in many files.

+
+      

M-x dired<TAB><TAB>

+

M-x command-apropos This can show any dired command.

+
=20 +

Now you see what is available. Here is one strategy.

+
+      

M-x find-grep-dired

+

%-m c$ This will mark C sources or filenames ending in= c.

+

M-x dired-do-query-replace-regexp

+
+ =20

That will split your screen and show the buffers that are open. = When you want to split the screen, use control-x followed by a number.

       C-x 0 This makes the current buffer go away.
@@ -276,6 +291,43 @@
       C-x 3 This is useful if you have a wide screen.
     
+
+
+ Speedbar for Debugging and Navigation + =20 +

+ If you're coding C, and you use gcc -g for debugging + symbols, Emacs can split your screen and follow the current line + of source code. If you use Emacs with X try speedbar. +

+
+	  M-x speedbar
+	
+=09 +

+ Now watch variables change just like any other development + environment. You could also browse directories in speedbar or do + other things by right-clicking. +

+ +
+
+ Ediff + +

+ Since Gentoo respects your /etc/ configuration files, you may + like ediff for file foo and ._cfg0000_foo. +

+
+	  

+ You could run M-x find-dired with an argument like this: -name + \._cfg* +

+

Control-x, control-f, control-a, control-k, /etc, enter.

+

M-x ediff

+
+ +
=20 @@ -309,26 +361,6 @@ =20 - Speedbar for Debugging and Navigation - =20 -

- If you're coding C, and you use gcc -g for debugging - symbols, Emacs can split your screen and follow the current line - of source code. If you use Emacs with X try speedbar. -

-
-      M-x speedbar
-    
- =20 -

- Now watch variables change just like any other development - environment. You could also browse directories in speedbar or do - other things by right-clicking. -

- -
- =20 - Complete Text

Now is where some completion becomes useful. There is M-/ to com= plete a string and also some elisp that does much more.

@@ -400,22 +432,6 @@
=20 - More Dired -

Now you may wish to do replacements in many files.

-
-      

M-x dired<TAB><TAB>

-

M-x command-apropos This can show any dired command.

-
- =20 -

Now you see what is available. Here is one strategy.

-
-      

M-x find-grep-dired

-

%-m c$ This will mark C sources or filenames ending in= c.

-

M-x dired-do-query-replace-regexp

-
-
- =20 - Remove Comments

One common thing for Gentoo users is to strip comments from @@ -429,22 +445,8 @@ =20 - Ediff -

- Since Gentoo respects your /etc/ configuration files, you may - like ediff for file foo and ._cfg0000_foo. -

-
-      

- You could run M-x find-dired with an argument like this: -name - \._cfg* -

-

Control-x, control-f, control-a, control-k, /etc, enter.

-

M-x ediff

-
=20 - =20 Macros