Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611654 - app-editors/qemacs-0.4.1_pre20150916 usage problems
Summary: app-editors/qemacs-0.4.1_pre20150916 usage problems
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-03 23:42 UTC by Hadrien Lacour
Modified: 2017-03-04 19:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hadrien Lacour 2017-03-03 23:42:55 UTC
Sorry if this is the wrong place for querying help but:
-Qemacs doesn't seem to have a way to report bugs
-#emacs couldn't help


Here's my ~/.qe/config:
//set_system_font("fixed", "Terminus,unifont");
set_tab_width(4);
set_indent_width(4);
set_indent_tabs_mode(1)

Uncommenting the first line gets me a "Could not open default font" (both are installed, of course).
The other lines seem to be ignore, even if these work when used via M-x inside the editor.
Comment 1 Ulrich Müller gentoo-dev 2017-03-04 08:45:32 UTC
I have committed a new snapshot of the upstream CVS.
Does qemacs-0.4.1_pre20170225 fix the problem?
Comment 2 Hadrien Lacour 2017-03-04 13:56:46 UTC
Sorry, it doesn't change anything. Could you reproduce any of it by the way?
Comment 3 Ulrich Müller gentoo-dev 2017-03-04 15:12:19 UTC
About the first issue: QEmacs is very old, so it will recognise XLFD font families (i.e. the second field in the output of "xlsfonts"), but no Fontconfig patterns.

So these should work:
set_system_font("fixed", "courier,unifont");
set_system_font("fixed", "lucidatypewriter,unifont");
However, I fear that with Terminus you are out of luck.

I am not using QEmacs regularly myself, so I cannot help you with the second issue. There are both tab-width and default-tab-width variables, though. Maybe you could try setting the second one with set_variable?
Comment 4 Hadrien Lacour 2017-03-04 16:19:53 UTC
About the fonts:
I noticed after installing xlsfont that no font other than nil and fixed was displayed.
After doing xset +fp /usr/share/fonts/terminus/,/usr/share/fonts/unifont and xset fp rehash, "set_system_font("fixed", "terminus,unifont");" gave me the expected result.
This may be a Gentoo bug about fonts? (the X USE flag is set on both terminus and unifont)

About the rest:
I tried "set_variable("tab-width", "4");" but this gave an error "set-variable: tab-width -> 4" (doesn't really look like an error). The same command works inside qemacs.


I'd really like to make everything work, since this is a nice alternative to the behemoth that is GNU emacs. (uemacs-pk and mg could also be good alternatives; but the lack of syntax highlighting is a letdown)
Comment 5 Ulrich Müller gentoo-dev 2017-03-04 16:36:21 UTC
(In reply to Hadrien Lacour from comment #4)
> I tried "set_variable("tab-width", "4");" but this gave an error
> "set-variable: tab-width -> 4" (doesn't really look like an error).
Comment 6 Ulrich Müller gentoo-dev 2017-03-04 16:38:12 UTC
(In reply to Hadrien Lacour from comment #4)
> I tried "set_variable("tab-width", "4");" but this gave an error
> "set-variable: tab-width -> 4" (doesn't really look like an error).

Same here, setting tab-width in the config file seems to have no effect. The following seems to work, though:
default-tab-width = 4;
Comment 7 Hadrien Lacour 2017-03-04 17:01:49 UTC
It indeed works. Same for indent-width. Only indent-tabs-mode seems to be ignored, for some reason. Doesn't seem to be really different http://cvs.savannah.gnu.org/viewvc/qemacs/qemacs/variables.c?view=markup (maybe this method doesn't work with W_VAR?)?
Comment 8 Ulrich Müller gentoo-dev 2017-03-04 17:41:46 UTC
As I said, I'm not a QEmacs user myself. (Also Bugzilla isn't a help forum. :)

I'd suggest you contact upstream (for example, via their mailing list at https://lists.nongnu.org/mailman/listinfo/qemacs-devel). Looks like they should at least improve their documentation.
Comment 9 Hadrien Lacour 2017-03-04 17:57:01 UTC
I just did. Thanks for helping, anyway. Do you have another lightweight emacs to recommend, by the way? (maybe not the right place to talk about this)
Comment 10 Ulrich Müller gentoo-dev 2017-03-04 19:51:29 UTC
The Emacs project has a list: https://wiki.gentoo.org/wiki/Project:Emacs/Emacs-like_editors

See also bug 384451 (and the list of editors in the attachment there).

Personally, I would recommend mg if you want something really lightweight, or jasspa-microemacs if you want more bells and whistles, like syntax highlighting.