emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/bison-mode 3a7fd59 08/29: Fix byte-compile warnings


From: ELPA Syncer
Subject: [nongnu] elpa/bison-mode 3a7fd59 08/29: Fix byte-compile warnings
Date: Sun, 29 Aug 2021 10:58:41 -0400 (EDT)

branch: elpa/bison-mode
commit 3a7fd59294ba33b87b72e6d292b4c2a650bb48e7
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>

    Fix byte-compile warnings
---
 bison-mode.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bison-mode.el b/bison-mode.el
index 78c5687..ceb605b 100644
--- a/bison-mode.el
+++ b/bison-mode.el
@@ -79,6 +79,7 @@
 
 ;; *************** dependencies ***************
 (require 'derived)                     ;; define-derived-mode
+(require 'cc-mode)
 
 ;; *************** internal vars ***************
 
@@ -237,7 +238,7 @@ and \(point\)"
   
   ;; remove auto and hungry anything
   (c-toggle-auto-hungry-state -1)
-  (c-toggle-auto-state -1)
+  (c-toggle-auto-newline -1)
   (c-toggle-hungry-state -1)
 
   (use-local-map bison-mode-map)
@@ -276,7 +277,7 @@ and \(point\)"
   "Return the section that user is currently in"
   (save-excursion
     (let ((bound (point)))
-      (beginning-of-buffer)
+      (goto-char (point-min))
       (bison--section-p-helper bound))))
 
 (defun bison--section-p-helper (bound)
@@ -413,7 +414,7 @@ found."
   (let ((point (or point (point)))
        (in-p nil))
     (save-excursion
-      (beginning-of-buffer)
+      (goto-char (point-min))
 
       (while (re-search-forward "[^\\]\"" point t)
        (setq in-p (not in-p)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]