File: 0002-require-third-arg.patch

package info (click to toggle)
sml-mode 6.7-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 404 kB
  • ctags: 548
  • sloc: lisp: 3,751; makefile: 6; sh: 5
file content (23 lines) | stat: -rw-r--r-- 597 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 85fcdcf..dbae4af 100644
--- a/sml-mode.el
+++ b/sml-mode.el
@@ -114,7 +114,7 @@
 ;;; Code:
 
 (eval-when-compile (require 'cl))
-(require 'smie nil 'noerror)
+(condition-case nil (require 'smie)     (error nil))
 (require 'electric)
 
 (defgroup sml ()