From: Joakim Verona Date: Mon, 8 Apr 2013 22:21:04 +0000 (+0200) Subject: xdisp fix X-Git-Tag: emacs-25.0.90~2930 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e25d341cec1ebaee2b96d627d99d4d7b92dee6b0;p=emacs.git xdisp fix --- e25d341cec1ebaee2b96d627d99d4d7b92dee6b0 diff --cc lisp/emacs-lisp/edebug.el index 41b02da82fe,867f079ce5f..e91e0408481 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@@ -2864,13 -2794,12 +2850,12 @@@ MSG is printed after `::::} '. ) (if (and (eq edebug-execution-mode 'go) - (not (memq arg-mode '(after error)))) + (not (memq edebug-arg-mode '(after error)))) (message "Break")) - (setq buffer-read-only t) (setq signal-hook-function nil) - (edebug-mode) + (edebug-mode 1) (unwind-protect (recursive-edit) ; <<<<<<<<<< Recursive edit @@@ -4214,10 -4146,11 +4210,10 @@@ reinstrument it. It is removed when you hit any char." ;; This seems not to work with Emacs 18.59. It undoes too far. (interactive) - (let ((buffer-read-only nil)) + (let ((inhibit-read-only t)) (undo-boundary) (edebug-display-freq-count) - (setq unread-command-events - (append unread-command-events (list (read-event)))) + (setq unread-command-events (append unread-command-events (read-event))) ;; Yuck! This doesn't seem to work at all for me. (undo))) diff --cc src/Makefile.in index 93d65867fa7,c6a067a1ade..ac09d41858d --- a/src/Makefile.in +++ b/src/Makefile.in @@@ -325,9 -316,8 +325,9 @@@ ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \ $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \ + $(WEBKIT_CFLAGS) $(CLUTTER_CFLAGS) $(GIR_CFLAGS) \ $(SETTINGS_CFLAGS) $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS) \ - $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) $(PROFILING_CFLAGS) \ + $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) \ $(LIBGNUTLS_CFLAGS) \ $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS) diff --cc src/xdisp.c index bd68b286f4e,41214880a56..f8a9fd57dc1 --- a/src/xdisp.c +++ b/src/xdisp.c @@@ -5018,19 -5006,6 +5018,19 @@@ handle_single_display_spec (struct it * *position = it->position = start_pos; retval = 1 + (it->area == TEXT_AREA); } +#ifdef HAVE_XWIDGETS + else if (XWIDGETP(value)) + { + //printf("handle_single_display_spec: im an xwidget!!\n"); + it->what = IT_XWIDGET; + it->method = GET_FROM_XWIDGET; + it->position = start_pos; - it->object = NILP (object) ? it->w->buffer : object; ++ it->object = NILP (object) ? it->w->contents : object; + *position = start_pos; + + it->xwidget = lookup_xwidget(value); + } +#endif #ifdef HAVE_WINDOW_SYSTEM else {