Bug 1204623

Summary: emacs and editing features do not function under SWI-prolog
Product: [Fedora] Fedora Reporter: Sean A. Fulop <sfulop>
Component: plAssignee: Petr Pisar <ppisar>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: bagnara, mefoster, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-03 11:12:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sean A. Fulop 2015-03-23 08:33:00 UTC
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:

Comment 1 Petr Pisar 2015-04-03 11:12:52 UTC
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.

Comment 2 Sean A. Fulop 2015-04-22 07:11:29 UTC
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.

Comment 3 Petr Pisar 2015-04-22 10:32:58 UTC
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.