From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vlad Shcherbina Subject: Bug: org-catch-invisible-edits still allows some invisible edits [9.1.9] Date: Sun, 12 May 2019 20:41:27 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPsTl-0000wo-57 for emacs-orgmode@gnu.org; Sun, 12 May 2019 13:41:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPsTk-0001mx-8c for emacs-orgmode@gnu.org; Sun, 12 May 2019 13:41:41 -0400 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]:43489) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPsTk-0001m3-1v for emacs-orgmode@gnu.org; Sun, 12 May 2019 13:41:40 -0400 Received: by mail-io1-xd30.google.com with SMTP id v7so8249914iob.10 for ; Sun, 12 May 2019 10:41:39 -0700 (PDT) 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: emacs-orgmode@gnu.org 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/)