unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Vinicius Jose Latorre <viniciusjl@ig.com.br>
Cc: emacs-devel@gnu.org
Subject: Re: blank-mode.el
Date: Tue, 30 Oct 2007 16:17:01 +0200	[thread overview]
Message-ID: <87ejfczrru.fsf@jurta.org> (raw)
In-Reply-To: <4725FE3F.9020000@ig.com.br> (Vinicius Jose Latorre's message of "Mon, 29 Oct 2007 12:37:35 -0300")

>>> So, if blank-toggle is binded to a key, for example, C-c b, then the
>>> user could
>>> type:
>>>
>>>    C-c b t      toggle tabs
>>>    C-c b s      toggle spaces and hard spaces
>>>    C-c b r      toggle trailing blanks
>>>    C-c b b      toggle spaces before tab
>>>    C-c b l      toggle lines
>>
>> I like the idea (and blank-mode in general),

I like this package too, and I have some suggestions: since it implements
a minor mode I suggest defining it with `define-minor-mode', and name the
global mode `global-blank-mode'.

Also I have a question how it interacts with nobreak-char-display.
Does your package overwrite highlighting of nobreak space displayed
by nobreak-char-display feature, or ignores it?

>> but according to the
>> Emacs Lisp reference, C-c b is reserved for major modes:
>>
>>    The key sequences bound in a minor mode should consist of `C-c'
>> followed by one of `.,/?`'"[]\|~!#$%^&*()-_+='.  (The other punctuation
>> characters are reserved for major modes.)
>
> No problem, the key binding above was only an example, it could be any
> other key binding.

I think a key prefix with good mnemonics for blank-minor-mode is `C-c _'.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2007-10-30 14:17 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-28 14:20 blank-mode.el Vinicius Jose Latorre
2007-10-28 14:27 ` blank-mode.el Leo
2007-10-28 18:10   ` blank-mode.el Vinicius Jose Latorre
2007-10-28 17:31 ` blank-mode.el Drew Adams
2007-10-28 19:35   ` blank-mode.el Vinicius Jose Latorre
2007-10-28 19:05     ` blank-mode.el Drew Adams
2007-10-28 23:04       ` blank-mode.el Vinicius Jose Latorre
2007-10-28 22:11         ` blank-mode.el Drew Adams
2007-10-29 10:00         ` blank-mode.el Kim F. Storm
2007-10-29 15:37           ` blank-mode.el Vinicius Jose Latorre
2007-10-30 14:17             ` Juri Linkov [this message]
2007-10-31  4:16               ` blank-mode.el Vinicius Jose Latorre
2007-10-31 16:11                 ` blank-mode.el Juri Linkov
2007-11-09 17:10                   ` blank-mode.el Vinicius Jose Latorre
2007-11-09 18:11                     ` blank-mode.el Vinicius Jose Latorre
2007-11-09 20:41                       ` blank-mode.el Robert J. Chassell
2007-11-11  2:13                         ` blank-mode.el Vinicius Jose Latorre
2007-11-11 12:19                           ` blank-mode.el Robert J. Chassell
2007-11-11 14:37                             ` blank-mode.el Drew Adams
2007-11-11 14:57                             ` blank-mode.el Jason Rumney
2007-11-11 17:52                               ` blank-mode.el Robert J. Chassell
2007-11-11 21:23                                 ` blank-mode.el Vinicius Jose Latorre
2007-11-11 21:48                                   ` blank-mode.el Juri Linkov
2007-11-11 21:59                                     ` blank-mode.el Juanma Barranquero
2007-11-11 22:36                                       ` blank-mode.el Juri Linkov
2007-11-11 23:25                                         ` blank-mode.el Juanma Barranquero
2007-11-12  0:05                                       ` blank-mode.el Vinicius Jose Latorre
2007-11-11 23:28                                         ` blank-mode.el Juanma Barranquero
2007-11-12  0:43                                           ` blank-mode.el Vinicius Jose Latorre
2007-11-12 18:26                                             ` blank-mode.el Robert J. Chassell
2007-11-12 19:53                                               ` blank-mode.el Andreas Schwab
2007-11-12 21:51                                               ` blank-mode.el Vinicius Jose Latorre
2007-11-13 10:45                                                 ` blank-mode.el Robert J. Chassell
2007-11-13 12:13                                                   ` blank-mode.el Vinicius Jose Latorre
2007-11-13 16:41                                                     ` blank-mode.el Vinicius Jose Latorre
2007-11-13 23:54                                                       ` blank-mode.el Juri Linkov
2007-11-14  0:19                                                         ` blank-mode.el Jason Rumney
2007-11-14 10:29                                                         ` blank-mode.el Andreas Schwab
2007-11-16  4:10                                                         ` blank-mode.el Vinicius Jose Latorre
2007-11-16 12:02                                                           ` blank-mode.el Robert J. Chassell
2007-11-17 21:05                                                             ` blank-mode.el Vinicius Jose Latorre
2007-11-17 22:57                                                               ` blank-mode.el Juri Linkov
2007-11-18 14:55                                                                 ` blank-mode.el Vinicius Jose Latorre
2007-11-19 14:44                                                             ` blank-mode.el Vinicius Jose Latorre
2007-11-19 16:22                                                               ` blank-mode.el Robert J. Chassell
2007-11-19 19:19                                                                 ` blank-mode.el Vinicius Jose Latorre
2007-11-20  3:24                                                                   ` blank-mode.el Vinicius Jose Latorre
2007-11-21 13:42                                                                     ` blank-mode.el Vinicius Jose Latorre
2007-11-11 22:04                                   ` blank-mode.el Robert J. Chassell
2007-11-11 22:04                                   ` blank-mode.el Robert J. Chassell
2007-11-12  0:01                                     ` blank-mode.el Vinicius Jose Latorre
2007-11-11 22:01                                 ` blank-mode.el Jason Rumney
2007-11-11 22:37                                   ` blank-mode.el Juri Linkov
2007-11-11 22:46                                     ` blank-mode.el Jason Rumney
2007-11-11 17:01                           ` blank-mode.el Robert J. Chassell
  -- strict thread matches above, loose matches on Subject: below --
2007-11-14 13:44 blank-mode.el Robert J. Chassell

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=87ejfczrru.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=viniciusjl@ig.com.br \
    /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).