[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C formatting
From: |
Kai Großjohann |
Subject: |
Re: C formatting |
Date: |
Sat, 28 Dec 2002 14:50:00 +0100 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) |
Oodini <svdbg@free.fr> writes:
> I put 0, and then I get the *wanted behaviour*.
> C-x ESC ESC
> redo (c-set-offset (quote substatement) 0 nil)
Well, if you say so.
> So I modify my .emacs:
>
> (add-hook 'c-mode-hook
> (function (lambda ()
> (c-set-style "bsd")
> (setq c-basic-offset 4)
> (c-set-offset 0)
The above c-set-offset statement is obviously different from the one
you get after C-x ESC ESC.
Please try the one from C-x ESC ESC.
--
Ambibibentists unite!
>From help-gnu-emacs-bounces@gnu.org Sat Dec 28 08:55:18 2002
Path:
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!p50876b5f.dip.t-dialin.NET!not-for-mail
From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=)
Newsgroups: gnu.emacs.help
Date: Sat, 28 Dec 2002 14:53:07 +0100
Organization: University of Dortmund, Germany
Lines: 22
Message-ID: <84smwi8d30.fsf@lucy.cs.uni-dortmund.de>
References: <3E0CED7C.7020002@free.fr>
<844r8y2yjv.fsf@lucy.cs.uni-dortmund.de> <3E0D9EA5.8000306@free.fr>
NNTP-Posting-Host: p50876b5f.dip.t-dialin.net (80.135.107.95)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: fu-berlin.de 1041083600 8316166 80.135.107.95 (16 [73968])
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50
(i686-pc-linux-gnu)
Cancel-Lock: sha1:+saFoIg6Pz12qAgReRVUtVyNXLQ=
Xref: shelby.stanford.edu gnu.emacs.help:108548
To: help-gnu-emacs@gnu.org
Subject: Re: C formatting
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 28 Dec 2002 13:55:18 -0000
Oodini <svdbg@free.fr> writes:
> and then what what you said:
> C-x C-o
C-c C-o, not C-x C-o...
> I get the the statement
> Syntactic symabol to change: substatement
I get substatement-open, not substatement. Did you really try it on
a line which has a brace in it?
> I hit Enter...
> substatement offset (default +):
> I put 0, and then I get the *wanted behaviour*.
> C-x ESC ESC
> redo (c-set-offset (quote substatement) 0 nil)
--
Ambibibentists unite!
>From help-gnu-emacs-bounces@gnu.org Sat Dec 28 09:00:33 2002
Path:
shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!torn!news.ryerson.ca!not-for-mail
From: Luis Fernandes <elf@ee.ryerson.ca>
Newsgroups: gnu.emacs.help
Date: 28 Dec 2002 08:49:55 -0500
Organization: Ryerson Polytechnic University
Lines: 21
Sender: elf@zen
Message-ID: <x0smwiw8vw.fsf@ee.ryerson.ca>
References: <041220020952400758%ajanta@no.spam>
<5ld6obj8il.fsf@rum.cs.yale.edu> <091220021652087216%ajanta@no.spam>
<vf3cp5ix2u.fsf@rpc71.cs.man.ac.uk> <111220021101520860%ajanta@no.spam>
<111220021253524057%ajanta@no.spam> <5l65u0i8zj.fsf@rum.cs.yale.edu>
<111220022053507599%ajanta@no.spam> <87u1hjdwta.fsf@hurd.crasseux.com>
<121220021324043990%ajanta@no.spam>
<m3el8iar9g.fsf@mika.informatik.uni-freiburg.de>
<171220021132381961%ajanta@no.spam>
<mailman.343.1040149880.19936.help-gnu-emacs@gnu.org>
<ulm2ocm2f.fsf@synopsys.com>
<m3of7gn1qb.fsf@mika.informatik.uni-freiburg.de>
<u4r98y0ts.fsf@synopsys.com> <x0d6ns6ikf.fsf@ee.ryerson.ca>
<ubs38hcbz.fsf@synopsys.com> <x0smwkqhkw.fsf@ee.ryerson.ca>
<u4r8zbbz5.fsf@synopsys.com> <x0isxfufan.fsf@ee.ryerson.ca>
<841y422yha.fsf@lucy.cs.uni-dortmund.de>
NNTP-Posting-Host: sulfur.ee.ryerson.ca
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.106
Xref: shelby.stanford.edu gnu.emacs.help:108549
To: help-gnu-emacs@gnu.org
Subject: Re: Software/HD ecology
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 28 Dec 2002 14:00:33 -0000
kai> You will need similar links for the man pages and for the
kai> info files. (And for info, there is the `dir' file to take
kai> care of.)
My emacs installation is a shell script that does post-install
adjustments like man-pages, site-lisp, etc. The only change I make to
the script for each new installation, is the emacs version number.
The man-pages get installed in /usr/local/man/manl.
Site-customizations get installed in /usr/common/emacs/site-lisp (the
/usr/common filesystem is mounted on all hosts and is architecture
neutral) and is sym-linked into the /usr/local/emacs-21.1 tree by the
post-install script.
kai> IMHO, a software isn't fully installed unless its
kai> documentation is also easily accessible.
Nobody (mostly) reads documentation here; it's faster and easier to
ask me.