From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Moller Newsgroups: gmane.emacs.bugs Subject: bug#17409: 24.3; c-mode customisation Date: Mon, 05 May 2014 12:33:35 -0400 Message-ID: <5367BD5F.1080600@mollerware.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------020509020701030209070102" X-Trace: ger.gmane.org 1399413924 28497 80.91.229.3 (6 May 2014 22:05:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 May 2014 22:05:24 +0000 (UTC) To: 17409@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 07 00:05:17 2014 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 1WhnRr-00038f-ER for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 May 2014 00:02:51 +0200 Original-Received: from localhost ([::1]:58582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhLyA-0005cq-LQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 May 2014 12:42:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhLxz-0005TN-Dw for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 12:42:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhLxs-0007aI-KV for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 12:42:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhLxs-0007aE-HK for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 12:42:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WhLxr-0001y5-Qx for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 12:42:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chris Moller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 May 2014 16:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17409 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.13993080867470 (code B ref -1); Mon, 05 May 2014 16:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 May 2014 16:41:26 +0000 Original-Received: from localhost ([127.0.0.1]:51879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhLxD-0001wN-Io for submit@debbugs.gnu.org; Mon, 05 May 2014 12:41:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51910) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WhLq7-0001ht-Mw for submit@debbugs.gnu.org; Mon, 05 May 2014 12:34:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhLpv-0004Tf-JL for submit@debbugs.gnu.org; Mon, 05 May 2014 12:33:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhLpv-0004Ta-FW for submit@debbugs.gnu.org; Mon, 05 May 2014 12:33:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhLpp-0000xK-CI for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 12:33:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhLpj-0004SU-8e for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 12:33:45 -0400 Original-Received: from atl4mhob11.myregisteredsite.com ([209.17.115.49]:39643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhLpj-0004SO-19 for bug-gnu-emacs@gnu.org; Mon, 05 May 2014 12:33:39 -0400 Original-Received: from mailpod.hostingplatform.com ([10.30.71.203]) by atl4mhob11.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id s45GXZHJ022995 for ; Mon, 5 May 2014 12:33:35 -0400 Original-Received: (qmail 31191 invoked by uid 0); 5 May 2014 16:33:35 -0000 X-TCPREMOTEIP: 107.15.158.141 X-Authenticated-UID: moller@mollerware.com Original-Received: from unknown (HELO qcore.mollernet.net) (moller@mollerware.com@107.15.158.141) by 0 with ESMTPA; 5 May 2014 16:33:35 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Mon, 05 May 2014 12:41:20 -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: 140.186.70.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:88675 Archived-At: This is a multi-part message in MIME format. --------------020509020701030209070102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit c-mode customisations I've been using for decades no longer work. In particular, nothing I do in ~/.emacs will set c-cleanup-list to my preferences, including space-before-funcall. Right after I installed a new OS with a new version of emacs, it contained only scope-operator; now, after a lot of tinkering, it comes up as "c-cleanup-list's value is set-from-style". Either way, it utterly ignores the value set in custom-set-variables, a line in (add-hook 'c-mode-hook (function (lambda () ... (add-to-list 'c-cleanup-list 'space-before-funcall compact-empty-funcall)) and a direct (setq c-cleanup-list (quote (brace-else-brace brace-elseif-brace empty-defun-braces defun-close-semi list-close-comma scope-operator space-before-funcall compact-empty-funcall))) Likewise (setq c-electric-pound-behavior (quote (alignleft))) and '(c-electric-pound-behavior (quote (alignleft))) in custom-set-variables does nothing at all. Any hints? Nothing I've found on the net, including the suggestion from the cc-mode manual ;; Create my personal style. (defconst my-c-style ... works. In GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.8) of 2014-04-18 on buildvm-19.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 20 (Heisenbug) Configured using: `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk3' '--with-gpm=no' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro '' Important settings: value of $LANG: C value of $XMODIFIERS: @im=none locale-coding-system: nil default enable-multibyte-characters: t Major mode: Custom Minor modes in effect: tooltip-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: # C-x u C-x u M-x C-g C-h v c - e l p M-x r e p o r t - e m Recent messages: Undo! [2 times] Quit Type C-x 1 to delete the help window. Creating customization items... Creating customization items ...done Resetting customization items...done Creating customization setup...done Saving file /home/moller/.emacs... Delete excess backup versions of /home/moller/.emacs? y Wrote /home/moller/.emacs [2 times] Load-path shadows: /usr/share/emacs/site-lisp/site-start.d/maxima-modes hides /usr/share/emacs/site-lisp/maxima/site_start.d/maxima-modes Features: (shadow sort gnus-util mail-extr emacsbug message cl-macs gv format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-edit cus-start cus-load wid-edit help-mode help-fns parse-time vc-cvs cc-langs cl cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs pager paren mic-paren crypt crypt++ cycle-mini cm-ops follow-mouse eclipseif time-date tooltip 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 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 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) --------------020509020701030209070102 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

c-mode customisations I've been using for decades no longer work. In

particular, nothing I do in ~/.emacs will set c-cleanup-list to my

preferences, including space-before-funcall. Right after I installed a

new OS with a new version of emacs, it contained only scope-operator;

now, after a lot of tinkering, it comes up as "c-cleanup-list's value is

set-from-style". Either way, it utterly ignores the value set in

custom-set-variables, a line in


(add-hook 'c-mode-hook

(function (lambda ()

...

(add-to-list 'c-cleanup-list 'space-before-funcall

compact-empty-funcall))


and a direct


(setq c-cleanup-list (quote (brace-else-brace brace-elseif-brace empty-defun-braces defun-close-semi list-close-comma scope-operator space-before-funcall compact-empty-funcall)))


Likewise (setq c-electric-pound-behavior (quote (alignleft))) and

'(c-electric-pound-behavior (quote (alignleft))) in custom-set-variables

does nothing at all.


Any hints? Nothing I've found on the net, including the suggestion from

the cc-mode manual


;; Create my personal style.

(defconst my-c-style

...


works.







In GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.8)

of 2014-04-18 on buildvm-19.phx2.fedoraproject.org

Windowing system distributor `Fedora Project', version 11.0.11404000

System Description: Fedora release 20 (Heisenbug)


Configured using:

`configure '--build=x86_64-redhat-linux-gnu'

'--host=x86_64-redhat-linux-gnu' '--program-prefix='

'--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr'

'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'

'--datadir=/usr/share' '--includedir=/usr/include'

'--libdir=/usr/lib64' '--libexecdir=/usr/libexec'

'--localstatedir=/var' '--sharedstatedir=/var/lib'

'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus'

'--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff'

'--with-xft' '--with-xpm' '--with-x-toolkit=gtk3' '--with-gpm=no'

'build_alias=x86_64-redhat-linux-gnu'

'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g

-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions

-fstack-protector-strong --param=ssp-buffer-size=4

-grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro ''


Important settings:

value of $LANG: C

value of $XMODIFIERS: @im=none

locale-coding-system: nil

default enable-multibyte-characters: t


Major mode: Custom


Minor modes in effect:

tooltip-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

column-number-mode: t

line-number-mode: t

transient-mark-mode: t


Recent input:

<down> <down> <down> <down> <down> <down> <down> <down>

<down> <down> <down> <down> <down> <down> <down> <down>

<down> <down> <down> <down> <down> <down> <down> <down>

<down> <down> <down> <down> <down> <down> <down> <f9>

# C-x u C-x u M-x C-g C-h v c - e l <tab> p <tab> <return>

<help-echo> <down-mouse-1> <mouse-2> <help-echo> <down-mouse-1>

<mouse-1> <help-echo> <help-echo> <down-mouse-1> <mouse-1>

<help-echo> M-x r e p o r t - e m <tab> <return>


Recent messages:

Undo! [2 times]

Quit

Type C-x 1 to delete the help window.

Creating customization items...

Creating customization items ...done

Resetting customization items...done

Creating customization setup...done

Saving file /home/moller/.emacs...

Delete excess backup versions of /home/moller/.emacs? y

Wrote /home/moller/.emacs [2 times]


Load-path shadows:

/usr/share/emacs/site-lisp/site-start.d/maxima-modes hides /usr/share/emacs/site-lisp/maxima/site_start.d/maxima-modes


Features:

(shadow sort gnus-util mail-extr emacsbug message cl-macs gv format-spec

rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231

mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums

mm-util mail-prsvr mail-utils cus-edit cus-start cus-load wid-edit

help-mode help-fns parse-time vc-cvs cc-langs cl cl-lib cc-mode cc-fonts

easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars

cc-defs pager paren mic-paren crypt crypt++ cycle-mini cm-ops

follow-mouse eclipseif time-date tooltip 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 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 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)


--------------020509020701030209070102--