all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Understanding the cause of a bug causing *all* bindings to be wiped out
Date: Mon, 11 Jul 2016 15:52:29 +0000	[thread overview]
Message-ID: <CAFyQvY3PpPzQ+mPRnR3CtkmZoWp_UC+EAXdYeA7XqttbmYO8Nw@mail.gmail.com> (raw)
In-Reply-To: <jwvzipo8e3g.fsf-monnier+Inbox@gnu.org>

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

I am using the emacs master build version (25.1.50.x).

Here is how I set my minor mode map:

=====
(defvar modi-mode-special-map (make-sparse-keymap)
  "Special keymap for `modi-mode' whose bindings begin with
`modi-special-keymap-prefix'.")
(fset 'modi-mode-special-map modi-mode-special-map)

(defvar modi-mode-map (let ((map (make-sparse-keymap)))
                        (define-key map modi-special-keymap-prefix
'modi-mode-special-map)
                        map)
  "Keymap for `modi-mode'.")

;; The keymaps in `emulation-mode-map-alists' take precedence over
;; `minor-mode-map-alist'
(add-to-list 'emulation-mode-map-alists `((modi-mode . ,modi-mode-map)))
=====

Also there was a typo in my previous email:

I meant:

=====
The strange thing is that

(string-match "." nil) ; *not* (string-match-p ..)

generates proper backtrace as expected ..
=====

On Mon, Jul 11, 2016 at 11:28 AM Stefan Monnier <monnier@iro.umontreal.ca>
wrote:

> The overriding-local-map if non-nil disables all other maps.
> And in Emacs<24.4, the same holds for overriding-terminal-local-map.
>
> Could it be you're using a package written for Emacs>=24.4 which sets
> a sparse keymap in overriding-terminal-local-map to just override a few
> key bindings, but you use it with Emacs<24.4 where that ends up
> disabling all other bindings?

-- 

-- 
Kaushal Modi

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

  reply	other threads:[~2016-07-11 15:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-11  5:28 Understanding the cause of a bug causing *all* bindings to be wiped out Kaushal Modi
2016-07-11  7:29 ` Andreas Schwab
2016-07-11 12:33   ` Stefan Monnier
2016-07-11 14:00     ` Kaushal Modi
2016-07-11 14:10       ` Stefan Monnier
2016-07-11 15:52         ` Kaushal Modi [this message]
2016-07-11 19:57           ` Kaushal Modi
2016-07-11 14:42     ` Eli Zaretskii
2016-07-11 15:20       ` Kaushal Modi

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

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

  git send-email \
    --in-reply-to=CAFyQvY3PpPzQ+mPRnR3CtkmZoWp_UC+EAXdYeA7XqttbmYO8Nw@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.