emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bruno Barbier <brubar.cs@gmail.com>
To: Vlad Shcherbina <vlad.shcherbina@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Bug: org-catch-invisible-edits still allows some invisible edits [9.1.9]
Date: Fri, 17 May 2019 22:31:14 +0200	[thread overview]
Message-ID: <5cdf0c27.1c69fb81.73a24.9643@mx.google.com> (raw)
In-Reply-To: <CAANMMAqD1tUFHhMBT-1pipS=gfDcPkBkLRDA3yoyB3miqxk3TQ@mail.gmail.com>



Vlad Shcherbina <vlad.shcherbina@gmail.com> 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<point>...
> 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 <deletechar> (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

      reply	other threads:[~2019-05-17 19:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-12 17:41 Bug: org-catch-invisible-edits still allows some invisible edits [9.1.9] Vlad Shcherbina
2019-05-17 20:31 ` Bruno Barbier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5cdf0c27.1c69fb81.73a24.9643@mx.google.com \
    --to=brubar.cs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=vlad.shcherbina@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).