From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Emacs *-mode add-hook functions (not working>) Date: Mon, 10 Nov 2014 10:39:35 -0800 (PST) Message-ID: References: <83d28zrr8f.fsf@gnu.org> <13f9c811-a41d-446d-a795-932d95939a63@googlegroups.com> <2cd53f5b-d707-4362-b013-31afed98a96a@googlegroups.com> <538edd7a-8d2c-4d19-9edf-bb99871635df@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1415644819 10642 80.91.229.3 (10 Nov 2014 18:40:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2014 18:40:19 +0000 (UTC) To: 3246251196ryan@gmail.com, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 10 19:40:12 2014 Return-path: Envelope-to: geh-help-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 1Xntsp-0001ge-OU for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Nov 2014 19:40:11 +0100 Original-Received: from localhost ([::1]:44638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xntsp-0007yi-3p for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Nov 2014 13:40:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XntsS-0007o4-JS for help-gnu-emacs@gnu.org; Mon, 10 Nov 2014 13:39:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XntsJ-00072U-U1 for help-gnu-emacs@gnu.org; Mon, 10 Nov 2014 13:39:48 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:23576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XntsJ-00072P-Ma for help-gnu-emacs@gnu.org; Mon, 10 Nov 2014 13:39:39 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sAAIdaih029289 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 Nov 2014 18:39:37 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sAAIdaXR018777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 10 Nov 2014 18:39:36 GMT Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sAAIdaP5018771; Mon, 10 Nov 2014 18:39:36 GMT In-Reply-To: <538edd7a-8d2c-4d19-9edf-bb99871635df@googlegroups.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100889 Archived-At: > (if (string=3D "c-mode" major-mode) I haven't followed this thread at all. But since `major-mode' has a symbol value, you can just use (eq 'c-mode major-mode) here. (And maybe you really want (derived-mode-p 'c-mode) instead - dunno.)