From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: bug when fontifying cc-mode Date: Sat, 27 Aug 2005 09:33:14 +1200 Message-ID: <17167.35482.584591.191367@farnswood.snap.net.nz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1125092354 23453 80.91.229.2 (26 Aug 2005 21:39:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2005 21:39:14 +0000 (UTC) Cc: Alan Mackenzie , Emacs Developement List , Karl Chen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 26 23:39:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E8lsw-0002WV-0h for ged-emacs-devel@m.gmane.org; Fri, 26 Aug 2005 23:37:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E8lwN-0003FO-OB for ged-emacs-devel@m.gmane.org; Fri, 26 Aug 2005 17:40:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E8lvT-00034X-5z for emacs-devel@gnu.org; Fri, 26 Aug 2005 17:39:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E8lvR-00033X-4e for emacs-devel@gnu.org; Fri, 26 Aug 2005 17:39:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E8lvQ-00032J-Bg for emacs-devel@gnu.org; Fri, 26 Aug 2005 17:39:48 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E8lp1-0002Cj-CC for emacs-devel@gnu.org; Fri, 26 Aug 2005 17:33:12 -0400 Original-Received: from farnswood.snap.net.nz (p230-tnt1.snap.net.nz [202.124.110.230]) by viper.snap.net.nz (Postfix) with ESMTP id 8FDA7688D54; Sat, 27 Aug 2005 09:31:22 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 7442862A99; Fri, 26 Aug 2005 22:33:15 +0100 (BST) Original-To: Stefan Monnier In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42436 Archived-At: Stefan Monnier writes: > > Could you possibly do C-c C-b (`c-submit-bug-report') on your buffer, so > > as to give a complete dump of your configuration, and then send the whole > > thing to ? CC Mode is maintained as a separate > > project. > > Don't bother. I'm pretty sure it's a bug in src/syntax.c. I'm even pretty > sure I've encountered it fixed it locally already a while back, but somehow > forgot to install it. On a related note, there are fontification problems with the C file below. These are probably also note due to CC mode because when I load it, it doesn't fontify correctly but if I add a character like in the middle and then undo that change i.e leave the buffer is unmodified, it fontifies correctly. Nick void _initialize_infcmd (void); #define GO_USAGE "Usage: go \n" struct gdb_environ *inferior_environ; void _initialize_infcmd (void) { struct cmd_list_element *c = NULL; /* add the filename of the terminal connected to inferior I/O */ add_setshow_filename_cmd ("inferior-tty", class_run, &inferior_io_terminal, _("\ Set terminal for future runs of program being debugged."), _("\ Show terminal for future runs of program being debugged."), _("\ Usage: set inferior-tty /dev/pts/1"), NULL, NULL, &setlist, &showlist); add_com_alias ("tty", "set inferior-tty", class_alias, 0); add_setshow_optional_filename_cmd ("args", class_run, &inferior_args, _("\ Set argument list to give program being debugged when it is started."), _("\ Show argument list to give program being debugged when it is started."), _("\ Follow this command with any number of args, to be passed to the program."), notice_args_set, notice_args_read, &setlist, &showlist); c = add_cmd ("environment", no_class, environment_info, _("\ The environment to give the program, or one variable's value.\n\ With an argument VAR, prints the value of environment variable VAR to\n\ give the program being debugged. With no arguments, prints the entire\n\ environment to be given to the program."), &showlist); set_cmd_completer (c, noop_completer); add_prefix_cmd ("unset", no_class, unset_command, _("Complement to certain \"set\" commands."), &unsetlist, "unset ", 0, &cmdlist); c = add_cmd ("environment", class_run, unset_environment_command, _("\ Cancel environment variable VAR for the program.\n\ This does not affect the program until the next \"run\" command."), &unsetlist); set_cmd_completer (c, noop_completer); c = add_cmd ("environment", class_run, set_environment_command, _("\ Set environment variable value to give the program.\n\ Arguments are VAR VALUE where VAR is variable name and VALUE is value.\n\ VALUES of environment variables are uninterpreted strings.\n\ This does not affect the program until the next \"run\" command."), &setlist); set_cmd_completer (c, noop_completer); c = add_com ("path", class_files, path_command, _("\ Add directory DIR(s) to beginning of search path for object files.\n\ $cwd in the path means the current working directory.\n\ This path is equivalent to the $PATH shell variable. It is a list of\n\ directories, separated by colons. These directories are searched to find\n\ fully linked executable files and separately compiled object files as needed.")); set_cmd_completer (c, filename_completer); c = add_cmd ("paths", no_class, path_info, _("\ Current search path for finding object files.\n\ $cwd in the path means the current working directory.\n\ This path is equivalent to the $PATH shell variable. It is a list of\n\ directories, separated by colons. These directories are searched to find\n\ fully linked executable files and separately compiled object files as needed."), &showlist); set_cmd_completer (c, noop_completer); add_com ("attach", class_run, attach_command, _("\ Attach to a process or file outside of GDB.\n\ This command attaches to another target, of the same type as your last\n\ \"target\" command (\"info files\" will show your target stack).\n\ The command may take as argument a process id or a device file.\n\ For a process id, you must have permission to send the process a signal,\n\ and it must have the same effective uid as the debugger.\n\ When using \"attach\" with a process id, the debugger finds the\n\ program running in the process, looking first in the current working\n\ directory, or (if not found there) using the source file search path\n\ (see the \"directory\" command). You can also use the \"file\" command\n\ to specify the program, and to load its symbol table.")); add_com ("detach", class_run, detach_command, _("\ Detach a process or file previously attached.\n\ If a process, it is no longer traced, and it continues its execution. If\n\ you were debugging a file, the file is closed and gdb no longer accesses it.")); add_com ("disconnect", class_run, disconnect_command, _("\ Disconnect from a target.\n\ The target will wait for another debugger to connect. Not available for\n\ all targets.")); add_com ("signal", class_run, signal_command, _("\ Continue program giving it signal specified by the argument.\n\ An argument of \"0\" means continue program without giving it a signal.")); add_com ("stepi", class_run, stepi_command, _("\ Step one instruction exactly.\n\ Argument N means do this N times (or till program stops for another reason).")); add_com_alias ("si", "stepi", class_alias, 0); add_com ("nexti", class_run, nexti_command, _("\ Step one instruction, but proceed through subroutine calls.\n\ Argument N means do this N times (or till program stops for another reason).")); add_com_alias ("ni", "nexti", class_alias, 0); add_com ("finish", class_run, finish_command, _("\ Execute until selected stack frame returns.\n\ Upon return, the value returned is printed and put in the value history.")); add_com ("next", class_run, next_command, _("\ Step program, proceeding through subroutine calls.\n\ Like the \"step\" command as long as subroutine calls do not happen;\n\ when they do, the call is treated as one instruction.\n\ Argument N means do this N times (or till program stops for another reason).")); add_com_alias ("n", "next", class_run, 1); if (xdb_commands) add_com_alias ("S", "next", class_run, 1); add_com ("step", class_run, step_command, _("\ Step program until it reaches a different source line.\n\ Argument N means do this N times (or till program stops for another reason).")); add_com_alias ("s", "step", class_run, 1); c = add_com ("until", class_run, until_command, _("\ Execute until the program reaches a source line greater than the current\n\ or a specified location (same args as break command) within the current frame.")); set_cmd_completer (c, location_completer); add_com_alias ("u", "until", class_run, 1); c = add_com ("advance", class_run, advance_command, _("\ Continue the program up to the given location (same form as args for break command).\n\ Execution will also stop upon exit from the current stack frame.")); set_cmd_completer (c, location_completer); c = add_com ("jump", class_run, jump_command, _("\ Continue program being debugged at specified line or address.\n\ Give as argument either LINENUM or *ADDR, where ADDR is an expression\n\ for an address to start at.")); set_cmd_completer (c, location_completer); if (xdb_commands) { c = add_com ("go", class_run, go_command, _("\ Usage: go \n\ Continue program being debugged, stopping at specified line or \n\ address.\n\ Give as argument either LINENUM or *ADDR, where ADDR is an \n\ expression for an address to start at.\n\ This command is a combination of tbreak and jump.")); set_cmd_completer (c, location_completer); } if (xdb_commands) add_com_alias ("g", "go", class_run, 1); add_com ("continue", class_run, continue_command, _("\ Continue program being debugged, after signal or breakpoint.\n\ If proceeding from breakpoint, a number N may be used as an argument,\n\ which means to set the ignore count of that breakpoint to N - 1 (so that\n\ the breakpoint won't break until the Nth time it is reached).")); add_com_alias ("c", "cont", class_run, 1); add_com_alias ("fg", "cont", class_run, 1); c = add_com ("run", class_run, run_command, _("\ Start debugged program. You may specify arguments to give it.\n\ Args may include \"*\", or \"[...]\"; they are expanded using \"sh\".\n\ Input and output redirection with \">\", \"<\", or \">>\" are also allowed.\n\n\ With no arguments, uses arguments last specified (with \"run\" or \"set args\").\n\ To cancel previous arguments and run with no arguments,\n\ use \"set args\" without arguments.")); set_cmd_completer (c, filename_completer); add_com_alias ("r", "run", class_run, 1); if (xdb_commands) add_com ("R", class_run, run_no_args_command, _("Start debugged program with no arguments.")); c = add_com ("start", class_run, start_command, _("\ Run the debugged program until the beginning of the main procedure.\n\ You may specify arguments to give to your program, just as with the\n\ \"run\" command.")); set_cmd_completer (c, filename_completer); add_com ("interrupt", class_run, interrupt_target_command, _("Interrupt the execution of the debugged program.")); add_info ("registers", nofp_registers_info, _("\ List of integer registers and their contents, for selected stack frame.\n\ Register name as argument means describe only that register.")); add_info_alias ("r", "registers", 1); if (xdb_commands) add_com ("lr", class_info, nofp_registers_info, _("\ List of integer registers and their contents, for selected stack frame.\n\ Register name as argument means describe only that register.")); add_info ("all-registers", all_registers_info, _("\ List of all registers and their contents, for selected stack frame.\n\ Register name as argument means describe only that register.")); add_info ("program", program_info, _("Execution status of the program.")); add_info ("float", float_info, _("Print the status of the floating point unit\n")); add_info ("vector", vector_info, _("Print the status of the vector unit\n")); inferior_environ = make_environ (); init_environ (inferior_environ); }