Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#510 closed bug (not a bug)

Singular emacs interfaces appears to not be fully functional

Reported by: paulo.cesar.pereira.de.andrade@… Owned by: mschulze
Priority: minor Milestone: 3-2-0 and higher
Component: dontKnow Version: 3-1-6
Keywords: Cc:

Description

I maintain a Singular package in Fedora, and it was reported an error message when starting emacs. My first guess is that it would be better to disable the emacs interface package, as the last Changelog entry is from 2000, but Singular maintainers may have some extra comment.

The Singular rpm bug report is at https://bugzilla.redhat.com/show_bug.cgi?id=1011287 and you can look the the rpm sources at https://pkgs.fedoraproject.org/cgit/Singular.git

Change History (3)

comment:1 Changed 11 years ago by boehm

Owner: changed from somebody to mschulze

Use ESingular instead.

comment:2 in reply to:  1 Changed 11 years ago by mschulze

Resolution: not a bug
Status: newclosed

The problem seems to be in your Singular.spec file:

mv $RPM_BUILD_ROOT%{_emacs_sitelispdir}/singular/.emacs-singular \

$RPM_BUILD_ROOT%{_emacs_sitestartdir}/singular-init.el

The file .emacs-singular is not supposed to be copied into the emacs start directory (see information in the header of this file). It should only be loaded when emacs is started by ESingular which will first set the variable singular-emacs-home-directory.

comment:3 Changed 11 years ago by paulo.cesar.pereira.de.andrade@…

I used to use emacs long ago, but not for over a decade, so I think I cannot correct the other issues that happen when doing the correction suggested above. After that, running ESingular I see in the emacs *Messages* buffer:

Loading /usr/share/emacs/site-lisp/site-start.d/asy-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/emacs-color-theme-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/maxima-modes.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/systemtap-init.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading /usr/share/emacs/site-lisp/singular/.emacs-singular...
Loading paren...done
progn: Symbol's value as variable is void: current-menubar

If I click the Singular menu, I see the options:

+---------------+
| Start default |
| Start...      |
+---------------+

If I click "Start default", in *Messages* I see:

Symbol's function definition is void: singular

If I click "Start..." I see in *Messages*:

Symbol's function definition is void: singular-other

I would prefer to correct any remaining issue instead of no longer generating a Singular-emacs package... Any idea as to what I may be missing?

$ rpm -q emacs
emacs-24.3-13.fc20.x86_64
$ rpm -qi Singular-emacs
Name        : Singular-emacs
Version     : 3.1.5
Release     : 6.fc20
Architecture: x86_64
Install Date: Tue 24 Sep 2013 01:04:39 AM BRT
Group       : Applications/Engineering
Size        : 464072
License     : BSD and LGPLv2+ and GPLv2+
Signature   : RSA/SHA256, Wed 07 Aug 2013 02:09:22 AM BRT, Key ID 2eb161fa246110c1
Source RPM  : Singular-3.1.5-6.fc20.src.rpm
Build Date  : Wed 22 May 2013 03:59:40 PM BRT
Build Host  : buildvm-08.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : <<<URL-REMOVED-TO-BE-ABLE-TO-POST-TO-TRACK>>>
Summary     : Emacs mode for Singular
Description :
Emacs mode for Singular.
$ rpm -ql Singular-emacs
/usr/bin/ESingular
/usr/lib64/Singular/ESingular
/usr/share/emacs/site-lisp/singular
/usr/share/emacs/site-lisp/singular/cmd-cmpl.el
/usr/share/emacs/site-lisp/singular/ex-cmpl.el
/usr/share/emacs/site-lisp/singular/hlp-cmpl.el
/usr/share/emacs/site-lisp/singular/lib-cmpl.el
/usr/share/emacs/site-lisp/singular/singular.el
/usr/share/emacs/site-lisp/singular/singular.xpm
/usr/share/emacs/site-lisp/site-start.d/singular-init.el

What I did before the tests above was:

$ sudo mv /usr/share/emacs/site-lisp/site-start.d/singular-init.el  /usr/share/emacs/site-lisp/singular/.emacs-singular
Note: See TracTickets for help on using tickets.