GNU bug report logs - #75996
31.0.50; occur-edit-mode fails with context lines

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Paul Nelson <ultrono@HIDDEN>; merged with #79140; dated Sat, 1 Feb 2025 18:53:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 75996 79140. Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 75996 <at> debbugs.gnu.org:


Received: (at 75996) by debbugs.gnu.org; 6 Feb 2025 17:14:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 06 12:14:01 2025
Received: from localhost ([127.0.0.1]:59295 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tg5Rx-0000kU-5y
	for submit <at> debbugs.gnu.org; Thu, 06 Feb 2025 12:14:01 -0500
Received: from relay6-d.mail.gandi.net ([217.70.183.198]:55531)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1tg5Rt-0000k2-E7
 for 75996 <at> debbugs.gnu.org; Thu, 06 Feb 2025 12:13:58 -0500
Received: by mail.gandi.net (Postfix) with ESMTPSA id B728744273;
 Thu,  6 Feb 2025 17:13:50 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Paul Nelson <ultrono@HIDDEN>
Subject: Re: bug#75996: 31.0.50; occur-edit-mode fails with context lines
In-Reply-To: <uxsg7ty0ypmrap.fsf@HIDDEN>
Organization: LINKOV.NET
References: <uxsg7ty0ypmrap.fsf@HIDDEN>
Date: Thu, 06 Feb 2025 19:10:06 +0200
Message-ID: <875xlnuidh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: 0
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvieelhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeelieevuedtheeftdeguddtieelheekgeehveeghedtgfeuueeivddvhfevkeevgfenucffohhmrghinhepghhnuhdrohhrghenucfkphepledurdduvdelrdeliedrledtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrdeliedrledtpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopeejheelleeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepuhhlthhrohhnohesghhmrghilhdrtghomh
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 75996
Cc: 75996 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> => occur-after-change-function: Wrong type argument: markerp, nil
>
> The broader issue is that edits made to context lines (other than those
> with matches) don't propagate to the buffer after C-c C-c.
>
> I'd be happy to try to fix this, but wanted to check if it's a known
> issue.  I wasn't able to find to find it in the bug tracker.

Thanks for offering help.

In https://debbugs.gnu.org/75530#80 we have more problems
with occur-after-change-function.

We need to revert the workaround for bug#53419,
and find another solution to not allow RET to
insert newlines in the line numbers prefix.

occur-after-change-function already undoes newlines,
but only when RET is typed in the text lines,
not in the line numbers prefix.

The same question is for context lines that instead
of making context lines read-only all edits made
should propagate to the buffer immediately?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75996; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Feb 2025 18:52:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 01 13:52:18 2025
Received: from localhost ([127.0.0.1]:59990 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teIbK-0000pI-BO
	for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 13:52:18 -0500
Received: from lists.gnu.org ([2001:470:142::17]:35950)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1teIbH-0000p4-Po
 for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 13:52:16 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ultrono@HIDDEN>) id 1teIb9-00069i-Ix
 for bug-gnu-emacs@HIDDEN; Sat, 01 Feb 2025 13:52:07 -0500
Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ultrono@HIDDEN>) id 1teIb7-0005EK-OE
 for bug-gnu-emacs@HIDDEN; Sat, 01 Feb 2025 13:52:07 -0500
Received: by mail-lj1-x230.google.com with SMTP id
 38308e7fff4ca-305d843d925so25064681fa.2
 for <bug-gnu-emacs@HIDDEN>; Sat, 01 Feb 2025 10:52:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738435922; x=1739040722; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=Q6YGnUSd9GGqODqGzKM1bbylb+k2DUstQs6rRMy6HyE=;
 b=UowJpx92FAm31dB/RJ8m2xKVOXQ1fLUyngNukOUuZbOyWXx1cvtrwI9sc9SSuAq8kr
 F8KrkR7qnkGhziE1LRkJ8PzRawfITyNUsMZ+dwgYjgGxW6QDBDrRNbR+jKjJ/HpP8KJK
 S77AairYM54QMK9MXaPqgNdgAwJYMhNoM5zimFz/IP79U0DAjE/jJUhvGARteOcSKcPd
 wlCSibC7leqVcUeNXOHpl/ZklE44he1tRgWVWn6moVqGpb7EBj0EEFqGtq7v65kglFok
 ygqtoVk9OiJ3hFbEAkATSrIb5Ll5oTO9dovZmPzAp8k2OGKvJrsXUK/WxXuw6ykHbwW/
 TnDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738435922; x=1739040722;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=Q6YGnUSd9GGqODqGzKM1bbylb+k2DUstQs6rRMy6HyE=;
 b=PA22d/LZbRSVD5M80kvh2dB8mw4/bBZVfeR5dBnHhbwdE54lpARY4/wnnPW/GJ5paE
 p46lLissBgXxDt1gEDEU3b4SpFM6OGiQrDuRFJ41yeeBEm4NxUSRujR8a0KdkxjyrGtC
 lUZ8jR8oJy+yLvkPADyknt24aX8vrVLtjj41Mdz3nOWfxUldFbRwYv3uuLMoNxElsEcy
 RwDNq+kK+w7lzs64u0kje2H+qqens1pZoiuIOWkDgUCp8A4u9I5N/rBKOWNuZ+Sboh9O
 KIKmTZQTGdR6eI0eUPDbkPJdZ9rcqV7+f9Lk/umo/lT3sX0JrPT5C/AnULDEEmpuabe3
 UtkQ==
X-Gm-Message-State: AOJu0YwYROWskbhB2/e8vxDhIBAbT8S+PEDXyAfi+gVRRtEDT4jMK6TV
 EAtUbyn0xFziOcWmZl8XrctCUaCcq6TfhnAw6GauoVV75NW2/PAuhCKaRUuA
X-Gm-Gg: ASbGncvGoeuOhBC0BIqjmYZ8EjGFjLts5m3XybRBkTTkLrBkW1RCHwfXA55e94BKbie
 6ZxzXzPonwY0Osn5d6rHqZ1vqdu75Au3D8l8QG8sfDuajhY496Ov0GD9UU6KtkegdkCnNE/0fpb
 8B3kPaW16GkL7qnRVUzo/uldiLk4W6dbEOSGbNwd9XDksUqd6Qq27UutSwv6WQVGw8RwgRiBPx5
 4bwtR9BH9O+zyR4mqiXGBm61Mmlq6T/zKGINbR+LNoFJb/epr6BoP9Pmz/nwPMswxtX+q3J4T6c
 gVOXGm7F5ZE+VfUXzmKyE9VVHgHRxX37+hqZpxeGnkwb4bZ+jk3zrbLD
X-Google-Smtp-Source: AGHT+IHcMc0cHe6NnYUQ48em6HvQocg6IKycDqjLATby8KuGebNlZbuvUJI/skoy3kXrqISGtWNk7Q==
X-Received: by 2002:a05:651c:b14:b0:307:2aea:5594 with SMTP id
 38308e7fff4ca-30796857105mr62584101fa.18.1738435921717; 
 Sat, 01 Feb 2025 10:52:01 -0800 (PST)
Received: from localhost (0x573d6719.static.cust.fastspeed.dk. [87.61.103.25])
 by smtp.gmail.com with UTF8SMTPSA id
 38308e7fff4ca-307a30889d9sm9032621fa.32.2025.02.01.10.51.59
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 01 Feb 2025 10:52:00 -0800 (PST)
From: Paul Nelson <ultrono@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; occur-edit-mode fails with context lines
X-Debbugs-Cc: 
Date: Sat, 01 Feb 2025 19:51:58 +0100
Message-ID: <uxsg7ty0ypmrap.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::230;
 envelope-from=ultrono@HIDDEN; helo=mail-lj1-x230.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Steps to reproduce:

1. emacs -Q

2. Create a buffer with two lines, such as:

a
b

3. From the starting of the buffer, search for "a" (C-s a) and run occur
with one line of context (C-1 M-s o).

4. In the *Occur* buffer, press e to edit occur-edit-mode.

5. Try to edit the context line containing "b".

=> occur-after-change-function: Wrong type argument: markerp, nil

The broader issue is that edits made to context lines (other than those
with matches) don't propagate to the buffer after C-c C-c.

I'd be happy to try to fix this, but wanted to check if it's a known
issue.  I wasn't able to find to find it in the bug tracker.


In GNU Emacs 31.0.50 (build 6, aarch64-apple-darwin24.1.0, NS
 appkit-2575.20 Version 15.1.1 (Build 24B91)) of 2024-12-19 built on
 d51735
Repository revision: c19dd8e9d6c54080426623129a824e5bb2fcf7be
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2575
System Description:  macOS 15.1.1

Configured using:
 'configure --with-ns --with-native-compilation --with-tree-sitter
 --with-gif --with-png --with-jpeg --with-rsvg --with-tiff
 --with-imagemagick --with-x-toolkit=gtk3 --with-xwidgets'

Configured features:
ACL DBUS GLIB GNUTLS IMAGEMAGICK LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XIM XWIDGETS ZLIB

Important settings:
  value of $LC_CTYPE: UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: ELisp/d

Minor modes in effect:
  outline-minor-mode: t
  windmove-mode: t
  recentf-mode: t
  repeat-mode: t
  display-time-mode: t
  save-place-mode: t
  global-auto-revert-mode: t
  minibuffer-depth-indicate-mode: t
  electric-pair-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  tab-bar-history-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(cus-edit cus-start cus-load foldout noutline outline pp shadow sort
mail-extr compile comint ansi-osc ansi-color ring emacsbug message
mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec
password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
windmove shortdoc text-property-search help-fns radix-tree time-date
misearch multi-isearch pcase recentf tree-widget wid-edit repeat time
saveplace autorevert filenotify mb-depth elec-pair comp comp-cstr
warnings icons subr-x comp-run comp-common rx edmacro kmacro byte-opt
cl-extra help-mode use-package-ensure cl-seq use-package-bind-key
bind-key use-package-core bytecomp byte-compile cl-macs gv vc-git
diff-mode track-changes easy-mmode files-x vc-dispatcher cl-loaddefs
cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode 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 lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads xwidget-internal dbusbind
kqueue cocoa ns lcms2 multi-tty make-network-process tty-child-frames
native-compile emacs)

Memory information:
((conses 16 205089 34367) (symbols 48 22794 7) (strings 32 56777 1968)
 (string-bytes 1 1381256) (vectors 16 20937)
 (vector-slots 8 262566 14647) (floats 8 120 26) (intervals 56 771 0)
 (buffers 992 19))




Acknowledgement sent to Paul Nelson <ultrono@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#75996; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 8 Aug 2025 06:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.