From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruno Barbier Subject: Re: Bug: org-catch-invisible-edits still allows some invisible edits [9.1.9] Date: Fri, 17 May 2019 22:31:14 +0200 Message-ID: <5cdf0c27.1c69fb81.73a24.9643@mx.google.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRigE-0008GX-1K for emacs-orgmode@gnu.org; Fri, 17 May 2019 15:38:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRiaF-0002Ve-3s for emacs-orgmode@gnu.org; Fri, 17 May 2019 15:32:00 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:38541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRiaE-0002H3-2t for emacs-orgmode@gnu.org; Fri, 17 May 2019 15:31:58 -0400 Received: by mail-wm1-x32b.google.com with SMTP id t5so6410906wmh.3 for ; Fri, 17 May 2019 12:31:53 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Vlad Shcherbina , emacs-orgmode@gnu.org Vlad Shcherbina writes: > Steps to reproduce: > 1. runemacs.exe -Q > 2. In the scratch buffer, M-x org-mode > 3. M-: (setq org-catch-invisible-edits 'show-and-error) > (could be also reproduced with 'smart) > 4. Replace the content of the scratch buffer with the following: > * hello > ** world > 5. Position point at the end of "hello", press Tab to collapse. > So it looks like this: > * hello... > 6. Press Del. > > Expected result: > Edit should be prevented because it deletes invisible character. > > Actual result: > Edit is performed without any warning. > By the way, the editor ends up in corrupt state because the content > of the buffer is now "* hello** world", but it is displayed as > "* hello..." and you can't uncollapse it by pressing Tab anymore. > > Version info: > GNU Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13 > Org mode version 9.1.9 (release_9.1.0-65-g5e4542 @ > c:/emacs/share/emacs/26.2/lips/org/) FWIW, I could reproduce using (bound to delete-forward-char). Using DEL (bound to org-delete-backard-char), everything works as expected. GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.4) of 2019-04-22 emacs -Q: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/) fully configured emacs: Org mode version 9.2.3 (release_9.2.3-10-g385955 @ ...) Bruno