GNU bug report logs -
#44005
28.0.50; Deleting region doesn't work
Previous Next
Reported by: Parham Doustdar <parham90 <at> gmail.com>
Date: Thu, 15 Oct 2020 07:51:02 UTC
Severity: normal
Tags: moreinfo, notabug
Found in version 28.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44005 in the body.
You can then email your comments to 44005 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 07:51:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Parham Doustdar <parham90 <at> gmail.com>:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org.
(Thu, 15 Oct 2020 07:51:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
Here are the steps to reproduce:
1. Create an empty buffer in any major mode, like fundamental
2. Type a character, like `a'
3. Select the entire buffer using `C-x h' and then press <DEL>
4. You will see " Beginning of buffer" in the echo area, and nothing will
be deleted.
In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60
Version 10.15.7 (Build 19H2))
of 2020-10-14 built on C02Y80D7JHD4
Repository revision: 4bf9bb56b56b4acacd5d9430a19db32291bd078b
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description: Mac OS X 10.15.7
Configured using:
'configure --disable-dependency-tracking --disable-silent-rules
--enable-locallisppath=/usr/local/share/emacs/site-lisp
--infodir=/usr/local/Cellar/emacs-plus <at> 28/28.0.50/share/info/emacs
--prefix=/usr/local/Cellar/emacs-plus <at> 28/28.0.50 --with-xml2
--with-gnutls --with-dbus --with-imagemagick --with-modules --with-rsvg
--without-pop --with-ns --disable-ns-self-contained'
Configured features:
JPEG TIFF PNG RSVG IMAGEMAGICK DBUS GLIB NOTIFY KQUEUE ACL GNUTLS
LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2
Important settings:
value of $LC_ALL: C
value of $LC_CTYPE: UTF-8
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
global-voice-lock-mode: t
voice-lock-mode: t
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
/Users/pdoustdar/src/emacspeak/lisp/tetris hides
/usr/local/Cellar/emacs-plus <at> 28/28.0.50/share/emacs/28.0.50/lisp/play/tetris
Features:
(shadow sort mail-extr emacsbug emacspeak-message message rmc puny
emacspeak-dired locate dired dired-loaddefs rfc822 mml mml-sec
emacspeak-epa epa derived epg epg-config gnus-util emacspeak-rmail
rmailsort emacspeak-desktop desktop frameset rmail rmail-loaddefs
auth-source eieio eieio-core eieio-loaddefs password-cache json map
text-property-search time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils emacspeak-widget wid-edit
emacspeak-tab-bar emacspeak-buff-menu emacspeak-advice emacspeak-cedet
cl-macs emacspeak-setup mac-voices emacspeak emacspeak-preamble
emacspeak-sounds emacspeak-speak emacspeak-keymap sox-gen
emacspeak-pronounce voice-setup cl-extra help-mode easymenu seq
dectalk-voices acss-structure emacspeak-load-path byte-opt bytecomp
byte-compile cconv cl-seq subr-x cus-load dtk-speak dtk-unicode advice
dtk-interp cl-loaddefs cl-lib gv tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame minibuffer cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads dbusbind
kqueue cocoa ns lcms2 multi-tty make-network-process emacs)
Memory information:
((conses 16 122800 11810)
(symbols 48 9949 1)
(strings 32 28427 3038)
(string-bytes 1 920771)
(vectors 16 20743)
(vector-slots 8 234751 11153)
(floats 8 76 18)
(intervals 56 245 0)
(buffers 992 13))
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 08:00:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 44005 <at> debbugs.gnu.org (full text, mbox):
Parham Doustdar <parham90 <at> gmail.com> writes:
> Here are the steps to reproduce:
> 1. Create an empty buffer in any major mode, like fundamental
> 2. Type a character, like `a'
> 3. Select the entire buffer using `C-x h' and then press <DEL>
> 4. You will see " Beginning of buffer" in the echo area, and nothing will be deleted.
I'm unable to reproduce this bug. Do you get this when starting Emacs
with -Q?
It sounds like you have some sort of extension that makes buffers
read-only installed.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Thu, 15 Oct 2020 08:00:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 11:08:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 44005 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi there,
Thanks for trying to reproduce and replying so fast!
Yeah, I ran with `-q` and the same thing is happening. The buffer isn't
read-only, though. Deleting without the region active works. Killing the
region with C-w works. It's only deleting that doesn't work.
:-(
If there's any way that I could gather more information on this, let me
know.
Thanks!
On Thu, Oct 15, 2020 at 9:59 AM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Parham Doustdar <parham90 <at> gmail.com> writes:
>
> > Here are the steps to reproduce:
> > 1. Create an empty buffer in any major mode, like fundamental
> > 2. Type a character, like `a'
> > 3. Select the entire buffer using `C-x h' and then press <DEL>
> > 4. You will see " Beginning of buffer" in the echo area, and nothing
> will be deleted.
>
> I'm unable to reproduce this bug. Do you get this when starting Emacs
> with -Q?
>
> It sounds like you have some sort of extension that makes buffers
> read-only installed.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 11:18:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 44005 <at> debbugs.gnu.org (full text, mbox):
Parham Doustdar <parham90 <at> gmail.com> writes:
> Thanks for trying to reproduce and replying so fast!
> Yeah, I ran with `-q` and the same thing is happening. The buffer isn't read-only,
> though. Deleting without the region active works. Killing the region with C-w
> works. It's only deleting that doesn't work.
> :-(
Could you try with -Q instead of -q?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 11:23:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 44005 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi there,
Yes, tried that too. Same results.
On Thu, Oct 15, 2020 at 1:17 PM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Parham Doustdar <parham90 <at> gmail.com> writes:
>
> > Thanks for trying to reproduce and replying so fast!
> > Yeah, I ran with `-q` and the same thing is happening. The buffer isn't
> read-only,
> > though. Deleting without the region active works. Killing the region
> with C-w
> > works. It's only deleting that doesn't work.
> > :-(
>
> Could you try with -Q instead of -q?
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 12:22:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 44005 <at> debbugs.gnu.org (full text, mbox):
Just a radical thought. Try the steps on a bootstrap build.
make bootstrap
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 13:17:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 44005 <at> debbugs.gnu.org (full text, mbox):
Parham Doustdar <parham90 <at> gmail.com> writes:
> On Thu, Oct 15, 2020 at 1:17 PM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>> Could you try with -Q instead of -q?
> Hi there,
> Yes, tried that too. Same results.
Also let's see what command runs your "<DEL>" key. Please do:
1. emacs -Q
2. C-h k <DEL>
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 13:38:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 44005 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Parham Doustdar <parham90 <at> gmail.com> writes:
>
>> Here are the steps to reproduce:
>> 1. Create an empty buffer in any major mode, like fundamental
>> 2. Type a character, like `a'
>> 3. Select the entire buffer using `C-x h' and then press <DEL>
>> 4. You will see " Beginning of buffer" in the echo area, and nothing will be deleted.
>
> I'm unable to reproduce this bug. Do you get this when starting Emacs
> with -Q?
>
> It sounds like you have some sort of extension that makes buffers
> read-only installed.
Why read-only? Judging from the "Beginning of buffer" message some
scroll command was invoked.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 14:14:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 44005 <at> debbugs.gnu.org (full text, mbox):
> From: Parham Doustdar <parham90 <at> gmail.com>
> Date: Thu, 15 Oct 2020 13:07:16 +0200
> Cc: 44005 <at> debbugs.gnu.org
>
> Thanks for trying to reproduce and replying so fast!
> Yeah, I ran with `-q` and the same thing is happening. The buffer isn't read-only, though. Deleting without the
> region active works. Killing the region with C-w works. It's only deleting that doesn't work.
> :-(
> If there's any way that I could gather more information on this, let me know.
In that case, this is perhaps macOS specific?
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 14:30:03 GMT)
Full text and
rfc822 format available.
Message #34 received at 44005 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> In that case, this is perhaps macOS specific?
I tried it on Macos, and was unable to reproduce the problem.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 14:42:02 GMT)
Full text and
rfc822 format available.
Message #37 received at 44005 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi there,
<DEL> runs `delete-backward-char'.
However, I had a thought. I'm running Emacs with Emacspeak, which advices
some functions to act as a screen reader and speak the deleted character. I
can't verify that Emacspeak isn't causing this error, although reading the
source code of the advice, all i see is a call to `(preceding-char)'.
Is there a way to follow the execution and see what that scrolling function
is?
Another thing that I noticed is that when I do `C-x h' my point is in the
very beginning of the buffer. Not sure if it has always been the case.
So, when I type `a ' (that is, a and then a space) and press `C-x h',
`(point)' returns 1, `(region-beginning)' returns 1, and `(region-end)'
returns 3.
I hope this is all useful.
Best,
Parham
On Thu, Oct 15, 2020 at 4:29 PM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > In that case, this is perhaps macOS specific?
>
> I tried it on Macos, and was unable to reproduce the problem.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 19:30:02 GMT)
Full text and
rfc822 format available.
Message #40 received at 44005 <at> debbugs.gnu.org (full text, mbox):
Parham Doustdar <parham90 <at> gmail.com> writes:
> Hi there,
> <DEL> runs `delete-backward-char'.
What is the value of the `delete-active-region` variable?
I can reproduce your issue by these steps:
1. emacs -Q
2. M-: (setq delete-active-region nil)
3. C-x h
4. M-x delete-backward-char
But if I skip step 2 the selected text is deleted.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Thu, 15 Oct 2020 19:52:01 GMT)
Full text and
rfc822 format available.
Message #43 received at 44005 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
Reading the documentation for the variable you just pointed to made me
realize that maybe transient-mode is somehow being turned off.
I did `emacs -Q`, and checked the value of `transient-mark-mode' in the
customize interface. It says that the value was "modified outside
customize".
So, something is setting this variable to nil, even though the standard
value is `t'.
No idea how this could be caused (maybe it's caused by the emacs-plus
homebrew formula I'm using?) but at least I can get rid of the weird
behavior by turning on transient mark mode now.
Thanks a lot everyone for all the help. I really appreciate it.
Best,
Parham
On Thu, Oct 15, 2020 at 9:29 PM Andrii Kolomoiets <andreyk.mad <at> gmail.com>
wrote:
> Parham Doustdar <parham90 <at> gmail.com> writes:
>
> > Hi there,
> > <DEL> runs `delete-backward-char'.
>
> What is the value of the `delete-active-region` variable?
>
> I can reproduce your issue by these steps:
> 1. emacs -Q
> 2. M-: (setq delete-active-region nil)
> 3. C-x h
> 4. M-x delete-backward-char
>
> But if I skip step 2 the selected text is deleted.
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#44005; Package
emacs.
(Fri, 16 Oct 2020 05:02:01 GMT)
Full text and
rfc822 format available.
Message #46 received at 44005 <at> debbugs.gnu.org (full text, mbox):
Parham Doustdar <parham90 <at> gmail.com> writes:
> Thanks a lot everyone for all the help. I really appreciate it.
No problem; closing the bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) notabug.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Fri, 16 Oct 2020 05:03:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
44005 <at> debbugs.gnu.org and Parham Doustdar <parham90 <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Fri, 16 Oct 2020 05:03:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org.
(Fri, 13 Nov 2020 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.