]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix some whitespace and warnings
authorArtur Malabarba <bruce.connor.am@gmail.com>
Wed, 14 Oct 2015 12:06:12 +0000 (13:06 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Wed, 14 Oct 2015 12:06:12 +0000 (13:06 +0100)
sotlisp.el

index a622428a9b3d2346d6b6936e8e6eb682653776a5..2594c56205dab0f609523fc0354b38c9705c2c54 100644 (file)
@@ -80,7 +80,6 @@
 ;; 
 ;;   (with-temp-buffer (insert text))
 
-\f
 ;;; Code:
 
 ;;; Predicates
@@ -452,7 +451,7 @@ If `speed-of-thought-mode' is already on, call ON."
   nil nil " SoT"
   `(([M-return] . sotlisp-newline-and-parentheses)
     ([C-return] . sotlisp-downlist-newline-and-parentheses)
-    (,(kbd "C-M-;") . ,(if (boundp 'comment-or-uncomment-sexp)
+    (,(kbd "C-M-;") . ,(if (fboundp 'comment-or-uncomment-sexp)
                            #'comment-or-uncomment-sexp
                          #'sotlisp-comment-or-uncomment-sexp))
     ("\C-cf"    . sotlisp-find-or-define-function)
@@ -521,8 +520,9 @@ removes hooks and abbrevs."
   "`push-mark' and move above this defun."
   (push-mark)
   (beginning-of-defun)
-  (when (looking-back "^;;;###autoload\\s-*\n")
-    (forward-line -1)))
+  (forward-line -1)
+  (unless (looking-at "^;;;###autoload\\s-*\n")
+    (forward-line 1)))
 
 (defun sotlisp--function-at-point ()
   "Return name of `function-called-at-point'."
@@ -692,4 +692,3 @@ With a prefix argument N, (un)comment that many sexps."
 
 (provide 'sotlisp)
 ;;; sotlisp.el ends here
-