Thank you for the speedy response!
In fact, with all that you suggest, the flag is set to `error` on both SWI-Prolog and GProlog. The same behaviour still persists with the example I provided at the beginning of this thread.
However, I can say that there is no ~/.swiplrc file at root.
I imagine this could be a critical issue. What should be the contents of a `typical` .swiplrc?
I will also note that I have the following in my ~/.emacs. The version of `prolog.el` is the one suggested in SWI-Prolog's webpages.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These lines allow a particular Prolog to be run under Emacs.
;;
;; Insert the following lines in your init file--typically ~/.emacs
;; (GNU Emacs and XEmacs <21.4), or ~/.xemacs/init.el (XEmacs
;; 21.4)--to use this mode when editing Prolog files under Emacs:
;;
(setq load-path (cons "/usr/share/emacs24/site-lisp/" load-path)) ; points to prolog.el
(autoload 'run-prolog "prolog" "Start a Prolog sub-process." t)
(autoload 'prolog-mode "prolog" "Major mode for editing Prolog programs." t)
(autoload 'mercury-mode "prolog" "Major mode for editing Mercury programs." t)
(setq prolog-system 'swi) ; Specify the system you are using.
; Recognized symbol values are:
; eclipse - Eclipse Prolog
; mercury - Mercury
; sicstus - SICStus Prolog
; swi - SWI Prolog
; xsb - XSB <
http://xsb.sourceforge.net>
; gnu - GNU Prolog
; yap - YAP Prolog
(setq auto-mode-alist (append '(("\\.pl$" . prolog-mode)
("\\.m$" . mercury-mode))
auto-mode-alist))
;;
;; o insert in your Prolog files the following comment as the first line:
;;
;; % -*- Mode: Prolog -*-
;;
;; and then the file will be open in Prolog mode no matter its
;; extension, or
;;
;; o manually switch to prolog mode after opening a Prolog file, by typing
;; M-x prolog-mode.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Best,
_don