Description of problem: When running swipl, attempted built-in command emacs provides an error that the predicate emacs/0 does not exist. Furthermore, attempt to use the commmand edit(filename) also returns an error. Jan Wielemaker has confirmed that this behaviour signifies an improper package build. Version-Release number of selected component (if applicable): pl-6.4.1 fc20 How reproducible: Steps to Reproduce: 1. run swipl 2. try command emacs 3. try command edit(filename) Actual results: Errors, commands do not perform Expected results: command emacs is supposed to launch the GUI pce-emacs integrated development environment command edit(filename) is supposed to launch whichever text editor is set as default in swipl; neither command should provide an error Additional info:
Executing editor works for me: ?- edit(file('new')). % Waiting for editor ... % Running make to reload modified files true. It spawns vim, which is my $EDITOR, on `new' file. If I install `pl-xpce' package which brings your desired GUI, then it will spawn an XPCE editor. Also if `pl-xpce' package is installed, emacs goal will be available and it spawn XPCE with an Emacs imitiation. The XPCE is not part of the `pl' package because not all SWI Prolog users needs XPCE or even does not have X server available.
OK I see. Here is the text that appears in YUM to document the contents of the pl rpm package: ISO/Edinburgh-style Prolog compiler including modules, auto-load, libraries, Garbage-collector, stack-expandor, C/C++-interface, GNU-readline interface, very fast compiler. Including packages clib (Unix process control and sockets), cpp (C++ interface), sgml (reading XML/SGML), sgml/RDF (reading RDF into triples) and XPCE (Graphics UI toolkit, integrated editor (Emacs-clone) and source-level debugger). Notice that it states XPCE is included in the pl package. I had no idea to install a separate package to get it. I think this documentation should be changed to state that pl-xpce is a separate package.
Fair enough. I updated the pl's package description in pl-6.6.6-6.fc23. As this is very low severity issue, it will get into older Fedoras only if another update will be necessary there.