summaryrefslogtreecommitdiff
path: root/lisp/org
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-05-24 22:36:19 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2023-05-24 23:01:10 +0200
commitaf4791b5706f494d73fd00c391ff867fb2c5a06d (patch)
tree42183652393aeae04918f544fcc9369fcb1161bb /lisp/org
parente3987d7e1a1993eb5ff0ac10b2cffcb92dd2a00c (diff)
Fix apparently wrong `delete` and `delq` value discards (bug#61730)
* lisp/startup.el (normal-top-level): Update process-environment in case the DISPLAY variable comes first. Also stop iterating over initial-environment once the first DISPLAY is found. * lisp/allout.el (allout-get-configvar-values): * lisp/org/org.el (org-display-inline-remove-overlay): * lisp/progmodes/gdb-mi.el (gdb-get-location): * lisp/progmodes/idlwave.el (idlwave-convert-xml-clean-routine-aliases) (idlwave-convert-xml-clean-sysvar-aliases): * lisp/textmodes/reftex.el (reftex-ref-style-toggle): Update the base variable after performing a destructive deletion, where it was obvious that this was intended.
Diffstat (limited to 'lisp/org')
-rw-r--r--lisp/org/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/org.el b/lisp/org/org.el
index d3e14fecec3..e42704778bd 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -16422,7 +16422,7 @@ buffer boundaries with possible narrowing."
(defun org-display-inline-remove-overlay (ov after _beg _end &optional _len)
"Remove inline-display overlay if a corresponding region is modified."
(when (and ov after)
- (delete ov org-inline-image-overlays)
+ (setq org-inline-image-overlays (delete ov org-inline-image-overlays))
;; Clear image from cache to avoid image not updating upon
;; changing on disk. See Emacs bug#59902.
(when (overlay-get ov 'org-image-overlay)