emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vlad Shcherbina <vlad.shcherbina@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: org-catch-invisible-edits still allows some invisible edits [9.1.9]
Date: Sun, 12 May 2019 20:41:27 +0300	[thread overview]
Message-ID: <CAANMMAqD1tUFHhMBT-1pipS=gfDcPkBkLRDA3yoyB3miqxk3TQ@mail.gmail.com> (raw)

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/)

             reply	other threads:[~2019-05-12 17:41 UTC|newest]

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

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='CAANMMAqD1tUFHhMBT-1pipS=gfDcPkBkLRDA3yoyB3miqxk3TQ@mail.gmail.com' \
    --to=vlad.shcherbina@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).