unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44005: 28.0.50; Deleting region doesn't work
@ 2020-10-15  7:50 Parham Doustdar
  2020-10-15  7:59 ` Lars Ingebrigtsen
  2020-10-15 12:21 ` Pankaj Jangid
  0 siblings, 2 replies; 14+ messages in thread
From: Parham Doustdar @ 2020-10-15  7:50 UTC (permalink / raw)
  To: 44005

[-- Attachment #1: Type: text/plain, Size: 3958 bytes --]

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@28/28.0.50/share/info/emacs
 --prefix=/usr/local/Cellar/emacs-plus@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@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))

[-- Attachment #2: Type: text/html, Size: 4373 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15  7:50 bug#44005: 28.0.50; Deleting region doesn't work Parham Doustdar
@ 2020-10-15  7:59 ` Lars Ingebrigtsen
  2020-10-15 11:07   ` Parham Doustdar
  2020-10-15 13:37   ` Andrii Kolomoiets
  2020-10-15 12:21 ` Pankaj Jangid
  1 sibling, 2 replies; 14+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-15  7:59 UTC (permalink / raw)
  To: Parham Doustdar; +Cc: 44005

Parham Doustdar <parham90@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





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15  7:59 ` Lars Ingebrigtsen
@ 2020-10-15 11:07   ` Parham Doustdar
  2020-10-15 11:16     ` Lars Ingebrigtsen
  2020-10-15 14:13     ` Eli Zaretskii
  2020-10-15 13:37   ` Andrii Kolomoiets
  1 sibling, 2 replies; 14+ messages in thread
From: Parham Doustdar @ 2020-10-15 11:07 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 44005

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

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@gnus.org> wrote:

> Parham Doustdar <parham90@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
>

[-- Attachment #2: Type: text/html, Size: 1646 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15 11:07   ` Parham Doustdar
@ 2020-10-15 11:16     ` Lars Ingebrigtsen
  2020-10-15 11:22       ` Parham Doustdar
  2020-10-15 14:13     ` Eli Zaretskii
  1 sibling, 1 reply; 14+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-15 11:16 UTC (permalink / raw)
  To: Parham Doustdar; +Cc: 44005

Parham Doustdar <parham90@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





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15 11:16     ` Lars Ingebrigtsen
@ 2020-10-15 11:22       ` Parham Doustdar
  2020-10-15 13:16         ` Andrii Kolomoiets
  0 siblings, 1 reply; 14+ messages in thread
From: Parham Doustdar @ 2020-10-15 11:22 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 44005

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

Hi there,
Yes, tried that too. Same results.

On Thu, Oct 15, 2020 at 1:17 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Parham Doustdar <parham90@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
>

[-- Attachment #2: Type: text/html, Size: 1097 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15  7:50 bug#44005: 28.0.50; Deleting region doesn't work Parham Doustdar
  2020-10-15  7:59 ` Lars Ingebrigtsen
@ 2020-10-15 12:21 ` Pankaj Jangid
  1 sibling, 0 replies; 14+ messages in thread
From: Pankaj Jangid @ 2020-10-15 12:21 UTC (permalink / raw)
  To: Parham Doustdar; +Cc: 44005

Just a radical thought. Try the steps on a bootstrap build.

make bootstrap





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15 11:22       ` Parham Doustdar
@ 2020-10-15 13:16         ` Andrii Kolomoiets
  0 siblings, 0 replies; 14+ messages in thread
From: Andrii Kolomoiets @ 2020-10-15 13:16 UTC (permalink / raw)
  To: Parham Doustdar; +Cc: Lars Ingebrigtsen, 44005

Parham Doustdar <parham90@gmail.com> writes:

> On Thu, Oct 15, 2020 at 1:17 PM Lars Ingebrigtsen <larsi@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>





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15  7:59 ` Lars Ingebrigtsen
  2020-10-15 11:07   ` Parham Doustdar
@ 2020-10-15 13:37   ` Andrii Kolomoiets
  1 sibling, 0 replies; 14+ messages in thread
From: Andrii Kolomoiets @ 2020-10-15 13:37 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 44005, Parham Doustdar

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Parham Doustdar <parham90@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.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15 11:07   ` Parham Doustdar
  2020-10-15 11:16     ` Lars Ingebrigtsen
@ 2020-10-15 14:13     ` Eli Zaretskii
  2020-10-15 14:29       ` Lars Ingebrigtsen
  1 sibling, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2020-10-15 14:13 UTC (permalink / raw)
  To: Parham Doustdar; +Cc: larsi, 44005

> From: Parham Doustdar <parham90@gmail.com>
> Date: Thu, 15 Oct 2020 13:07:16 +0200
> Cc: 44005@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?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15 14:13     ` Eli Zaretskii
@ 2020-10-15 14:29       ` Lars Ingebrigtsen
  2020-10-15 14:41         ` Parham Doustdar
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-15 14:29 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 44005, Parham Doustdar

Eli Zaretskii <eliz@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





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15 14:29       ` Lars Ingebrigtsen
@ 2020-10-15 14:41         ` Parham Doustdar
  2020-10-15 19:29           ` Andrii Kolomoiets
  0 siblings, 1 reply; 14+ messages in thread
From: Parham Doustdar @ 2020-10-15 14:41 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 44005

[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]

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@gnus.org> wrote:

> Eli Zaretskii <eliz@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
>

[-- Attachment #2: Type: text/html, Size: 1672 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15 14:41         ` Parham Doustdar
@ 2020-10-15 19:29           ` Andrii Kolomoiets
  2020-10-15 19:51             ` Parham Doustdar
  0 siblings, 1 reply; 14+ messages in thread
From: Andrii Kolomoiets @ 2020-10-15 19:29 UTC (permalink / raw)
  To: Parham Doustdar; +Cc: Lars Ingebrigtsen, 44005

Parham Doustdar <parham90@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.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15 19:29           ` Andrii Kolomoiets
@ 2020-10-15 19:51             ` Parham Doustdar
  2020-10-16  5:01               ` Lars Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Parham Doustdar @ 2020-10-15 19:51 UTC (permalink / raw)
  To: Andrii Kolomoiets; +Cc: Lars Ingebrigtsen, 44005

[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]

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@gmail.com>
wrote:

> Parham Doustdar <parham90@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.
>

[-- Attachment #2: Type: text/html, Size: 1584 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#44005: 28.0.50; Deleting region doesn't work
  2020-10-15 19:51             ` Parham Doustdar
@ 2020-10-16  5:01               ` Lars Ingebrigtsen
  0 siblings, 0 replies; 14+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-16  5:01 UTC (permalink / raw)
  To: Parham Doustdar; +Cc: 44005, Andrii Kolomoiets

Parham Doustdar <parham90@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





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-10-16  5:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15  7:50 bug#44005: 28.0.50; Deleting region doesn't work Parham Doustdar
2020-10-15  7:59 ` Lars Ingebrigtsen
2020-10-15 11:07   ` Parham Doustdar
2020-10-15 11:16     ` Lars Ingebrigtsen
2020-10-15 11:22       ` Parham Doustdar
2020-10-15 13:16         ` Andrii Kolomoiets
2020-10-15 14:13     ` Eli Zaretskii
2020-10-15 14:29       ` Lars Ingebrigtsen
2020-10-15 14:41         ` Parham Doustdar
2020-10-15 19:29           ` Andrii Kolomoiets
2020-10-15 19:51             ` Parham Doustdar
2020-10-16  5:01               ` Lars Ingebrigtsen
2020-10-15 13:37   ` Andrii Kolomoiets
2020-10-15 12:21 ` Pankaj Jangid

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).