From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EHdzN0uzuGLxDwEAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 21:28:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WB9WN0uzuGI1vQAAauVa8A (envelope-from ) for ; Sun, 26 Jun 2022 21:28:11 +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 5BFD92479F for ; Sun, 26 Jun 2022 21:28:11 +0200 (CEST) Received: from localhost ([::1]:52892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5XvW-0001XH-97 for larch@yhetil.org; Sun, 26 Jun 2022 15:28:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5Xv5-0001WP-Q9 for emacs-orgmode@gnu.org; Sun, 26 Jun 2022 15:27:43 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:45864) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5Xv4-00060u-42 for emacs-orgmode@gnu.org; Sun, 26 Jun 2022 15:27:43 -0400 Received: by mail-wr1-x436.google.com with SMTP id n1so10156376wrg.12 for ; Sun, 26 Jun 2022 12:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to; bh=sXptcbsg0OiAeyWVF7088SeGWxN61vv2QZ+LH4VklXY=; b=Z5pyIm7olM8lzlsF+cYB4ubXywbM9jn+7BFohZ4PVDck01986jbSc4KnkNGrb4ftaG 8UICMaUtkfbSrC+UNsxgzf3nWfPw5TR4kJxVAsY8GmMmpnvtSdm7Zf74tcsedjprjw35 gxqObrEmxU+iD5JIIP0Zzund1fFX3QuGKva1Q9v2QUSghI+Se9Rsv8h0FuKZnEyK/DGf BwqbIBy8MMYIHgp7RDNwTHqx5xBFn0cR9e68jZ8CNj0yaSvqwLbTI7D6aR+yR1G78PeW lb0UfmEkJkcsPgJLDph/p9AFGh6uDiTwiDn/usEQV7vF33bTKVCcL6g+FGV33HHuYWAQ FDvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to; bh=sXptcbsg0OiAeyWVF7088SeGWxN61vv2QZ+LH4VklXY=; b=QpeVV4F29IIinZ6iqMxsG0rSuJsLOoYFiKjS3p9OfW3c066re/w1WH1zQtnCNEppKs QjpGRXL3MTnn9pZPaBK3XDqO+1H3A3MmFFm064YUKoQ0fcbf9L7T7GKp9TTGmaFDgNq6 dBVIPO/JM9jCt5iYfaRmkhpcny6VFHQzMPCXACJcF7JCM3O9lD3MMm+NDqVRspZP2ZUA u0RGuKSr/3n1wmjfTWeroSUcvzsn7rjAq493MBCUAycC9ewj5QeQPwZeHvoOqU2ScXu8 mBNZOD6T0I68dcal32fBJ29qGDq1N3IZu4YbWhOtvWx0dtkArbGyYPB5u5bbgZKZRKTV IwqA== X-Gm-Message-State: AJIora8LaDJrumN+chLLN0wNwwEoE1TSj9YfrfWS4WULdaOERAFPQ/7m 4MO/as+29UEQ4ykPMR902PY= X-Google-Smtp-Source: AGRyM1uRmWqr9hD87SSnm1jyqWSrsCfrYQi8tXPfWTNtoJRixoksMVtzRuUBHCD3WHygdiuGAnEm8w== X-Received: by 2002:a05:6000:1f08:b0:21b:ae8f:4f0a with SMTP id bv8-20020a0560001f0800b0021bae8f4f0amr9278531wrb.456.1656271657240; Sun, 26 Jun 2022 12:27:37 -0700 (PDT) Received: from [192.168.0.97] (din-41-204-231-77.ipcom.comunitel.net. [77.231.204.41]) by smtp.gmail.com with ESMTPSA id q4-20020adff944000000b0021b956da1dcsm8343743wrr.113.2022.06.26.12.27.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Jun 2022 12:27:36 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------oCSMnAAcw0BihM3KSfzJCLQW" Message-ID: <281a29d8-8dfc-86b2-bc57-a6b0d5d338a1@gmail.com> Date: Sun, 26 Jun 2022 21:26:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: C-SPC works; C-u C-SPC doesn't. How could be? Content-Language: en-GB To: Bruno Barbier , Org-mode 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> <62b8af84.1c69fb81.e0ca7.9738SMTPIN_ADDED_MISSING@mx.google.com> From: Ypo In-Reply-To: <62b8af84.1c69fb81.e0ca7.9738SMTPIN_ADDED_MISSING@mx.google.com> Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=ypuntot@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1656271691; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=sXptcbsg0OiAeyWVF7088SeGWxN61vv2QZ+LH4VklXY=; b=bYKYiRdd59NnXkHUJTr+kRrEAdFMTzOrzg2YS5cvZAMUMMwwz2AOZxW98Z5D/ghgkPtqH5 QJ1ZcbMIO/dnUEKH4OhwH8nQ+x08lRIhLXqjDX+FuNU46Q1AEjTnPka3TnHm708cY3OLX9 x//xJNUaZhkm9z7acCrvH4m0azn+hTjk1vW/3j8eZUT3WlEY7HLgTNPvkhtm/jRaR0btP9 WFTqxlMtLIASmP5/hoL9RJ/BLzp5esGnpJ2i38ZIP+4WmgvIqKqJldwO7sggwHkP4P6qW9 acemP5HFtfhIc/KMVPeHjsoE7MCN0Yz/IYwtypNVzK865jLeeNnWkQ0O3j9Jiw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656271691; a=rsa-sha256; cv=none; b=aNut1ifNC8HbqAXfLm+mrTVkdHBh5hSiSH/G5yujqk/1GY41acr01k02kN/C5YgHBUfTw0 rKs/kkZNIaoTuw6tv8Y3H3PJ4S5B/832JfZFljT54J06mEL4/d1aecvB22nxUXceP5ByFf 88K8Od+t1x5ajNzOzi9WKbryASM/7ZGtHR1gv8iOzd1RuDwMhd+Mp1H1crV8IFlr4HOcnO sv1OlDOM1g9oxaU1I87fzNgok96gt8crRufphDrSIGMA3hQmC2fTItBnbT2RQVRreC4ZjO AvjLoNWPeu0Mnzv0n6VgWzhQ4hHh9eHvuIJPFWW9+cG5V4XFxujbKjLCxKtJrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Z5pyIm7o; dmarc=pass (policy=none) header.from=gmail.com; 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: -6.76 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Z5pyIm7o; dmarc=pass (policy=none) header.from=gmail.com; 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: 5BFD92479F X-Spam-Score: -6.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1l0ylra5HUVH This is a multi-part message in MIME format. --------------oCSMnAAcw0BihM3KSfzJCLQW Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Thanks, Bruno I will save your advice for future debugging :-) > Maybe you could use the keys that are already defined by org, to move > between list items ? > > > ‘S-’ > ‘S-’ > Jump to the previous/next item in the current list, but only if > ‘org-support-shift-select’ is off(6). If not, you can still use > paragraph jumping commands like ‘C-’ and ‘C-’ to quite > similar effect. That requires me to change hands position, I must think about it. Best regards :-) El 26/06/2022 a las 21:13, Bruno Barbier escribió: > Ypo writes: > >> Thanks, Bruno >> >> I've debugged it manually because (keymap-lookup) doesn't seem to exist >> 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")) > >> 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 ? > > > ‘S-’ > ‘S-’ > Jump to the previous/next item in the current list, but only if > ‘org-support-shift-select’ is off(6). If not, you can still use > paragraph jumping commands like ‘C-’ and ‘C-’ to quite > similar effect. > > Bruno > > >> >> El 25/06/2022 a las 9:47, Bruno Barbier escribió: >>> 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) >>> >>> everywhere in my init files and I start emacs with --debug-init. >>> >>> Good luck, >>> >>> Bruno >>> >>> --------------oCSMnAAcw0BihM3KSfzJCLQW Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Thanks, Bruno

I will save your advice for future debugging :-)

Maybe you could use the keys that are already defined by org, to move
between list items ?


    ‘S-<UP>’
    ‘S-<DOWN>’
         Jump to the previous/next item in the current list, but only if
         ‘org-support-shift-select’ is off(6).  If not, you can still use
         paragraph jumping commands like ‘C-<UP>’ and ‘C-<DOWN>’ to quite
         similar effect.
That requires me to change hands position, I must think about it. Best regards :-)
El 26/06/2022 a las 21:13, Bruno Barbier escribió:
Ypo <ypuntot@gmail.com> writes:

Thanks, Bruno

I've debugged it manually because (keymap-lookup) doesn't seem to exist 
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"))
     
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 ?


    ‘S-<UP>’
    ‘S-<DOWN>’
         Jump to the previous/next item in the current list, but only if
         ‘org-support-shift-select’ is off(6).  If not, you can still use
         paragraph jumping commands like ‘C-<UP>’ and ‘C-<DOWN>’ to quite
         similar effect.

Bruno



El 25/06/2022 a las 9:47, Bruno Barbier escribió:
Hi Ypo,

Ypo<ypuntot@gmail.com>  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)
    
everywhere in my init files and I start emacs with --debug-init.

Good luck,

Bruno


--------------oCSMnAAcw0BihM3KSfzJCLQW--