From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: Understanding the cause of a bug causing *all* bindings to be wiped out Date: Mon, 11 Jul 2016 14:00:53 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c000d8843165e05375c952b X-Trace: ger.gmane.org 1468246369 2786 80.91.229.3 (11 Jul 2016 14:12:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2016 14:12:49 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 11 16:12:44 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bMbwx-0003Ga-Fb for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2016 16:12:43 +0200 Original-Received: from localhost ([::1]:33924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMbww-0005IH-Kz for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2016 10:12:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMblk-00023S-Vx for emacs-devel@gnu.org; Mon, 11 Jul 2016 10:01:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMblh-0007SO-22 for emacs-devel@gnu.org; Mon, 11 Jul 2016 10:01:08 -0400 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:34721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMblg-0007SK-SL for emacs-devel@gnu.org; Mon, 11 Jul 2016 10:01:04 -0400 Original-Received: by mail-oi0-x233.google.com with SMTP id s66so148536681oif.1 for ; Mon, 11 Jul 2016 07:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Q2IX4C58QdHd16MZ+jbsO9RybV97RYIHpIFWnzkIM0I=; b=nQ7ZJNmjdRUZMc9laJBPkpfW2qscaLA/A0zVzezwCA1jsiSpQDjyvGEv6Z49QfhOAv DMce2C+Hmd5BUlLV+Di5/qo9Q/mT8+BRs3TItQkyIMa13Bh8U0W6B6WkfGs/DJXPBPLc ArgJdXuoF5EFsXwwtVLvXaBpOuAVxwf2cBea34qCQn3JMTbqtVGZxNMc/7TuoUFXsc68 Ct+olr6xZYbSkBIKN4VeoGByQp8YTOX6SLQxyk6LI+1EnB91esPV9eawA1KEcXKRGngO ErPhXWi0jQlreF7IWE9NH9JmUYCio9CuqB/FrMjc6Hhzy6L0fPhdf82UWTby2LwJHNrR TJGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Q2IX4C58QdHd16MZ+jbsO9RybV97RYIHpIFWnzkIM0I=; b=V7MODL7MjYW9uwSZ9/07i7TUgRDh7srZ1bvQg+Y7tCkKRPf4xcBMHrplkkUgv1GrXl hO9Cw8cwqE/0WpPe5VcEqxAwRDA/4ux1Jn3xQrr9OgQhd/hDVVc+i0DLWRNeJzFMsTe3 T7srvZq+IlMzNO+B9s+juplzFY3B6/fQE7zwdkPGvSOaHcRAhnRfO5/rT2T+WGKMYgFz lQjKclm5xr5CwUtkHK43FueLftwueo4loz5SKNGCbRHdSE/OhWaGwReB7tK47d4zcxyz js8CxbVuPKdjFWT6u27v0VHKZDBqJMksW7yOCo8+HQ8NAT8DDJRKlKBiKeNi2xmn5Qva wshA== X-Gm-Message-State: ALyK8tKPBw39nRWBTqu17d3oeEvA4m6nV5eInYyX1rPxtN3LOsEuFR56xdyAdsSqOSbSGg8o+3IwI7a5eU2gLg== X-Received: by 10.157.54.66 with SMTP id w60mr10757958otb.133.1468245664272; Mon, 11 Jul 2016 07:01:04 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:205543 Archived-At: --94eb2c000d8843165e05375c952b Content-Type: text/plain; charset=UTF-8 On Mon, Jul 11, 2016 at 8:33 AM Stefan Monnier wrote: > Or maybe it's a high-priority map that's hiding all the bindings. > I do use high-priority map. But basic bindings like C-x C-c, C-n/C-p, etc are in the global map. Also this bug causes all those keys to be totally unbound. So it's not as if a high-priority map is masking a global map key. If it is unbound, it is unbound in both high-priority and global maps, right? Next time this happens, I'll see if my high-priority map bindings are intact. To prepare for that, I will bind C-h l to the high priority map too so that they work even if global map is wiped out (there's probably no point binding M-x, M-:, etc in high-priority map because the self insert bindings are wiped out too). On Mon, Jul 11, 2016 at 3:29 AM Andreas Schwab wrote: > Maybe global-map is being clobbered. Try attaching with a debugger and > inspecting global_map and current_global_map. > Thanks. I'll give that a try next time this happens. Unfortunately, I just need to wait until it happens again as I have no idea what causes this. Will also note if that happens in a particular major mode next time. -- -- Kaushal Modi --94eb2c000d8843165e05375c952b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mon, Jul 11= , 2016 at 8:33 AM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
Or maybe it's a high-priority map that'= ;s hiding all the bindings.

I do use high-priority map. But ba= sic bindings like C-x C-c, C-n/C-p, etc are in the global map. Also this bu= g causes all those keys to be totally unbound. So it's not as if a high= -priority map is masking a global map key. If it is unbound, it is unbound = in both high-priority and global maps, right?

Next= time this happens, I'll see if my high-priority map bindings are intac= t. To prepare for that, I will bind C-h l to the high priority map too so t= hat they work even if global map is wiped out (there's probably no poin= t binding M-x, M-:, etc in high-priority map because the self insert bindin= gs are wiped out too).

On Mon, Jul 11,= 2016 at 3:29 AM Andreas Schwab <schwab@suse.de> wrote:
Maybe global-map is being clo= bbered.=C2=A0 Try attaching with a debugger and
inspecting global_map an= d current_global_map.

Thanks. I'll give that a try n= ext time this happens. Unfortunately, I just need to wait until it happens = again as I have no idea what causes this. Will also note if that happens in= a particular major mode next time.
--

--
Kaushal Modi

--94eb2c000d8843165e05375c952b--