From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: Several questions about the use of emacs Date: Mon, 29 Nov 2004 12:46:47 +0100 Message-ID: <86pt1w3mjc.fsf@ketchup.de.uu.net> References: <16A54BF5D6E14E4D916CE26C9AD30575A4F6E6@pdsmsx402.ccr.corp.intel.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101728864 20688 80.91.229.6 (29 Nov 2004 11:47:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Nov 2004 11:47:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 29 12:47:39 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CYk0I-0002xX-00 for ; Mon, 29 Nov 2004 12:47:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYk9h-0001al-1y for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Nov 2004 06:57:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CYk9M-0001Zi-HW for help-gnu-emacs@gnu.org; Mon, 29 Nov 2004 06:57:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CYk9L-0001ZW-Sl for help-gnu-emacs@gnu.org; Mon, 29 Nov 2004 06:57:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYk9L-0001ZT-O4 for help-gnu-emacs@gnu.org; Mon, 29 Nov 2004 06:56:59 -0500 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CYjzm-00078G-EF for help-gnu-emacs@gnu.org; Mon, 29 Nov 2004 06:47:06 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CYjzk-0004dH-00 for ; Mon, 29 Nov 2004 12:47:04 +0100 Original-Received: from ketchup.de.uu.net ([139.4.38.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Nov 2004 12:47:04 +0100 Original-Received: from kai by ketchup.de.uu.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Nov 2004 12:47:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ketchup.de.uu.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:n87ItqjAOUF7rsoxncpIrM8pR7Q= 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: main.gmane.org gmane.emacs.help:22419 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22419 "Chen, Yukun" writes: > 1. How can I comments a block of content once? (mean that I > can comment sever lines by marking them with "//" at the start > position in c language. I think it is useful in c development) Mark the region and hit M-;. Hitting M-; again removes the comment lines again. I think you need to turn on transient-mark-mode for this to work. Perhaps C mode also supports the C-c C-c binding to comment a region of code. Use C-u C-c C-c to uncomment. > 2. Has emacs provided the function that complete the left > character of a word, just as the commands of vi "ctrl + n" > "ctrl + p" do? There are M-/ and C-M-/. I think that M-/ is somewhat similar to Ctrl-P, but it searches in both directions and it searches other buffers, too. C-M-/ provides completion, whereas M-/ cycles through the list of possibilities. Kai