🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98739

Manual wrong? `forward-sexp'

#98739
From: Eric Hanchrow
Date: Fri, 22 Mar 1991 17:34
32 lines
2115 bytes
Emacs 18.57
File: emacs,  Node: Lists
	  To move forward over a sexp, use `C-M-f' (`forward-sexp').  If the
	first significant character after point is an opening delimiter (`('
	in Lisp; `(', `[' or `{' in C), `C-M-f' moves past the matching
	closing delimiter.  If the character begins a symbol, string, or
	number, `C-M-f' moves over that.  If the character after point is a
	closing delimiter, `C-M-f' just moves past it.  (This last is not
	really moving across a sexp; it is an exception which is included in
	the definition of `C-M-f' because it is as useful a behavior as
	anyone can think of for that situation.)
It looks like forward-sexp does not move past the matching closing
delimeter in C mode.  To reproduce, start a virgin Emacs with emacs
-q.

Then do 
	C-x b ugh RET
to get a new buffer, and then
	M-x c-mode RET
Now enter
	void
	  main()
	{
	}
and put point between the curly braces; then type C-M-f.  You will get
an error `Containing expression ends prematurely'.
       ------------------------------------------------------------------------
       |Eric Hanchrow		sun.com!nosun!yamada-sun!eric		      |
       |Phase III Logic, Inc.	cse.ogi.edu!yamada-sun!eric		      |
       |1600 N.W. 167th Place		Beaverton, OR 97006-4800 USA	      |
       |Voice: (503)-645-0313		Fax: (503)-645-0207     as of 4-Oct-89|
       --------------Crackling-noises-OK--do-not-correct!----------------------
Technical Details
Message-ID: <9103221734.AA01050@>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,23797bc4796849e2,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-03-23 08:56:52 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: yamada-sun!eric@nosun.west.sun.com (Eric Hanchrow)
Newsgroups: gnu.emacs.bug
Subject: Manual wrong? `forward-sexp'
Message-ID: <9103221734.AA01050@>
Date: 22 Mar 91 17:34:18 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 32
Approved: bug-gnu-emacs@prep.ai.mit.edu