From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zhang Kai Yu Newsgroups: gmane.emacs.bugs Subject: bug#21465: [PATCH] CC-modes hierarchy Date: Tue, 15 Sep 2015 16:46:11 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1442306855 14449 80.91.229.3 (15 Sep 2015 08:47:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 08:47:35 +0000 (UTC) To: 21465@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 15 10:47:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZbltQ-0007ZP-0w for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2015 10:47:12 +0200 Original-Received: from localhost ([::1]:46054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbltP-0005va-Fi for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2015 04:47:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbltN-0005vU-0p for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 04:47:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbltM-0006tt-5T for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2015 04:47:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbltG-0006tG-Ji; Tue, 15 Sep 2015 04:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZbltG-0001vg-9b; Tue, 15 Sep 2015 04:47:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Zhang Kai Yu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 15 Sep 2015 08:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21465 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch Original-Received: via spool by 21465-submit@debbugs.gnu.org id=B21465.14423067917345 (code B ref 21465); Tue, 15 Sep 2015 08:47:02 +0000 Original-Received: (at 21465) by debbugs.gnu.org; 15 Sep 2015 08:46:31 +0000 Original-Received: from localhost ([127.0.0.1]:60888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zblsk-0001uO-7o for submit@debbugs.gnu.org; Tue, 15 Sep 2015 04:46:30 -0400 Original-Received: from nk11p08mm-asmtpout001.mac.com ([17.158.58.246]:64989 helo=nk11p08mm-asmtp001.mac.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zblsi-0001uE-CB for 21465@debbugs.gnu.org; Tue, 15 Sep 2015 04:46:29 -0400 Original-Received: from [192.168.1.102] (unknown [116.16.123.63]) by nk11p08mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTPSA id <0NUP0020AN102V30@nk11p08mm-asmtp001.mac.com> for 21465@debbugs.gnu.org; Tue, 15 Sep 2015 08:46:17 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-09-15_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 kscore.is_bulkscore=2.25774954287772e-12 compositescore=0.755084241041471 phishscore=0 kscore.is_spamscore=0 rbsscore=0.755084241041471 recipient_to_sender_totalscore=0 spamscore=0 urlsuspectscore=0.755084241041471 adultscore=0 kscore.compositescore=0 circleOfTrustscore=0 suspectscore=13 recipient_domain_to_sender_totalscore=0 bulkscore=0 recipient_domain_to_sender_domain_totalscore=0 recipient_to_sender_domain_totalscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1412110000 definitions=main-1509150139 X-Mailer: iPad Mail (13A340) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106576 Archived-At: This is useful feature. For example, when user set up auto completion, since clang provides completi= on to C, C++, and Objective-C, user just setup auto completion onto the comm= on hook. When user open a php file, C stuff starts to auto completion. Also, C snippets is required in C++ and Objective-C, but do not make sense i= n php. C++ and Objective-C contains C, however php not. There are some keywords in C= are not keywords in php, vice versa. It has structure similar to C but tota= lly different language and running environment. IMHO we should adapt to this.=