emacs-devel
[Top][All Lists]
Advanced

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

Re: Problems with move_it_in_display_line_to X when tabs exist.


From: Keith David Bershatsky
Subject: Re: Problems with move_it_in_display_line_to X when tabs exist.
Date: Sat, 02 Dec 2017 19:38:51 -0800

The five faces were set up with the built-in defface macro.  I set the 
buffer-display-table with setq and the following variable:

(defvar +-buffer-display-table
  (let* (
      (display-table (make-display-table))
      (ff-char
        (cond
          ((eq system-type 'darwin)
            ?\U0001D4D5)
          ((eq system-type 'windows-nt)
            ?\u0046)))
      (glyph-form-feed (make-glyph-code ff-char '+-form-feed-face))
      (glyph-pilcrow (make-glyph-code ?\u00B6 '+-newline-face))
      (glyph-space (make-glyph-code ?\u00B7 '+-space-face))
      (glyph-tab (make-glyph-code ?\u00BB '+-tab-face))
      (glyph-tab-spacer (make-glyph-code ?\t '+-tab-spacer-face)))
    (aset display-table ?\n `[,glyph-pilcrow ?\n])
    (aset display-table ?\f `[,glyph-form-feed])
    (aset display-table ?\t `[,glyph-tab ,glyph-tab-spacer])
    (aset display-table ?\s `[,glyph-space])
    display-table)
  "The `buffer-display-table' that is used when `+-mode' is active.")

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

DATE:  [12-02-2017 19:32:49] <03 Dec 2017 05:32:49 +0200>
FROM:  Eli Zaretskii <address@hidden>
> 
> > Date:  Sat, 02 Dec 2017 14:28:31 -0800
> > From:  Keith David Bershatsky <address@hidden>
> > Cc:  address@hidden
> > 
> > Here are the four values.  It looks like it.current_x is where I expected 
> > it to be, but it.what is showing a character instead of a stretch.
> > 
> > (gdb) print it.what
> > $1 = IT_CHARACTER
> > 
> > (gdb) print it.char_to_display
> > $2 = 9
> > 
> > (gdb) print it.method
> > $3 = GET_FROM_DISPLAY_VECTOR
> > 
> > (gdb) print it.current_x
> > $4 = 44
> 
> Please show the Lisp code that you used to set up the display table.



reply via email to

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