all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Several questions about the use of emacs
@ 2004-11-29  7:34 Chen, Yukun
  2004-11-29 11:46 ` Kai Grossjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Chen, Yukun @ 2004-11-29  7:34 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

Hi All
	Not sure whether anyone has the same experience. I have some questions about the usage of emacs as follows
	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)
	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?

	Thanx.
Aaron

Intel China Software Lab

Tel:  8621-52574545 Ext.1587

E_mail:yukun.chen@intel.com



[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Several questions about the use of emacs
  2004-11-29  7:34 Chen, Yukun
@ 2004-11-29 11:46 ` Kai Grossjohann
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Grossjohann @ 2004-11-29 11:46 UTC (permalink / raw)


"Chen, Yukun" <yukun.chen@intel.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Several questions about the use of emacs
@ 2004-11-30  4:33 Chen, Yukun
  0 siblings, 0 replies; 3+ messages in thread
From: Chen, Yukun @ 2004-11-30  4:33 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]

Thanx Kai, it works now

Aaron 

-----Original Message-----
From: help-gnu-emacs-bounces+yukun.chen=intel.com@gnu.org [mailto:help-gnu-emacs-bounces+yukun.chen=intel.com@gnu.org] On Behalf Of Kai Grossjohann
Sent: 2004年11月29日 19:47
To: help-gnu-emacs@gnu.org
Subject: Re: Several questions about the use of emacs

"Chen, Yukun" <yukun.chen@intel.com> 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



_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-11-30  4:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-30  4:33 Several questions about the use of emacs Chen, Yukun
  -- strict thread matches above, loose matches on Subject: below --
2004-11-29  7:34 Chen, Yukun
2004-11-29 11:46 ` Kai Grossjohann

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.