* bug#3874: 23.1.50; Overlays before-string and after-string does not obey buffer-visibility-spec
@ 2009-07-17 20:04 Lennart Borgman
2012-08-19 16:19 ` Chong Yidong
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2009-07-17 20:04 UTC (permalink / raw)
To: emacs-pretest-bug
To show this use this code
;;;; Eval this defun, place point at the end of the buffer and call
;;;; it. It inserts text and an overlay in the buffer.
;;;;
;;;; Play with the different buffer invis specs. It looks like the
;;;; overlay is not affected by the specs.
(defun my-test-inv ()
(interactive)
(let ((b "some invis parts")
(ovl (make-overlay (point) (point))))
(add-text-properties 5 10 '(face secondary-selection
font-lock-face highlight
invisible (my-invis))
b)
(insert ";;;;;;;;;;;; START OF INSERTED TEXT+OVERLAY
;;;;;;;;;;;;;;;;;;;;\n")
(insert ";; Text: " b "\n")
(move-overlay ovl (point-max) (point-max))
(overlay-put ovl 'before-string (propertize "Overlay: " 'face
'secondary-selection))
(overlay-put ovl 'after-string b)
))
;;;;;;; Test these, none affects the overlays `before-string' or `after-string':
;; (setq buffer-invisibility-spec '((my-invis . t) t))
;; (setq buffer-invisibility-spec '((my-invis) t))
;; (setq buffer-invisibility-spec '(t)) ;; This does not work, bug??
;; (setq buffer-invisibility-spec t)
;; (setq buffer-invisibility-spec '(other-invis))
;;;;;;; Delete overlays here:
;; (dolist (ovl (overlays-in (point-min) (point-max))) (delete-overlay ovl))
In GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
of 2009-06-30
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#3874: 23.1.50; Overlays before-string and after-string does not obey buffer-visibility-spec
2009-07-17 20:04 bug#3874: 23.1.50; Overlays before-string and after-string does not obey buffer-visibility-spec Lennart Borgman
@ 2012-08-19 16:19 ` Chong Yidong
2012-08-19 16:26 ` Lennart Borgman
0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2012-08-19 16:19 UTC (permalink / raw)
To: Lennart Borgman; +Cc: 3874
Lennart Borgman <lennart.borgman@gmail.com> writes:
> ;;;; Eval this defun, place point at the end of the buffer and call
> ;;;; it. It inserts text and an overlay in the buffer.
> ;;;;
> ;;;; Play with the different buffer invis specs. It looks like the
> ;;;; overlay is not affected by the specs.
Fixed in trunk. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#3874: 23.1.50; Overlays before-string and after-string does not obey buffer-visibility-spec
2012-08-19 16:19 ` Chong Yidong
@ 2012-08-19 16:26 ` Lennart Borgman
0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2012-08-19 16:26 UTC (permalink / raw)
To: Chong Yidong; +Cc: 3874
On Sun, Aug 19, 2012 at 6:19 PM, Chong Yidong <cyd@gnu.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> ;;;; Eval this defun, place point at the end of the buffer and call
>> ;;;; it. It inserts text and an overlay in the buffer.
>> ;;;;
>> ;;;; Play with the different buffer invis specs. It looks like the
>> ;;;; overlay is not affected by the specs.
>
> Fixed in trunk. Thanks.
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-19 16:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-17 20:04 bug#3874: 23.1.50; Overlays before-string and after-string does not obey buffer-visibility-spec Lennart Borgman
2012-08-19 16:19 ` Chong Yidong
2012-08-19 16:26 ` Lennart Borgman
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).