From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kurt Hackenberg Newsgroups: gmane.emacs.bugs Subject: bug#21452: 24.5; conf-mode has no parent Date: Wed, 9 Sep 2015 23:17:22 -0400 Message-ID: <22000.63042.922805.364655@panix1.panix.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1441864355 24358 80.91.229.3 (10 Sep 2015 05:52:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2015 05:52:35 +0000 (UTC) To: 21452@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 10 07:52:23 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 1ZZumI-0008Cn-08 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Sep 2015 07:52:10 +0200 Original-Received: from localhost ([::1]:47108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZumH-0007PK-CU for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Sep 2015 01:52:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZumD-0007PA-Iu for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2015 01:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZumA-0001bM-BI for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2015 01:52:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZumA-0001bI-7o for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2015 01:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZZum9-0006Wz-Vb for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2015 01:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kurt Hackenberg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Sep 2015 05:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144186431725092 (code B ref -1); Thu, 10 Sep 2015 05:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Sep 2015 05:51:57 +0000 Original-Received: from localhost ([127.0.0.1]:54396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZum4-0006Wd-TF for submit@debbugs.gnu.org; Thu, 10 Sep 2015 01:51:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38519) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZsMd-0002rd-Os for submit@debbugs.gnu.org; Wed, 09 Sep 2015 23:17:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZsMc-0003Ma-F8 for submit@debbugs.gnu.org; Wed, 09 Sep 2015 23:17:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZsMc-0003MW-Bx for submit@debbugs.gnu.org; Wed, 09 Sep 2015 23:17:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZsMb-00026S-B7 for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 23:17:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZsMX-0003LO-84 for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 23:17:29 -0400 Original-Received: from mailbackend.panix.com ([166.84.1.89]:58804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZsMX-0003LG-32 for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2015 23:17:25 -0400 Original-Received: from panix1.panix.com (panix1.panix.com [166.84.1.1]) by mailbackend.panix.com (Postfix) with ESMTP id 4C82717CAC for ; Wed, 9 Sep 2015 23:17:23 -0400 (EDT) Original-Received: by panix1.panix.com (Postfix, from userid 20205) id 2E35F14B9A; Wed, 9 Sep 2015 23:17:23 -0400 (EDT) X-Mailer: VM 8.1.2 under 24.2.1 (i386-unknown-netbsdelf6.1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux (Android) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Thu, 10 Sep 2015 01:51:54 -0400 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:106334 Archived-At: The major mode conf-mode has no parent mode, and does not inherit anything, because it's not defined with define-derived-mode, just with defun. The source file conf-mode.el is in lisp/textmodes, but that seems wrong. Conf-mode's children edit files that contain software configuration, not human language. Probably conf-mode should be derived from prog-mode. Because of the lack of inheritance, my init file contains this workaround: ;; show trailing whitespace (GNU 21) ;;for programming language modes and text modes, but not special modes ;;(dired, shell, etc.) ;;The minor mode whitespace-mode can do this now, but I haven't converted. (if (not (featurep 'xemacs)) (let ((tmp '(lambda () (setq show-trailing-whitespace t)))) ;;use major mode inheritance to do this for these and their descendants (add-hook 'prog-mode-hook tmp) (add-hook 'text-mode-hook tmp) ;;bug: conf-mode is not derived from any other mode, doesn't inherit (add-hook 'conf-mode-hook tmp))) In GNU Emacs 24.5.1 (amd64-portbld-freebsd10.1, GTK+ Version 2.24.27) of 2015-05-23 on 101amd64-default-job-03 Windowing system distributor `The X.Org Foundation', version 11.0.11407000 Configured using: `configure --localstatedir=/var --disable-acl --with-dbus --without-file-notification --with-gconf --with-gif --with-gnutls --with-gsettings --with-jpeg --with-m17n-flt --with-imagemagick --with-libotf --with-png --with-toolkit-scroll-bars --with-rsvg --with-tiff --with-x --with-xft --with-xim --with-xml2 --with-xpm --with-x-toolkit=gtk2 --with-sound=oss --x-libraries=/usr/local/lib --x-includes=/usr/local/include --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/share/emacs/info/ --build=amd64-portbld-freebsd10.1 'CFLAGS=-O2 -pipe -fstack-protector -fno-strict-aliasing' CPPFLAGS=-I/usr/local/include 'LDFLAGS= -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib -fstack-protector'' Important settings: locale-coding-system: nil Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 70974 6840) (symbols 48 17553 0) (miscs 40 35 128) (strings 32 9003 4327) (string-bytes 1 247987) (vectors 16 8908) (vector-slots 8 383144 18301) (floats 8 63 154) (intervals 56 200 146) (buffers 960 11))