(sweeprolog-path-module (buffer-file-name buffer)))
(defun sweeprolog-identifier-at-point (&optional point)
- (when (derived-mode-p 'sweeprolog-mode 'sweeprolog-top-level-mode)
+ (when (or (derived-mode-p 'sweeprolog-mode)
+ (derived-mode-p 'sweeprolog-top-level-mode))
(setq point (or point (point)))
(save-excursion
(goto-char point)
(- point start))))))))
(defun sweeprolog-goals-at-point (&optional point)
- (when (derived-mode-p 'sweeprolog-mode 'sweeprolog-top-level-mode)
+ (when (or (derived-mode-p 'sweeprolog-mode)
+ (derived-mode-p 'sweeprolog-top-level-mode))
(setq point (or point (point)))
(save-excursion
(goto-char point)