From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mJ0DHO50r2IffwAAbAwnHQ (envelope-from ) for ; Sun, 19 Jun 2022 21:11:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QAsCHO50r2K8bgEA9RJhRA (envelope-from ) for ; Sun, 19 Jun 2022 21:11:42 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F37793C368 for ; Sun, 19 Jun 2022 21:11:41 +0200 (CEST) Received: from localhost ([::1]:59540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o30Kj-0003vd-6v for larch@yhetil.org; Sun, 19 Jun 2022 15:11:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o30Jm-0003uw-DZ for emacs-orgmode@gnu.org; Sun, 19 Jun 2022 15:10:42 -0400 Received: from smtp1-g21.free.fr ([2a01:e0c:1:1599::10]:59742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o30Jk-0001dH-NU for emacs-orgmode@gnu.org; Sun, 19 Jun 2022 15:10:42 -0400 Received: from tosh-laptop (unknown [IPv6:2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp1-g21.free.fr (Postfix) with ESMTPS id 041DDB004D5; Sun, 19 Jun 2022 21:10:34 +0200 (CEST) Received: by tosh-laptop (sSMTP sendmail emulation); Sun, 19 Jun 2022 21:11:55 +0200 From: Bruno Barbier To: Ypo , Org-mode Subject: Re: Elisp assertion for debugging In-Reply-To: References: Date: Sun, 19 Jun 2022 21:11:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: softfail client-ip=2a01:e0c:1:1599::10; envelope-from=brubar.cs@gmail.com; helo=smtp1-g21.free.fr X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MISSING_MID=0.497, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action Message-Id: X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655665902; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=jKyfEYshjaBhaysEc2ITGvtllDGztbHXtUCvU0ecfQw=; b=trk5PVofYmg2Xi2BEyBg+AkPkI3Sf9hjwaw3OEFiaT+49SekGJRT90Babkde0YrjbYjXCd tnYbVkiDlW7vALdoSU7fCcaMRm1z83sURlRA4FKCxfssSey6V1/lWBpD+SNduWvW9ylprn /Z4cV/9fY5dUuyNIHbZQrPqLTp/sWQOqIZ91bHekoyvv2r2ftic1BodoEoNvHANmefLKOA F3lsRhNjxQsJfB9iSny4xsalO8qHNV5430P36J42iAmA406K4HQTGBBqzYEQ78CjN0XvdX kzJCH1XoeFRe+Fkhdz4xu7H50NmyaU8JzEGUoFchqlpjekYjHwwOV1HaMRXvVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655665902; a=rsa-sha256; cv=none; b=PLFDubk2FeWjLdHInaLoW/ImtndSfl5l3bafG+ykRutR8xQH1Eke+zvz1VoVG0YyhzEOsj XPKfpgpnJ4JOxBPodk20GrBsvURIakZ9z3vIWOxS7xb8M2gMPK7a7OcQfUEDDUd8l08ihM /3TCrOHHXIXz5OWKKrPfROT2wHgpJf+Umi+We4aO7DmCSqDN6OqVr4gC0CfwGSfF4DRsEB mM2UMuLeirhJIuf/GSuTCgqxNYQjGeVwjPMpbw9D270OmcvPouWpKQbIud6JyPqmVbwkU2 57Zc/sYt6YNRsfcA7McEWe0/HwG8aRzshELu+K9feDAAx3t63x3yvwQL0poUfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.22 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: F37793C368 X-Spam-Score: 1.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: tUdy5ly96oOz Ypo writes: > I am trying to debug my init file: C-u prefix is not working. > > I am using the elisp-bug-hunter package that has saved me many times in=20 > the past. But it doesn't work fine this time though, so it seems I need=20 > an =E2=80=9Cassertion elisp=E2=80=9D to debug my init file. > > What elisp expression would return nil when C-u prefix works and non-nil= =20 > when C-u prefix doesn't work? > > I have tried > > (eq (key-binding "C-u C-SPC") 'nil) > > but it is probably a nonsense. > > Best regards This might work: (unless (eq 'universal-argument (keymap-lookup global-map "C-u")) (error "C-u has been redefined")) Note that you don't need to quote nil: 'nil =3D nil Also, this question is not really about org-mode; posting to the emacs mailing list might increase your chance to get a good answer. Best regards,