[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/valign ed8dd50 118/198: Remove obsolete functions
From: |
Stefan Monnier |
Subject: |
[elpa] externals/valign ed8dd50 118/198: Remove obsolete functions |
Date: |
Tue, 1 Dec 2020 18:19:29 -0500 (EST) |
branch: externals/valign
commit ed8dd505d1487aef6438e6f0e2c17b2cb22db022
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
Remove obsolete functions
* valign.el (valign--tab-width, valign--glyph-width-at-point): Remove
functions.
---
valign.el | 35 -----------------------------------
1 file changed, 35 deletions(-)
diff --git a/valign.el b/valign.el
index 2eded06..34aa93a 100644
--- a/valign.el
+++ b/valign.el
@@ -101,41 +101,6 @@ Return nil if not in a cell."
(skip-chars-backward " ")
(valign--pixel-width-from-to start (point)))))))
-;; (defun valign--font-at (p)
-;; (find-font
-;; (font-spec
-;; :name (face-font (get-text-property (point) 'face)
-;; nil
-;; (char-after)))))
-
-;; Obsolete.
-(defun valign--tab-width (font)
- "Return the pixel width of a tab in FONT."
- ;; FIXME We have to over-estimate the pixel width of a tab. Since
- ;; it is very hard to compute the exact width of it (basically Emacs
- ;; redisplay calculates tab width based one the iterators position
- ;; on-the-fly, to calculate the exact width of a tab, you need to
- ;; know it’s _position_, that means calculating from the left edge).
- (* (or tab-width 8)
- ;; FIXME For some unknown reason, tab-width is
- ;; sometimes nil, someone should investigate.
- (aref (aref (font-get-glyphs font 0 1 " ") 0) 4)))
-
-;; Obsolete.
-(defun valign--glyph-width-at-point (&optional point)
- "Return the pixel width of the glyph at POINT.
-The buffer has to be visible. If point is at an image, this
-function doens’t return the image’s width, but the underlining
-character’s glyph width."
- (let* ((p (or point (point))))
- ;; car + mapcar to translate the vector to a list.
- (if (eq (char-after point) ?\t)
- (valign--tab-width (font-at p))
- ;; (font-at 0 nil (buffer-substring p (1+ p))) doesn’t work, the
- ;; font is sometimes wrong. (font-at p) doesn’t work, because
- ;; it requires the buffer to be visible.
- (aref (aref (font-get-glyphs (font-at p) p (1+ p)) 0) 4))))
-
;; We used to use a custom functions that calculates the pixel text
;; width that doesn’t require a live window. However that function
;; has some limitations, including not working right with face remapping.
- [elpa] externals/valign e9975b7 083/198: Use new text size calculation, (continued)
- [elpa] externals/valign e9975b7 083/198: Use new text size calculation, Stefan Monnier, 2020/12/01
- [elpa] externals/valign e32d191 079/198: Valign-table refactor, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 21a397a 092/198: Update README, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 4ecc990 093/198: * valign.el (valign--table-face): Fix markdown-mode., Stefan Monnier, 2020/12/01
- [elpa] externals/valign c4ddfb3 095/198: Fix org-flag-region advice, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 7529ddd 111/198: Revert "* valign.el (valign-table): Tuck in some long lines.", Stefan Monnier, 2020/12/01
- [elpa] externals/valign 97beef8 127/198: Remove valign-table-quiet, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 1412fef 133/198: * valign.el (valign-table): Suppress search errors., Stefan Monnier, 2020/12/01
- [elpa] externals/valign fc591d8 129/198: * valign.el (valign-table-1): Clear overlay before measuring table., Stefan Monnier, 2020/12/01
- [elpa] externals/valign c5eb220 108/198: Remove valign--face-attribute, Stefan Monnier, 2020/12/01
- [elpa] externals/valign ed8dd50 118/198: Remove obsolete functions,
Stefan Monnier <=
- [elpa] externals/valign ced2f6a 132/198: * valign.el (valign-table-1): Fix search term., Stefan Monnier, 2020/12/01
- [elpa] externals/valign c70c64e 125/198: * valign.el (valign--clean-text-property): Remove code using 'text-property-search-forward'., Stefan Monnier, 2020/12/01
- [elpa] externals/valign 645260f 076/198: * valign.el (valign-table): Allow edebug., Stefan Monnier, 2020/12/01
- [elpa] externals/valign 82566b3 080/198: Fix tab calculation, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 6578fe4 081/198: * valign.el (valign-table): Don’t message errors., Stefan Monnier, 2020/12/01
- [elpa] externals/valign e2a2a85 085/198: Rework hooks, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 44651e9 086/198: * valign.el (valign-mode): Change text-scale hooks., Stefan Monnier, 2020/12/01
- [elpa] externals/valign 8b6ce8c 084/198: * valign.el (valign--cell-width): Minor change., Stefan Monnier, 2020/12/01
- [elpa] externals/valign dcf6bd8 088/198: Add force align, Stefan Monnier, 2020/12/01
- [elpa] externals/valign 53be5d7 089/198: Add fancy bar, Stefan Monnier, 2020/12/01