emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/descr-text.el


From: Juri Linkov
Subject: [Emacs-diffs] Changes to emacs/lisp/descr-text.el
Date: Thu, 16 Dec 2004 09:07:51 -0500

Index: emacs/lisp/descr-text.el
diff -c emacs/lisp/descr-text.el:1.30 emacs/lisp/descr-text.el:1.31
*** emacs/lisp/descr-text.el:1.30       Mon Nov 22 06:00:51 2004
--- emacs/lisp/descr-text.el    Thu Dec 16 13:09:48 2004
***************
*** 104,127 ****
  into widget buttons that call `describe-text-category' or
  `describe-face' when pushed."
    ;; Sort the properties by the size of their value.
!   (dolist (elt (sort (let ((ret nil)
!                          (key nil)
!                          (val nil)
!                          (len nil))
                       (while properties
!                        (setq key (pop properties)
!                              val (pop properties)
!                              len 0)
!                        (unless (or (memq key '(category face font-lock-face
!                                                  syntax-table))
!                                    (widgetp val))
!                          (setq val (pp-to-string val)
!                                len (length val)))
!                        (push (list key val len) ret))
                       ret)
!                    (lambda (a b)
!                      (< (nth 2 a)
!                         (nth 2 b)))))
      (let ((key (nth 0 elt))
          (value (nth 1 elt)))
        (widget-insert (propertize (format "  %-20s " key)
--- 104,114 ----
  into widget buttons that call `describe-text-category' or
  `describe-face' when pushed."
    ;; Sort the properties by the size of their value.
!   (dolist (elt (sort (let (ret)
                       (while properties
!                        (push (list (pop properties) (pop properties)) ret))
                       ret)
!                    (lambda (a b) (string< (nth 0 a) (nth 0 b)))))
      (let ((key (nth 0 elt))
          (value (nth 1 elt)))
        (widget-insert (propertize (format "  %-20s " key)
***************
*** 131,153 ****
                            :notify `(lambda (&rest ignore)
                                       (describe-text-category ',value))
                            (format "%S" value)))
!             ((memq key '(face font-lock-face))
             (widget-create 'link
                            :notify `(lambda (&rest ignore)
                                       (describe-face ',value))
                            (format "%S" value)))
-           ((eq key 'syntax-table)
-            (widget-create 'push-button
-                             :tag "show"
-                             :action (lambda (widget &optional event)
-                                       (with-output-to-temp-buffer
-                                           "*Pp Eval Output*"
-                                         (pp (widget-get widget :value))))
-                             value))
              ((widgetp value)
             (describe-text-widget value))
            (t
!            (widget-insert value))))
      (widget-insert "\n")))
  
  ;;; Describe-Text Commands.
--- 118,132 ----
                            :notify `(lambda (&rest ignore)
                                       (describe-text-category ',value))
                            (format "%S" value)))
!             ((memq key '(face font-lock-face mouse-face))
             (widget-create 'link
                            :notify `(lambda (&rest ignore)
                                       (describe-face ',value))
                            (format "%S" value)))
              ((widgetp value)
             (describe-text-widget value))
            (t
!            (describe-text-sexp value))))
      (widget-insert "\n")))
  
  ;;; Describe-Text Commands.
***************
*** 552,561 ****
                (dotimes (i (length disp-vector))
                  (setq char (aref disp-vector i))
                  (aset disp-vector i
!                       (cons char (describe-char-display pos char))))
                (format "by display table entry [%s] (see below)"
!                       (mapconcat #'(lambda (x) (format "?%c" (car x)))
!                                  disp-vector " ")))
               (composition
                (let ((from (car composition))
                      (to (nth 1 composition))
--- 531,547 ----
                (dotimes (i (length disp-vector))
                  (setq char (aref disp-vector i))
                  (aset disp-vector i
!                       (cons char (describe-char-display
!                                   pos (logand char #x7ffff)))))
                (format "by display table entry [%s] (see below)"
!                       (mapconcat
!                        #'(lambda (x)
!                            (if (> (car x) #x7ffff)
!                                (format "?%c<face-id=%s>"
!                                        (logand (car x) #x7ffff)
!                                        (lsh (car x) -19))
!                              (format "?%c" (car x))))
!                        disp-vector " ")))
               (composition
                (let ((from (car composition))
                      (to (nth 1 composition))
***************
*** 627,633 ****
              (progn
                (insert "these fonts (glyph codes):\n")
                (dotimes (i (length disp-vector))
!                 (insert (car (aref disp-vector i)) ?:
                          (propertize " " 'display '(space :align-to 5))
                          (if (cdr (aref disp-vector i))
                              (format "%s (0x%02X)" (cadr (aref disp-vector i))
--- 613,619 ----
              (progn
                (insert "these fonts (glyph codes):\n")
                (dotimes (i (length disp-vector))
!                 (insert (logand (car (aref disp-vector i)) #x7ffff) ?:
                          (propertize " " 'display '(space :align-to 5))
                          (if (cdr (aref disp-vector i))
                              (format "%s (0x%02X)" (cadr (aref disp-vector i))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]