From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id nKVLIGJW4l+bbgAA0tVLHw (envelope-from ) for ; Tue, 22 Dec 2020 20:26:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yLXUG2JW4l84OQAA1q6Kng (envelope-from ) for ; Tue, 22 Dec 2020 20:26:10 +0000 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 2A9E3940149 for ; Tue, 22 Dec 2020 20:26:10 +0000 (UTC) Received: from localhost ([::1]:50624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kroET-0000RF-4l for larch@yhetil.org; Tue, 22 Dec 2020 15:26:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kroDP-0000Qv-5w for emacs-orgmode@gnu.org; Tue, 22 Dec 2020 15:25:03 -0500 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:35271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kroDN-0006a2-Ia; Tue, 22 Dec 2020 15:25:02 -0500 Received: by mail-qt1-x82b.google.com with SMTP id b9so9856750qtr.2; Tue, 22 Dec 2020 12:25:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:references:user-agent:from:to:cc:subject:in-reply-to :message-id:date:mime-version; bh=pS+AvScoa4Z76W6TDPS7Tp8guxT8OPWHBfqQOo7Arkg=; b=Xw8wkBnOfT1KAoIAwNZVvl6e2GRpVtNvllKKfLrbexWPCJ+be6Jgy+t3MIFe0Piwv9 GcvGNevUfYiKRsEPy6IcXFdHK616sgfbPs+VElClWsmVsbsW/7XjaaWXwrGaUsixr3sz nGVMCU/NrtnzyAVOGgGgtSxji0AZBqVU6lhxNOSSdkRVDm4lHPuSlgxrbADKYasD/6xm LcUfMz1W2RDLzsTtXuq9Q+BYAvPR1XeZueMpkCnDjtL2oaoKbVgJsjp3CZoWLuim/xlO ++tDNHX5xAUzhKpJeJ1NsrwRiHiwoYavTLCx4dcg4PiKDuPawbBRKVoRtAELD1eSiZxi A5AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=pS+AvScoa4Z76W6TDPS7Tp8guxT8OPWHBfqQOo7Arkg=; b=eLa/Kb9gs0NRnIysblDJ50V/ypQeotw+ihKmTpDzUU3cVEsD2Agwx0WzIH2qlXqp7z 8msjklbByk5qE/orhlLCcETexJ0vq3TQ0y+PefcovsAHCENyem8iWJM3qu/IPrnIvm8r atuSZH7Mv+C/SsZDasbZQnXaRZbmtnfWKlqJmIfiwLM69FvG+ngAq4edFTwdSngvsgYE KYQFL77uerdPEVmQZVxR8Iv+IYQCAetiSS6U6M19el30LPzKW4YYpqnVwfOJ4ZOuqppv 3TIeMaptM9Fwv/aB96hUr8rrIgptza5iRkKDBLwoU8BJeThjaON0rafdPXiTSlO3EytA MueQ== X-Gm-Message-State: AOAM530fnE8/5CDgAHDcXy8/V4hVigEr2AahkF3IsrkCS8KWPmHEZpEj hkEFmtwy9qL8HPPY86MkQ62jcyubQRQ= X-Google-Smtp-Source: ABdhPJz+U3du4VAKmCEBN3waW1S+CN0z7AoW4PcdToZ/ZnAmqvllsHkAHg4iwJGT8lchz2+HgMIE4A== X-Received: by 2002:ac8:5a8c:: with SMTP id c12mr22677395qtc.97.1608668700151; Tue, 22 Dec 2020 12:25:00 -0800 (PST) Received: from gusbrs-laptop (h93-n190-106-134.v8.fangio.net. [190.106.134.93]) by smtp.gmail.com with ESMTPSA id q32sm13669730qtb.0.2020.12.22.12.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Dec 2020 12:24:59 -0800 (PST) References: <87a6zkv3m2.fsf@gmail.com> <87zh7jfyal.fsf@gmail.com> <87r1rhk1qm.fsf@gnu.org> <87r1rhfsxb.fsf@gmail.com> <87eenh8mtk.fsf@gnu.org> <87v9ctlhma.fsf@gmail.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Gustavo Barros To: Bastien Subject: Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)] In-reply-to: <87v9ctlhma.fsf@gmail.com> Message-ID: <87pn31y4fc.fsf@gmail.com> Date: Tue, 22 Dec 2020 17:24:55 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=gusbrs.2016@gmail.com; helo=mail-qt1-x82b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marco Wahl , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.22 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=Xw8wkBnO; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2A9E3940149 X-Spam-Score: -1.22 X-Migadu-Scanner: scn1.migadu.com X-TUID: Wzvalp2nV45t On Tue, 22 Dec 2020 at 17:18, Gustavo Barros wrote: > > Anyway, what I came up is a slight variation from Marco's approach, > which may > be just general enough to be employed by Org. > > #+begin_src emacs-lisp > (add-hook 'visual-line-mode-hook #'my/visual-line-mode-hook-for-org) > > (defun my/visual-line-mode-hook-for-org () > (when (and (derived-mode-p 'org-mode) > visual-line-mode) > ;; Ensure 'visual-line-mode' does not shadow Org's line commands. > (local-set-key [remap move-beginning-of-line] nil) > (local-set-key [remap move-end-of-line] nil) > (local-set-key [remap kill-line] nil))) > #+end_src > > I've lightly tested this here and it seems to be working. > > WDYT? Damn! Sorry for the noise. It *doesn't* work, and disables Org's own remappings, of course. Just as I sent I realized I had something else enabled which was doing the actual job (my previous take on this thread). Back on the deadlock. Sorry again. Gustavo.