unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kaushal <kaushal.modi@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: Paul Eggert <eggert@cs.ucla.edu>,
	Artur Malabarba <bruce.connor.am@gmail.com>,
	Emacs developers <emacs-devel@gnu.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	Yuri Khan <yuri.v.khan@gmail.com>
Subject: Re: C-x 8 shorthands for ≤ and ≥
Date: Tue, 12 May 2015 11:58:46 -0400	[thread overview]
Message-ID: <CAFyQvY2Ce6eniQH9k3MucUYqDQ+WOTKb2s=xEGgMS-Qimc0kyA@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY2_heUab5H2RV54NTfk-iJj43q-++XaeYd=tMu1ipVF9Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2713 bytes --]

Here's what I now have to put a clean ending to this thread (for anyone who
might end up here while looking for something):

(require 'iso-transl)
;; Add custom bindings to "C-x 8" map
(dolist (binding '((">"   . nil) ; First unbind ">" from the map
                   (">="  . [?≥])
                   (">>"  . [?≫])
                   (">\"" . [?»])
                   (">'"  . [?›])
                   ("<"   . nil) ; First unbind "<" from the map
                   ("<="  . [?≤])
                   ("<<"  . [?≪])
                   ("<\"" . [?«])
                   ("<'"  . [?‹])))
  (define-key iso-transl-ctl-x-8-map (kbd (car binding)) (cdr binding)))



--
Kaushal Modi

On Tue, May 12, 2015 at 10:14 AM, Kaushal <kaushal.modi@gmail.com> wrote:

> In reply to Drew's email that seems to have started by mistake in a new
> thread
>
> > And I'm wondering why we need to provide such "shortcuts".  It is
> > *trivial* for anyone to bind keys to insert any chars one uses often.
> > I don't see how we're doing anyone any favors by this.
> >
> > What's so special about any particular set of Unicode chars that we
> > should bother to offer a predefined set of bindings for them (even if
> > turning on that set is optional)?  Now we're even down to looking to
> > bind ≫ or »?  How silly is that?  (Well, I'm sure those chars are
> > very useful for some people - but those who need 'em can bind 'em.)
> >
> > Where's the beef?
>
> As I mentioned in the first email, I can easily bind those to what I want.
>
> I was motivated to email about this because I found the binding "_<" for ≤
> a bit unnatural. In all the coding languages I used, ≤ was always
> represented as "<=" and so thought that that binding would make more sense.
>
> Then I realized that "<" was already taken for the « and so we could not
> have the "<=" binding.
>
> And then the thread evolved as you see.
>
> As Stefan mentioned, the "<" binding was added at the time when probably
> the other unicode characters were probably not popular.
>
> So this was just a little gesture to "upgrade" the out-of-box bindings for
> "C-x 8" since we are already setting a few default bindings for some
> unicode characters.
>
> I am fine with this discussion ending here and I will go back to using a
> little hydra with a bunch of unicode chars I use frequently.
>
>
> --
> Kaushal Modi
>
> On Mon, May 11, 2015 at 6:13 PM, Stefan Monnier <monnier@iro.umontreal.ca>
> wrote:
>
>> > I disagree.  I use « and » from time to time, and I /never/ wanted to
>> > use ≪ or ≫.
>>
>> FWIW I'm in the same situation.
>>
>>
>>         Stefan
>>
>
>

[-- Attachment #2: Type: text/html, Size: 8113 bytes --]

  reply	other threads:[~2015-05-12 15:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-11 13:22 C-x 8 shorthands for ≤ and ≥ Kaushal
2015-05-11 13:29 ` Kaushal
2015-05-11 14:53   ` Stefan Monnier
2015-05-11 14:57     ` Kaushal
2015-05-11 15:08       ` Artur Malabarba
2015-05-11 15:24       ` Marcin Borkowski
2015-05-11 15:40       ` Yuri Khan
2015-05-11 15:46         ` Kaushal
2015-05-11 16:27         ` Artur Malabarba
2015-05-11 16:34           ` Rasmus
2015-05-11 16:54           ` Kaushal
2015-05-11 20:34           ` Marcin Borkowski
2015-05-11 22:13             ` Stefan Monnier
2015-05-11 22:33               ` C-x 8 shorthands for = and = Drew Adams
2015-05-12 14:14               ` C-x 8 shorthands for ≤ and ≥ Kaushal
2015-05-12 15:58                 ` Kaushal [this message]
2015-05-11 18:26     ` Werner LEMBERG
2015-05-11 19:41       ` Kaushal

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='CAFyQvY2Ce6eniQH9k3MucUYqDQ+WOTKb2s=xEGgMS-Qimc0kyA@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=bruce.connor.am@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=yuri.v.khan@gmail.com \
    /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).