aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ps-print.el16
-rw-r--r--lisp/tab-line.el2
2 files changed, 4 insertions, 14 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index b54f09b2bdd..aa3037f5273 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -4850,17 +4850,6 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th
4850 (and has-local-background (ps-output "}def\n")))) 4850 (and has-local-background (ps-output "}def\n"))))
4851 4851
4852 4852
4853;; Return a list of the distinct elements of LIST.
4854;; Elements are compared with `equal'.
4855(defun ps-remove-duplicates (list)
4856 (let (new (tail list))
4857 (while tail
4858 (or (member (car tail) new)
4859 (setq new (cons (car tail) new)))
4860 (setq tail (cdr tail)))
4861 (nreverse new)))
4862
4863
4864;; Find the first occurrence of ITEM in LIST. 4853;; Find the first occurrence of ITEM in LIST.
4865;; Return the index of the matching item, or nil if not found. 4854;; Return the index of the matching item, or nil if not found.
4866;; Elements are compared with `eq'. 4855;; Elements are compared with `eq'.
@@ -5342,7 +5331,7 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5342 (if ps-landscape-mode "Landscape" "Portrait") 5331 (if ps-landscape-mode "Landscape" "Portrait")
5343 "\n%%DocumentNeededResources: font Times-Roman Times-Italic\n%%+ font " 5332 "\n%%DocumentNeededResources: font Times-Roman Times-Italic\n%%+ font "
5344 (mapconcat 'identity 5333 (mapconcat 'identity
5345 (ps-remove-duplicates 5334 (seq-uniq
5346 (append (ps-fonts 'ps-font-for-text) 5335 (append (ps-fonts 'ps-font-for-text)
5347 (list (ps-font 'ps-font-for-header 'normal) 5336 (list (ps-font 'ps-font-for-header 'normal)
5348 (ps-font 'ps-font-for-header 'bold) 5337 (ps-font 'ps-font-for-header 'bold)
@@ -5491,7 +5480,7 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5491 "\n%%IncludeResource: font Times-Italic" 5480 "\n%%IncludeResource: font Times-Italic"
5492 "\n%%IncludeResource: font " 5481 "\n%%IncludeResource: font "
5493 (mapconcat 'identity 5482 (mapconcat 'identity
5494 (ps-remove-duplicates 5483 (seq-uniq
5495 (append (ps-fonts 'ps-font-for-text) 5484 (append (ps-fonts 'ps-font-for-text)
5496 (list (ps-font 'ps-font-for-header 'normal) 5485 (list (ps-font 'ps-font-for-header 'normal)
5497 (ps-font 'ps-font-for-header 'bold) 5486 (ps-font 'ps-font-for-header 'bold)
@@ -6548,6 +6537,7 @@ Please send all bug fixes and enhancements to
6548(make-obsolete-variable 'ps-print-version 'emacs-version "29.1") 6537(make-obsolete-variable 'ps-print-version 'emacs-version "29.1")
6549 6538
6550(define-obsolete-function-alias 'ps-print-ensure-fontified #'font-lock-ensure "29.1") 6539(define-obsolete-function-alias 'ps-print-ensure-fontified #'font-lock-ensure "29.1")
6540(define-obsolete-function-alias 'ps-remove-duplicates #'seq-uniq "30.1")
6551 6541
6552(provide 'ps-print) 6542(provide 'ps-print)
6553 6543
diff --git a/lisp/tab-line.el b/lisp/tab-line.el
index f0bc13acb74..bdf1db7033f 100644
--- a/lisp/tab-line.el
+++ b/lisp/tab-line.el
@@ -28,7 +28,7 @@
28;;; Code: 28;;; Code:
29 29
30(require 'cl-lib) 30(require 'cl-lib)
31(require 'seq) ; tab-line.el is not pre-loaded so it's safe to use it here 31(require 'seq)
32(require 'icons) 32(require 'icons)
33 33
34 34