From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "shreevatsa" Newsgroups: gmane.emacs.help Subject: Re: ctypes.el is stupid (by default) Date: 29 Dec 2005 08:07:36 -0800 Organization: http://groups.google.com Message-ID: <1135872456.012502.181230@g14g2000cwa.googlegroups.com> References: <1135232276.410888.123020@f14g2000cwb.googlegroups.com> <1135755335.488553.158530@o13g2000cwo.googlegroups.com> <1135789262.772802.101410@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1135874424 28344 80.91.229.2 (29 Dec 2005 16:40:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2005 16:40:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 29 17:40:20 2005 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Es0p7-0000vs-Ri for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Dec 2005 17:40:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Es0qU-0008Vx-Bp for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Dec 2005 11:41:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 59.92.134.204 Original-X-Trace: posting.google.com 1135872461 5126 127.0.0.1 (29 Dec 2005 16:07:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 29 Dec 2005 16:07:41 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8) Gecko/20051111 Firefox/1.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=59.92.134.204; posting-account=f2TnjA0AAAAUB1pT12szuNdqeG1M-B83 Original-Xref: shelby.stanford.edu gnu.emacs.help:136666 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32285 Archived-At: Kevin Rodgers wrote: > > One problem is that merely loading ctypes affects subsequent editing. > You could try to disable ctypes with: > (remove-hook 'find-file-hooks 'ctypes-find-file-hook) > But I _want_ ctypes.el! It's nice and helpful, although it has a few bugs: 1. STL types not recognized 2. In c++-mode, it recognizes a class as a new type, but not a struct (probably because of the way it works in C). Unfortunately, I hardly know any Emacs-lisp, so I can't fix this myself. 3. The link given in ctypes.el, namely http://www.csd.uu.se/~andersl/emacs.shtml does not work. There's even an unanswered post about it at http://list-archive.xemacs.org/xemacs-beta/200311/msg00064.html > > Did you read the commentary at the beginning of ctypes.el? > The only relevant part seems to be: ;; Currently, this package can parse C and C++ files. (However, since ;; I do not use C++, the probability is high (about 12, on a scale ;; from 1 to 12) that I've missed something). By default C++ inherits ;; the types defined for C mode. ;-) I must admit, however, that ctypes.el is quite smart and useful, so the thread title is unjustified....