From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CD99BKWvuGIZUwEAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 21:12:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qG1jBKWvuGLJeQEAauVa8A (envelope-from ) for ; Sun, 26 Jun 2022 21:12:37 +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 AD9EA75A0 for ; Sun, 26 Jun 2022 21:12:36 +0200 (CEST) Received: from localhost ([::1]:46474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5XgR-0004pl-Jy for larch@yhetil.org; Sun, 26 Jun 2022 15:12:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5Xg0-0004pZ-I6 for emacs-orgmode@gnu.org; Sun, 26 Jun 2022 15:12:08 -0400 Received: from smtp1-g21.free.fr ([2a01:e0c:1:1599::10]:55068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5Xfy-0001en-Ip for emacs-orgmode@gnu.org; Sun, 26 Jun 2022 15:12:08 -0400 Received: from tosh-laptop (unknown [IPv6:2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp1-g21.free.fr (Postfix) with ESMTPS id C0BCFB004EE; Sun, 26 Jun 2022 21:12:01 +0200 (CEST) Received: by tosh-laptop (sSMTP sendmail emulation); Sun, 26 Jun 2022 21:13:38 +0200 From: Bruno Barbier To: Ypo , Org-mode Subject: Re: C-SPC works; C-u C-SPC doesn't. How could be? In-Reply-To: References: <286ef42a-bf96-ecce-0080-3294f8870c84@gmail.com> <62b5f498.1c69fb81.8f12b.b976SMTPIN_ADDED_MISSING@mx.google.com> <62b6bd46.1c69fb81.f4e75.9cf5SMTPIN_ADDED_MISSING@mx.google.com> Date: Sun, 26 Jun 2022 21:13:37 +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=1656270756; 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=+cuu+pmwDAGdKg8bHBueNxMEqbc26V7FJIOcFFXgteA=; b=UBoyiB5i+J5X8PDj/+W7hoWGv0u0lvhaRlXgLqUhAlkY2QtsSCeFKIfPvW1rfMSYssAGOh XjjrXndxRBT1mHe4i3zFdw6jlnKl30r+uZT9H46R4RHuraUJSmR30PhaFp3kWye58YTi8w Ymb1z6ougJrksFnKD7IBitun5S3CQ+Tl5UA14pJSJr+RNV6gADJfIhuLHcrc2OHS+In8dm aa1In9KhRyWC/9U97EQeiS5xN0HJh/2WQtWBGchUhluEbNBV2pYuvGR/EXnM9Nm0jFYqqt WzJQgcZza8F+Rm0O1vm5cqyAXdpPpuTIfheUoHUQceZR/lEionOb0CulrTvuhQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656270756; a=rsa-sha256; cv=none; b=YB6Zjk1zV9Nt+zN5g8lauGvsshJLJ4vCzUNCalfbEuUqN5x2XXaXXZqTzv8fmM9VVQlD78 rNkBJWt+25W5OH8y4KX/PIgz1I1l8KuVtpeJYFADsPFqlyd7VR/fWex6e5J0/WD2lKEqfC a3Kt1e2+B6xcePbdRiSDe3MF0Om6NXeqNv0pPXGy0pDx+nhvQUkzeBdBBf3j9ggjxdW8qx hMCeIo+IaXK9lQWTPJR/0s61GcbObaTna5wwrT4/ljNRw8sI4PVha+S2RhPel55z6UnTgq 3E7IXkYxRvSO3tfGsti4DWX0bYImz+KdsFupqcj7XXtTl9kv87DLPEYZ59o4hg== 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: 4.74 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: AD9EA75A0 X-Spam-Score: 4.74 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5FVhZmKE+70J Ypo writes: > Thanks, Bruno > > I've debugged it manually because (keymap-lookup) doesn't seem to exist=20 > in my emacs, if that's possible. Sorry, my bad. 'keymap-lookup' will only exist in 29. I should have used 'lookup-key': (lookup-key global-map (kbd "C-u")) =20=20=20=20=20 > > The problem comes from: > > (define-key org-mode-map (kbd "C-u C-n") #'org-next-item) > > If I eval that line, "C-u C-SPC" stops working on org-mode. > > Same problem in runemacs -q. Is it a bug? That line is the problem. It's hiding the real "C-u" (universal-argument) in org-mode buffers. Once you've lost the standard meaning of "C-u", you can't use C-u C-SPC and all other functions. Maybe you could use the keys that are already defined by org, to move between list items ? =E2=80=98S-=E2=80=99 =E2=80=98S-=E2=80=99 Jump to the previous/next item in the current list, but only if =E2=80=98org-support-shift-select=E2=80=99 is off(6). If not, you= can still use paragraph jumping commands like =E2=80=98C-=E2=80=99 and =E2= =80=98C-=E2=80=99 to quite similar effect. Bruno > > > El 25/06/2022 a las 9:47, Bruno Barbier escribi=C3=B3: >> Hi Ypo, >> >> Ypo writes: >> >>> Hi, Bruno >>> >>> Yes, I tried your assertion for bug-hunter, but it didn't work. >>> >>> (unless (eq 'universal-argument (keymap-lookup global-map "C-u")) >>> (error "C-u has been redefined")) >>> >> I'm not sure in what way it didn't work and I didn't try bug-hunter yet. >> >> >> FWIW, just in case it might help you, when I have such a problem, I just >> define a function, something like: >> >> (defun my-check-bug () >> "Throw an error when C-u is not the universal argument in org-mode= ." >> (with-temp-buffer >> (org-mode) >> (unless (eq 'universal-argument (keymap-lookup global-map "C-u")) >> (error "C-u has been redefined")))) >> >> >> Then I add: >> >> (my-check-bug) >>=20=20=20=20=20 >> everywhere in my init files and I start emacs with --debug-init. >> >> Good luck, >> >> Bruno >> >>