File: 0002-require-third-arg.patch

package info (click to toggle)
sml-mode 6.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 504 kB
  • sloc: lisp: 3,887; makefile: 7; sh: 5
file content (23 lines) | stat: -rw-r--r-- 601 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: "Aaron M. Ucko" <ucko@debian.org>
Date: Mon, 23 Dec 2013 13:00:02 -0500
Subject: require third arg

Work around xemacs21 not supporting three-arg require form.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732996
---
 sml-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sml-mode.el b/sml-mode.el
index e609991..527638f 100644
--- a/sml-mode.el
+++ b/sml-mode.el
@@ -127,7 +127,7 @@
 ;;; Code:
 
 (eval-when-compile (require 'cl-lib))
-(require 'smie nil 'noerror)
+(condition-case nil (require 'smie)     (error nil))
 (require 'electric)
 
 (defgroup sml ()