all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] widget-field-overlay becomes wrong
@ 2004-06-30  9:46 Lars Hansen
  2004-07-01 17:14 ` Richard Stallman
  0 siblings, 1 reply; 27+ messages in thread
From: Lars Hansen @ 2004-06-30  9:46 UTC (permalink / raw)


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

One for the bug-list :-)

When a widget-field-overlay goes all the way to the next or previous 
widget, it becomes wrong when that next or previous widget is changed.
A test case is attached.

Richard has written a comment in widget-default-value-set which probably 
is about the same thing.

I don't know how to fix this bug, it seems quite tricky.
Of cause a work-around is to never have a widget field adjacent to 
another widget.


[-- Attachment #2: widget-field-overlay-bug.el --]
[-- Type: text/plain, Size: 1169 bytes --]

;-----------------------------------------------------------------------------------------------
;  widget-field-overlay-bug.el
;-----------------------------------------------------------------------------------------------

(require 'wid-edit)

(defvar w1 nil)
(defvar w2 nil)
(defvar w3 nil)

(defun widget-field-overlay-bug ()
  (interactive)
  (switch-to-buffer "*test*")
  (setq w1 (widget-create 'editable-field :format "%v" :size 3 :value "xxx"))
  (setq w2 (widget-create 'editable-field :format " %v " :size 3 :value "foo"))
  (setq w3 (widget-create 'editable-field :format "%v" :size 3 :value "yyy"))
  (widget-setup)
  (message "w1: %s\nw2: %s\nw3: %s"
           (widget-get w1 :field-overlay)
           (widget-get w2 :field-overlay)
           (widget-get w3 :field-overlay))
  (when (y-or-n-p "Continue ")
    (widget-value-set w2 "bar")
    (widget-setup)
    ;; Markers are OK, but overlay of w1 and w3 are wrong!
    (message "w1: %s\nw2: %s\nw3: %s"
             (widget-get w1 :field-overlay)
             (widget-get w2 :field-overlay)
             (widget-get w3 :field-overlay))
    (display-buffer "*Messages*")
    (goto-char (point-max))))

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

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

end of thread, other threads:[~2004-08-05  6:22 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-30  9:46 [BUG] widget-field-overlay becomes wrong Lars Hansen
2004-07-01 17:14 ` Richard Stallman
2004-07-01 20:08   ` Lars Hansen
2004-07-02  6:02     ` Lars Hansen
2004-07-03 18:20       ` Richard Stallman
2004-07-04  9:47         ` Lars Hansen
2004-07-07 16:02   ` Per Abrahamsen
2004-07-08 12:30     ` Lars Hansen
2004-07-08 23:18     ` Richard Stallman
2004-07-09 21:10     ` Lars Hansen
2004-07-13 15:00       ` Per Abrahamsen
2004-07-14  7:00         ` Lars Hansen
2004-07-19  7:31           ` Per Abrahamsen
2004-07-19 18:44             ` Richard Stallman
2004-07-23 16:24               ` Per Abrahamsen
2004-07-24 16:28                 ` Lars Hansen
2004-08-01 15:18                   ` Per Abrahamsen
2004-08-02  9:08                     ` Lars Hansen
2004-08-02 12:21                       ` Per Abrahamsen
2004-07-24 19:43                 ` Richard Stallman
2004-08-01 15:33                   ` Per Abrahamsen
2004-08-02  9:07                     ` Lars Hansen
2004-08-03 19:37                       ` Richard Stallman
2004-08-03 21:18                         ` Lars Hansen
2004-08-03 21:25                           ` Lars Hansen
2004-08-05  4:22                             ` Richard Stallman
2004-08-05  6:22                               ` Lars Hansen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.