unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
	bug-cc-mode@gnu.org, emacs-devel@gnu.org
Subject: Re: c-submode-indicators at wrong place in minor-mode-alist
Date: Fri, 16 Dec 2005 09:08:12 +1300	[thread overview]
Message-ID: <17313.52524.159919.155845@kahikatea.snap.net.nz> (raw)
In-Reply-To: <Pine.LNX.3.96.1051215135211.674A-100000@acm.acm>

 > >  I have two suggestions:
 > 
 > >  1) Clicking mouse-2 on the characters after "C" on the mode-line describes
 > >  c-submode-indicators.  It would be helpful if this variable was documented
 > >  to explain the meaning of its value.
 > 
 > >  2) The sub-menus of the "Toggle..." menu-item should be radio buttons so
 > >  the user can see their current value.
 > 
 > >Also the menu item "Syntactic indentation" is permanently disabled and can't
 > >be toggled.
 > 
 > As a matter of interest, are any of these mousey things coupled with a
 > particular window manager or toolkit or the like?  (Personally, I develop
 > with Emacs on a tty.)

If you develop on a tty, how do you know if GUI related features work?  The
patch below seems to fix it for me.  I think I have associated each function
with the right variable but these aren't really minor modes in the normal
sense (if they were the functions and variables would have the same name).

 > >For some reason none of the defvars in cc-langs.el seem to have doc strings.
 > 
 > Some do - `c-identifier-syntax-table', for example.

OK, but it seems particularly important that c-submode-indicators has one
if the user is to understand the mode line.

 > >The missing functionality might be due to my setup: CC mode almost seems
 > >to be a dialect of Emacs Lisp with its own virtual world of macros.
 > 
 > That's not unfair.  ;-)  Most of these macros are for smoothing over the
 > differences between (X)Emacs versions (we've only just dropped support
 > for Emacs 19.34), getting a steady compilation environment (so that byte
 > compilation will do the Right Thing regardless of what's loaded in the
 > Emacs Lisp space) or for language variables.

CC mode seems to have become much more complicated, but that might be because
its much more powerful.  I don't know, I just find it hard to understand.

Nick


*** cc-langs.el	04 Dec 2005 00:50:02 +1300	1.35
--- cc-langs.el	14 Dec 2005 22:03:58 +1300	
***************
*** 258,266 ****
  	     (c-fn-region-is-active-p)]))
        "----"
        ("Toggle..."
!        ["Syntactic indentation" c-toggle-syntactic-indentation t]
!        ["Auto newline"          c-toggle-auto-newline t]
!        ["Hungry delete"         c-toggle-hungry-state t])))
  
  \f
  ;;; Syntax tables.
--- 258,269 ----
  	     (c-fn-region-is-active-p)]))
        "----"
        ("Toggle..."
!        ["Syntactic indentation" c-toggle-syntactic-indentation
! 	:style toggle :selected c-syntactic-indentation]
!        ["Auto newline" c-toggle-auto-newline
! 	:style toggle :selected c-auto-newline]
!        ["Hungry delete" c-toggle-hungry-state
! 	:style toggle :selected c-hungry-delete-key])))
  
  \f
  ;;; Syntax tables.




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click


  reply	other threads:[~2005-12-15 20:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-14 21:41 c-submode-indicators at wrong place in minor-mode-alist Stefan Monnier
2005-12-15  0:25 ` Nick Roberts
2005-12-15 14:25   ` Alan Mackenzie
2005-12-15 20:08     ` Nick Roberts [this message]
2005-12-16 10:18       ` Alan Mackenzie
2005-12-16 20:03         ` Nick Roberts
2005-12-17  8:22         ` Eli Zaretskii
2005-12-18  9:26           ` Alan Mackenzie
2005-12-15 20:40     ` Stefan Monnier
2005-12-16 10:57       ` Alan Mackenzie
2005-12-17  1:05         ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17313.52524.159919.155845@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).