diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-emacs/apel/files/apel-10.8-020_Prevent-fontset-error.patch | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-emacs/apel/files/apel-10.8-020_Prevent-fontset-error.patch')
-rw-r--r-- | app-emacs/apel/files/apel-10.8-020_Prevent-fontset-error.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app-emacs/apel/files/apel-10.8-020_Prevent-fontset-error.patch b/app-emacs/apel/files/apel-10.8-020_Prevent-fontset-error.patch new file mode 100644 index 000000000000..9cea1e675276 --- /dev/null +++ b/app-emacs/apel/files/apel-10.8-020_Prevent-fontset-error.patch @@ -0,0 +1,32 @@ +Description: Prevent an error of fontset-pixel-size for Emacs 23. +Bug-Debian: http://bugs.debian.org/477177 +Author: Tatsuya Kinoshita <tats@debian.org> + +--- a/ChangeLog ++++ b/ChangeLog +@@ -0,0 +1,5 @@ ++2010-02-14 Tatsuya Kinoshita <tats@vega.ocn.ne.jp> ++ ++ * poem-e20.el (fontset-pixel-size): Don't cause an error. Workaround ++ for Emacs 23. ++ +--- a/poem-e20.el ++++ b/poem-e20.el +@@ -25,6 +25,7 @@ + ;;; Code: + + (defun fontset-pixel-size (fontset) ++ (condition-case nil + (let* ((info (fontset-info fontset)) + (height (aref info 1)) + ) +@@ -32,7 +33,8 @@ + ((string-match "-\\([0-9]+\\)-" fontset) + (string-to-number + (substring fontset (match-beginning 1)(match-end 1)))) +- (t 0)))) ++ (t 0))) ++ (error 0))) + + + ;;; @ character set |