emacs-diffs
[Top][All Lists]
Advanced

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

feature/pgtk a925e6b 1/3: * lisp/term/pgtk-win.el (pgtk-face-at-pos): Re


From: Yuuki Harano
Subject: feature/pgtk a925e6b 1/3: * lisp/term/pgtk-win.el (pgtk-face-at-pos): Remove unused function
Date: Mon, 16 Aug 2021 10:04:26 -0400 (EDT)

branch: feature/pgtk
commit a925e6b2b571dec8e17fba73dba69503674cc49e
Author: Yuuki Harano <masm+github@masm11.me>
Commit: Yuuki Harano <masm+github@masm11.me>

    * lisp/term/pgtk-win.el (pgtk-face-at-pos): Remove unused function
---
 lisp/term/pgtk-win.el | 37 -------------------------------------
 1 file changed, 37 deletions(-)

diff --git a/lisp/term/pgtk-win.el b/lisp/term/pgtk-win.el
index 57e8d14..f4247b0 100644
--- a/lisp/term/pgtk-win.el
+++ b/lisp/term/pgtk-win.el
@@ -226,43 +226,6 @@ See the documentation of 
`create-fontset-from-fontset-spec' for the format.")
   (insert (gui-get-selection 'SECONDARY)))
 
 
-;;;; Color support.
-
-;; Functions for color panel + drag
-(defun pgtk-face-at-pos (pos)
-  (let* ((frame (car pos))
-         (frame-pos (cons (cadr pos) (cddr pos)))
-         (window (window-at (car frame-pos) (cdr frame-pos) frame))
-         (window-pos (coordinates-in-window-p frame-pos window))
-         (buffer (window-buffer window))
-         (edges (window-edges window)))
-    (cond
-     ((not window-pos)
-      nil)
-     ((eq window-pos 'mode-line)
-      'mode-line)
-     ((eq window-pos 'vertical-line)
-      'default)
-     ((consp window-pos)
-      (with-current-buffer buffer
-        (let ((p (car (compute-motion (window-start window)
-                                      (cons (nth 0 edges) (nth 1 edges))
-                                      (window-end window)
-                                      frame-pos
-                                      (- (window-width window) 1)
-                                      nil
-                                      window))))
-          (cond
-           ((eq p (window-point window))
-            'cursor)
-           ((and mark-active (< (region-beginning) p) (< p (region-end)))
-            'region)
-           (t
-           (let ((faces (get-char-property p 'face window)))
-             (if (consp faces) (car faces) faces)))))))
-     (t
-      nil))))
-
 (defun pgtk-suspend-error ()
   ;; Don't allow suspending if any of the frames are PGTK frames.
   (if (memq 'pgtk (mapcar 'window-system (frame-list)))



reply via email to

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