1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 18:21:19 -08:00
emacs/src
Stefan Monnier c5683ceb2c Introduce a new comment style "c" flag.
* src/syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
(SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
(SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
(syntax_prefix_flag_p): New function.
(Fstring_to_syntax): Understand new "c" flag.
(Finternal_describe_syntax_value): Recognize new flag; use the
SYNTAX_FLAGS_* macros.
(scan_sexps_forward, Fparse_partial_sexp): Change representation of
comment style to accomodate the new styles.
(back_comment, forw_comment, Fforward_comment, scan_lists)
(scan_sexps_forward): Update code to obey the new comment style flag.
* src/syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
* src/casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
* lisp/progmodes/octave-mod.el (octave-mode-syntax-table): Use the new "c"
comment style.
* lisp/progmodes/scheme.el (scheme-mode-syntax-table):
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-syntax-table): Remove spurious
"b" flag in "14b" syntax.

Fixes: debbugs:6834
2010-08-12 16:44:16 +02:00
..
bitmaps
m Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition. 2010-08-09 21:25:41 +02:00
s * src/s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused. 2010-08-08 13:26:12 -07:00
.dbxinit
.gdbinit Fix redisplay bugs due to uninitialized glyphs in frame glyph pool. 2010-08-06 17:54:06 +03:00
.gitignore
alloc.c Remove duplicate declarations. 2010-08-07 03:10:12 +02:00
atimer.c Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp 2010-07-08 00:18:28 +02:00
atimer.h Remove __P and P_ from .c and .m files and definition of P_ 2010-07-02 14:19:53 +02:00
autodeps.mk Remove src/prefix-args.c. 2010-07-07 20:31:04 -07:00
bidi.c Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings. 2010-08-06 12:12:41 +02:00
bidimirror.h Use BidiMirroring.txt for mirroring characters in bidi context. 2010-06-12 18:52:43 +03:00
biditype.h Use BidiMirroring.txt for mirroring characters in bidi context. 2010-06-12 18:52:43 +03:00
blockinput.h * blockinput.h: Remove obsolete comment. 2010-07-11 21:51:46 +02:00
buffer.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
buffer.h Use offsetof instead of own definition 2010-07-11 20:34:43 +02:00
bytecode.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
callint.c Use const for some arrays and functions. 2010-08-06 11:41:15 -07:00
callproc.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
casefiddle.c Introduce a new comment style "c" flag. 2010-08-12 16:44:16 +02:00
casetab.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
category.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
category.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
ccl.c Remove extern declarations from .c files, and them to .h files. 2010-07-28 22:48:06 -07:00
ccl.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
ChangeLog Introduce a new comment style "c" flag. 2010-08-12 16:44:16 +02:00
ChangeLog.1 Fix typos and whitespace in ChangeLogs. 2010-05-11 04:04:13 +02:00
ChangeLog.2 Fix typos in ChangeLogs. 2010-07-29 04:42:53 +02:00
ChangeLog.3 Fix typos in ChangeLogs. 2010-07-24 13:53:19 +02:00
ChangeLog.4 Fix typos and whitespace in ChangeLogs. 2010-05-11 04:04:13 +02:00
ChangeLog.5 Fix typos in ChangeLogs. 2010-07-29 04:42:53 +02:00
ChangeLog.6 Fix typos in ChangeLogs. 2010-07-24 13:53:19 +02:00
ChangeLog.7 Fix typos in Changelog. 2010-03-24 01:18:03 +01:00
ChangeLog.8 Move some old ChangeLog entries to the right files. 2010-05-27 20:52:19 -07:00
ChangeLog.9 Fix typos in ChangeLogs. 2010-07-29 04:42:53 +02:00
ChangeLog.10 Fix typos in ChangeLogs. 2010-07-24 13:53:19 +02:00
character.c Use const, move declarations to header files. 2010-07-26 20:52:35 -07:00
character.h Use const, move declarations to header files. 2010-07-26 20:52:35 -07:00
charset.c Merge changes from emacs-23 branch. 2010-08-08 17:15:44 -04:00
charset.h Remove duplicate declarations. 2010-08-07 03:10:12 +02:00
chartab.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
cm.c Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp 2010-07-08 00:18:28 +02:00
cm.h Fix prototypes. 2010-07-03 09:44:17 +02:00
cmds.c Make some doc strings bidi-friendly. 2010-08-08 19:43:26 +03:00
coding.c Merge changes from emacs-23 branch. 2010-08-08 17:15:44 -04:00
coding.h Remove extern declarations from .c files, and them to .h files. 2010-07-28 22:48:06 -07:00
commands.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
composite.c Remove extern declarations from .c files, and them to .h files. 2010-07-28 22:48:06 -07:00
composite.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
config.in Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition. 2010-08-09 21:25:41 +02:00
COPYING
data.c Remove extern declarations in .c files, .h files have them. 2010-08-05 16:34:12 -07:00
dbusbind.c * dbusbind.c (xd_initialize): Don't compare boolean with a constant. 2010-07-12 21:03:53 +02:00
deps.mk Rename src/unexec.c => src/unexcoff.c. 2010-08-05 20:11:32 +03:00
dired.c Merge changes from emacs-23 branch 2010-08-08 17:12:29 -04:00
dispextern.h Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
dispnew.c Fix redisplay bugs due to uninitialized glyphs in frame glyph pool. 2010-08-06 17:54:06 +03:00
disptab.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
doc.c Remove extern declarations from .c files, and them to .h files. 2010-07-28 22:48:06 -07:00
doprnt.c Constify functions taking char * 2010-07-11 11:27:13 +02:00
dosfns.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
dosfns.h Fix the MS-DOS build due to removal of P_. 2010-07-02 16:05:59 +03:00
editfns.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
emacs-icon.h Use const for some arrays and functions. 2010-08-06 11:41:15 -07:00
emacs.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
epaths.in Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
eval.c Remove extern declarations in .c files, .h files have them. 2010-08-06 12:07:16 -07:00
fileio.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
filelock.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
filemode.c Clean up include guards. 2010-07-07 21:55:07 -07:00
firstfile.c Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
floatfns.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
fns.c Merge changes from emacs-23 branch 2010-08-08 17:12:29 -04:00
font.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
font.h Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
fontset.c Remove extern declarations in .c files, .h files have them. 2010-08-05 16:34:12 -07:00
fontset.h Add declarations to header files. 2010-08-05 16:15:24 -07:00
frame.c Use const char* instead of char*. 2010-08-08 14:03:45 -07:00
frame.h Add declarations to header files. 2010-08-05 16:15:24 -07:00
fringe.c Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition. 2010-08-09 21:25:41 +02:00
ftfont.c Use const char* instead of char*. 2010-08-08 14:03:45 -07:00
ftfont.h Add declarations to header files. 2010-08-05 16:15:24 -07:00
ftxfont.c Convert (most) functions in src to standard C. 2010-07-04 00:50:25 -07:00
getloadavg.c Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp 2010-07-08 00:18:28 +02:00
getpagesize.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
gmalloc.c Remove __P and P_ from .c and .m files and definition of P_ 2010-07-02 14:19:53 +02:00
gtkutil.c Take colors for region face (selected text) from the Gtk+ theme. 2010-08-11 20:28:10 +02:00
gtkutil.h Take colors for region face (selected text) from the Gtk+ theme. 2010-08-11 20:28:10 +02:00
image.c Use const char* instead of char*. 2010-08-08 14:03:45 -07:00
indent.c Remove extern declarations in .c files, .h files have them. 2010-08-05 16:34:12 -07:00
indent.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
insdel.c Avoid restrictions when copying window selection. 2010-08-07 16:26:55 -04:00
intervals.c Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp 2010-07-08 00:18:28 +02:00
intervals.h * src/intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT. 2010-07-06 20:09:30 -07:00
keyboard.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
keyboard.h Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
keymap.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
keymap.h Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
lastfile.c Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
lisp.h Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition. 2010-08-09 21:25:41 +02:00
lread.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
macros.c Remove extern declarations from .c files, and them to .h files. 2010-07-28 22:48:06 -07:00
macros.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
Makefile.in Properly handle C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS 2010-07-12 16:16:38 +02:00
makefile.w32-in src/makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies. 2010-08-06 14:25:10 +02:00
marker.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
md5.c Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition. 2010-08-09 21:25:41 +02:00
md5.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
mem-limits.h * src/mem-limits.h: Remove duplicated includes. 2010-07-28 22:58:58 -07:00
menu.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
menu.h Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
minibuf.c Merge changes from emacs-23 branch 2010-08-08 17:12:29 -04:00
mktime.c Remove __P. 2010-07-02 14:55:51 +02:00
msdos.c Remove extern declarations in .c files, .h files have them. 2010-08-06 12:07:16 -07:00
msdos.h Convert function definitions in MS-DOS sources to ANSI C. 2010-07-07 18:28:47 +03:00
ndir.h Make building under stricter warning flags somewhat cleaner. 2010-07-25 02:20:51 +02:00
ns.mk Do not preprocess src/Makefile.in. 2010-05-26 22:43:27 -07:00
nsfns.m Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings. 2010-08-06 12:12:41 +02:00
nsfont.m Use const char* for -Wwrite_strings. 2010-08-11 10:58:56 +02:00
nsgui.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
nsimage.m Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings. 2010-08-06 12:12:41 +02:00
nsmenu.m Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
nsselect.m Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
nsterm.h Use const char* for -Wwrite_strings. 2010-08-11 10:58:56 +02:00
nsterm.m Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings. 2010-08-06 12:12:41 +02:00
point.h
pre-crt0.c
print.c Remove extern declarations in .c files, .h files have them. 2010-08-05 16:34:12 -07:00
process.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
process.h Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
puresize.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
ralloc.c Make building under stricter warning flags somewhat cleaner. 2010-07-25 02:20:51 +02:00
README Do not preprocess src/Makefile.in. 2010-05-26 22:43:27 -07:00
regex.c Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp 2010-07-08 00:18:28 +02:00
regex.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
region-cache.c Convert (most) functions in src to standard C. 2010-07-04 00:50:25 -07:00
region-cache.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
scroll.c Convert old-style definitions 2010-07-12 19:47:17 +02:00
search.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
sheap.c Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
sound.c Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition. 2010-08-09 21:25:41 +02:00
stamp-h.in
strftime.c * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu). 2010-07-04 22:42:36 +02:00
syntax.c Introduce a new comment style "c" flag. 2010-08-12 16:44:16 +02:00
syntax.h Introduce a new comment style "c" flag. 2010-08-12 16:44:16 +02:00
sysdep.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
sysselect.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
syssignal.h * src/syssignal.h (signal_handler_t): Restore accidentally removed definition. 2010-08-05 17:07:36 -07:00
systime.h Make lisp_time_argument work on all systems. 2010-07-29 08:50:04 -07:00
systty.h Remove INCLUDED_FCNTL. 2010-06-07 20:02:41 -07:00
syswait.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
term.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
termcap.c Clean up include guards. 2010-07-07 21:55:07 -07:00
termchar.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
termhooks.h Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp 2010-07-08 00:18:28 +02:00
terminal.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
terminfo.c * terminfo.c (tparam): Fix prototype of tparm (followup to 2010-07-25T00:20:51Z!lekktu@gmail.com). 2010-07-25 21:30:14 +02:00
termopts.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
textprop.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
tparam.c Clean up include guards. 2010-07-07 21:55:07 -07:00
undo.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
unexaix.c Simplify start_of_data, start_of_text and related code. 2010-07-07 20:03:52 -07:00
unexcoff.c Rename src/unexec.c => src/unexcoff.c. 2010-08-05 20:11:32 +03:00
unexcw.c Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
unexelf.c Use const char* instead of char*. 2010-08-09 02:35:21 -07:00
unexhp9k800.c
unexmacosx.c * unexmacosx.c (unexec_error): Use const char *. 2010-08-11 10:36:27 +02:00
unexsol.c
unexw32.c Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
vm-limit.c Fix some stuff that didn't compile. 2010-07-29 08:59:29 +02:00
w16select.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
w32.c Move declarations to header files. 2010-08-06 12:52:47 -07:00
w32.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
w32console.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
w32fns.c Merge changes from emacs-23 branch 2010-08-08 17:12:29 -04:00
w32font.c Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build. 2010-08-06 02:16:24 +02:00
w32font.h Remove __P. 2010-07-02 14:55:51 +02:00
w32gui.h Make building under stricter warning flags somewhat cleaner. 2010-07-25 02:20:51 +02:00
w32heap.c src/w32*.c: Convert function definitions to standard C. 2010-07-06 16:22:29 +02:00
w32heap.h Make building under stricter warning flags somewhat cleaner. 2010-07-25 02:20:51 +02:00
w32inevt.c Fix whitespace to follow coding guidelines. 2010-07-07 11:45:28 +02:00
w32inevt.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
w32menu.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
w32proc.c Convert DEFUNs to standard C. 2010-07-08 14:25:08 -07:00
w32reg.c src/w32*.c: Convert function definitions to standard C. 2010-07-06 16:22:29 +02:00
w32select.c Remove extern declarations from .c files, and them to .h files. 2010-07-28 22:48:06 -07:00
w32term.c Make building under stricter warning flags somewhat cleaner. 2010-07-25 02:20:51 +02:00
w32term.h Make building under stricter warning flags somewhat cleaner. 2010-07-25 02:20:51 +02:00
w32uniscribe.c Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp 2010-07-08 00:18:28 +02:00
w32xfns.c Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp 2010-07-08 00:18:28 +02:00
widget.c Convert function definitions to standard C. 2010-07-12 12:29:49 -07:00
widget.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
widgetprv.h Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
window.c Can't include menu.h in window.c for X targets. 2010-08-06 13:04:29 +02:00
window.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
xdisp.c Use const char* instead of char*. 2010-08-08 14:03:45 -07:00
xfaces.c Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings. 2010-08-06 12:12:41 +02:00
xfns.c * xfns.c (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip. 2010-08-11 20:47:34 +02:00
xfont.c Use const char* instead of char*. 2010-08-08 14:03:45 -07:00
xftfont.c Remove extern declarations in .c files, .h files have them. 2010-08-05 16:34:12 -07:00
xgselect.c Fix more prototypes. 2010-07-04 15:41:55 +02:00
xgselect.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
xmenu.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
xrdb.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
xselect.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
xsettings.c Add tool bar style text-image-horiz (text to the left of the image). 2010-07-28 19:34:51 +02:00
xsettings.h Remove P_ and __P macros. 2010-07-02 11:26:33 +02:00
xsmfns.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
xterm.c Fix -Wwrite_strings in general and for Gtk+ specific code. 2010-08-11 14:34:46 +02:00
xterm.h Use const for some arrays and functions. 2010-08-06 11:41:15 -07:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
  2010  Free Software Foundation, Inc.
See the end of the file for license conditions.


This directory contains the source files for the C component of GNU Emacs.
Nothing in this directory is needed for using Emacs once it is built
and installed, if the dumped Emacs (on Unix systems) is copied elsewhere.

See the files ../README and then ../INSTALL for installation instructions.

Under GNU and Unix systems, the file `Makefile.in' is used as a
template by the script `../configure' to produce `Makefile'.  This
is the file which actually controls the compilation of Emacs.
All of this should work transparently to the user; you should only
need to run `../configure', and then type `make'.


This file is part of GNU Emacs.

GNU Emacs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.