Gentoo Archives: gentoo-commits

From: "Mark Wright (gienah)" <gienah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emacs/apel/files: apel-10.8-020_Prevent-fontset-error.patch apel-10.8-040_make-temp-file-for-Emacs-24.3.50.patch apel-10.8-010_ikazuhiro.patch
Date: Thu, 03 Oct 2013 11:33:33
Message-Id: 20131003113328.02FCC2004C@flycatcher.gentoo.org
1 gienah 13/10/03 11:33:27
2
3 Added: apel-10.8-020_Prevent-fontset-error.patch
4 apel-10.8-040_make-temp-file-for-Emacs-24.3.50.patch
5 apel-10.8-010_ikazuhiro.patch
6 Log:
7 Add patches, the changes are noted in the ChangeLog diffs included in the patches. Which include fixes for emacs 24, apel is a dep of elscreen, part of fix for bug 425258.
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
10
11 Revision Changes Path
12 1.1 app-emacs/apel/files/apel-10.8-020_Prevent-fontset-error.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/apel/files/apel-10.8-020_Prevent-fontset-error.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/apel/files/apel-10.8-020_Prevent-fontset-error.patch?rev=1.1&content-type=text/plain
16
17 Index: apel-10.8-020_Prevent-fontset-error.patch
18 ===================================================================
19 Description: Prevent an error of fontset-pixel-size for Emacs 23.
20 Bug-Debian: http://bugs.debian.org/477177
21 Author: Tatsuya Kinoshita <tats@××××××.org>
22
23 --- a/ChangeLog
24 +++ b/ChangeLog
25 @@ -0,0 +1,5 @@
26 +2010-02-14 Tatsuya Kinoshita <tats@×××××××××××.jp>
27 +
28 + * poem-e20.el (fontset-pixel-size): Don't cause an error. Workaround
29 + for Emacs 23.
30 +
31 --- a/poem-e20.el
32 +++ b/poem-e20.el
33 @@ -25,6 +25,7 @@
34 ;;; Code:
35
36 (defun fontset-pixel-size (fontset)
37 + (condition-case nil
38 (let* ((info (fontset-info fontset))
39 (height (aref info 1))
40 )
41 @@ -32,7 +33,8 @@
42 ((string-match "-\\([0-9]+\\)-" fontset)
43 (string-to-number
44 (substring fontset (match-beginning 1)(match-end 1))))
45 - (t 0))))
46 + (t 0)))
47 + (error 0)))
48
49
50 ;;; @ character set
51
52
53
54 1.1 app-emacs/apel/files/apel-10.8-040_make-temp-file-for-Emacs-24.3.50.patch
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/apel/files/apel-10.8-040_make-temp-file-for-Emacs-24.3.50.patch?rev=1.1&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/apel/files/apel-10.8-040_make-temp-file-for-Emacs-24.3.50.patch?rev=1.1&content-type=text/plain
58
59 Index: apel-10.8-040_make-temp-file-for-Emacs-24.3.50.patch
60 ===================================================================
61 Subject: Fix wrong type argument on Emacs 24.3.50 to check make-temp-file
62 From: Tatsuya Kinoshita <tats@××××××.org>
63 Bug-Debian: http://bugs.debian.org/718765
64
65 diff --git a/ChangeLog b/ChangeLog
66 index 8e96224..9505b2e 100644
67 --- a/ChangeLog
68 +++ b/ChangeLog
69 @@ -0,0 +1,5 @@
70 +2013-08-05 Tatsuya Kinoshita <tats@×××××××××××.jp>
71 +
72 + * poe.el: Fix wrong type argument on Emacs 24.3.50 to check
73 + `make-temp-file'.
74 +
75 diff --git a/poe.el b/poe.el
76 index be52847..b381f90 100644
77 --- a/poe.el
78 +++ b/poe.el
79 @@ -1667,7 +1667,7 @@ See `walk-windows' for the meaning of MINIBUF and FRAME."
80 )))
81 ;; arglist: (prefix &optional dir-flag suffix)
82 (cond
83 - ((not arglist)
84 + ((or (not arglist) (not (listp arglist)))
85 ;; `make-temp-file' is a built-in; expects 3-args.
86 (put 'make-temp-file 'defun-maybe '3-args))
87 ((> (length arglist) 3)
88
89
90
91 1.1 app-emacs/apel/files/apel-10.8-010_ikazuhiro.patch
92
93 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/apel/files/apel-10.8-010_ikazuhiro.patch?rev=1.1&view=markup
94 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emacs/apel/files/apel-10.8-010_ikazuhiro.patch?rev=1.1&content-type=text/plain
95
96 Index: apel-10.8-010_ikazuhiro.patch
97 ===================================================================
98 --- apel-10.8-orig/ChangeLog 2013-10-03 18:17:05.176741628 +1000
99 +++ apel-10.8/ChangeLog 2013-10-03 18:16:54.442741731 +1000
100 @@ -1,3 +1,56 @@
101 +2013-07-05 Tatsuya Kinoshita <tats@×××××××××××.jp>
102 +
103 + * mcs-20.el: Really check whether the mule-vesion variable is defined.
104 +
105 +2013-07-04 Kazuhiro Ito <kzhr@××××××××××.jp>
106 +
107 + * mcs-20.el: Check whether the mule-vesion variable is defined.
108 + Cf. https://github.com/ikazuhiro/apel/commit/328c02e022340b36dd7e5f9250c7f86d2bafd793
109 +
110 +2013-03-24 Kazuhiro Ito <kzhr@××××××××××.jp>
111 +
112 + * mcs-20.el (mime-charset-to-coding-system): Display the message
113 + and use charset name as coding system when
114 + `mime-charset-coding-system-alist' indicates invalid coding
115 + system.
116 +
117 +2012-09-07 Kazuhiro Ito <kzhr@××××××××××.jp>
118 +
119 + * mcs-e20.el (coding-system-to-mime-charset): Coding system's
120 + setting is preferred to mime-charset-coding-system-alist's value.
121 + Detect MIME name from mime-charset-coding-system-alist's value
122 + more permissively.
123 +
124 +2012-08-08 Kazuhiro Ito <kzhr@××××××××××.jp>
125 +
126 + * poe.el (next-command-event): Fix that Emacs 21 and later were
127 + treated as 'Emacs 19, 20.1 and 20.2'.
128 +
129 +2012-07-28 Kazuhiro Ito <kzhr@××××××××××.jp>
130 +
131 + * mcs-e20.el (charsets-mime-charset-alist): Do not use
132 + `iso-2022-jp-2'.
133 +
134 +2012-07-28 Kazuhiro Ito <kzhr@××××××××××.jp>
135 +
136 + * mcs-20.el (detect-mime-charset-string): (Emacs23 and later) New
137 + function.
138 + (detect-mime-charset-region): Use it.
139 +
140 +2011-06-17 Kazuhiro Ito <kzhr@××××××××××.jp>
141 +
142 + * mcs-20.el (detect-mime-charset-region): (Emacs23 and later) Do
143 + not check whether `charsets-mime-charset-alist' contains non
144 + charset symbol.
145 +
146 + * mcs-e20.el (charsets-mime-charset-alist): Remove non charset
147 + symbol for Emacs 23 and later.
148 +
149 +2010-03-19 Kazuhiro Ito <kzhr@××××××××××.jp>
150 +
151 + * mcs-20.el (detect-mime-charset-region): Do not care priority of
152 + charsets on Emacs 23 and later.
153 +
154 2011-07-17 David Maus <dmaus@××××××.de>
155
156 * tinycustom.el (defcustom): Use new style backquotes.
157 --- apel-10.8-orig/mcs-20.el 2005-07-06 12:08:52.000000000 +1000
158 +++ apel-10.8/mcs-20.el 2013-10-03 17:44:42.936760151 +1000
159 @@ -84,11 +84,13 @@
160 (if (stringp charset)
161 (setq charset (intern (downcase charset)))
162 )
163 - (let ((cs (assq charset mime-charset-coding-system-alist)))
164 - (setq cs
165 - (if cs
166 - (cdr cs)
167 - charset))
168 + (let ((cs (cdr (assq charset mime-charset-coding-system-alist))))
169 + (unless (or (null cs) (find-coding-system cs))
170 + (message
171 + "Invalid coding system: %s. Confirm mime-charset-coding-system-alist."
172 + cs)
173 + (setq cs nil))
174 + (unless cs (setq cs charset))
175 (if lbt
176 (setq cs (intern (format "%s-%s" cs
177 (cond ((eq lbt 'CRLF) 'dos)
178 @@ -96,12 +98,11 @@
179 ((eq lbt 'CR) 'mac)
180 (t lbt)))))
181 )
182 - (if (find-coding-system cs)
183 - cs
184 - (if mime-charset-to-coding-system-default-method
185 - (funcall mime-charset-to-coding-system-default-method
186 - charset lbt cs)
187 - ))))
188 + (or (find-coding-system cs)
189 + (if mime-charset-to-coding-system-default-method
190 + (funcall mime-charset-to-coding-system-default-method
191 + charset lbt cs)
192 + ))))
193
194 (defalias 'mime-charset-p 'mime-charset-to-coding-system)
195
196 @@ -209,6 +210,34 @@
197 (setq rest (cdr rest)))
198 default-mime-charset-for-write)))
199 )
200 +
201 +((eval-when-compile (and (boundp 'mule-version)
202 + (null (string< mule-version "6.0"))))
203 +;; for Emacs 23 and later
204 +(defun detect-mime-charset-string (string)
205 + "Return MIME charset for STRING."
206 + (let ((src (string-to-list string))
207 + tmp)
208 + (setq tmp src)
209 + ;; Uniquify the list of characters.
210 + (while tmp
211 + (setq tmp (setcdr tmp (delq (car tmp) (cdr tmp)))))
212 + ;; Detect charset from the list of characters.
213 + (catch 'found
214 + (mapc (lambda (cons)
215 + (catch 'next
216 + (mapc (lambda (ch) (unless (char-charset ch (car cons))
217 + (throw 'next nil)))
218 + src)
219 + (throw 'found (cdr cons))))
220 + charsets-mime-charset-alist)
221 + default-mime-charset-for-write)))
222 +
223 +(defsubst detect-mime-charset-region (start end)
224 + "Return MIME charset for region between START and END."
225 + (detect-mime-charset-string
226 + (buffer-substring-no-properties start end))))
227 +
228 (t
229 ;; for legacy Mule
230 (defun detect-mime-charset-region (start end)
231 --- apel-10.8-orig/mcs-e20.el 2005-07-06 12:08:52.000000000 +1000
232 +++ apel-10.8/mcs-e20.el 2013-10-03 17:44:42.936760151 +1000
233 @@ -90,11 +90,15 @@
234 ((ascii korean-ksc5601) . euc-kr)
235 ((ascii chinese-gb2312) . gb2312)
236 ((ascii chinese-big5-1 chinese-big5-2) . big5)
237 - ((ascii thai-tis620 composition) . tis-620)
238 - ((ascii latin-iso8859-1 greek-iso8859-7
239 - latin-jisx0201 japanese-jisx0208-1978
240 - chinese-gb2312 japanese-jisx0208
241 - korean-ksc5601 japanese-jisx0212) . iso-2022-jp-2)
242 + ,(static-cond
243 + ((null (string< mule-version "6.0"))
244 + '((ascii thai-tis620) . tis-620))
245 + (t
246 + '((ascii thai-tis620 composition) . tis-620)))
247 + ;; ((ascii latin-iso8859-1 greek-iso8859-7
248 + ;; latin-jisx0201 japanese-jisx0208-1978
249 + ;; chinese-gb2312 japanese-jisx0208
250 + ;; korean-ksc5601 japanese-jisx0212) . iso-2022-jp-2)
251 ;;((ascii latin-iso8859-1 greek-iso8859-7
252 ;; latin-jisx0201 japanese-jisx0208-1978
253 ;; chinese-gb2312 japanese-jisx0208
254 @@ -119,8 +123,16 @@
255 (defun coding-system-to-mime-charset (coding-system)
256 "Convert CODING-SYSTEM to a MIME-charset.
257 Return nil if corresponding MIME-charset is not found."
258 - (or (car (rassq coding-system mime-charset-coding-system-alist))
259 - (coding-system-get coding-system 'mime-charset)
260 + (or (coding-system-get coding-system 'mime-charset)
261 + (let ((coding (coding-system-base coding-system))
262 + (alist mime-charset-coding-system-alist)
263 + result)
264 + (while alist
265 + (if (eq (coding-system-base (cdar alist)) coding)
266 + (setq result (caar alist)
267 + alist nil)
268 + (setq alist (cdr alist))))
269 + result)
270 ))
271
272 (defun-maybe-cond mime-charset-list ()
273 --- apel-10.8-orig/poe.el 2013-10-03 17:43:11.327761025 +1000
274 +++ apel-10.8/poe.el 2013-10-03 17:44:42.937760151 +1000
275 @@ -1996,8 +1996,9 @@
276 returned.
277 If PROMPT is non-nil, it should be a string and will be displayed in
278 the echo area while this function is waiting for an event."
279 - ((and (>= emacs-major-version 20)
280 - (>= emacs-minor-version 4))
281 + ((or (>= emacs-major-version 21)
282 + (and (>= emacs-major-version 20)
283 + (>= emacs-minor-version 4)))
284 ;; Emacs 20.4 and later.
285 (read-event prompt)) ; should specify 2nd arg?
286 ((and (= emacs-major-version 20)