XPP can't write temporary file from Emacs

Asked by Keith McClelland

I have always used xpp to print from emacs. I recently had a problem upgrading to Ubuntu 15.04 and had to reinstall most everything. Emacs is 24.4.1. xpp is the same as always and works if called from the command line.

However, selecting an emacs print menu item and pressing PRINT in xpp leads at once to a dialog box that says "unable to create temporary file".

Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu xpp Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Try adding this line to /etc/fstab

tmpfs /tmp tmpfs defaults,noatime,mode= 1777 0 0

And reboot. May help

Revision history for this message
Keith McClelland (zismylaptop) said :
#2

DON'T TRY THIS! It killed my computer and I had to undo it from the emergency terminal before I could run again.

(Note, I'm running Ubuntu 15.04 on a Microsoft Surface Pro 3 using a hand-crafted Linux 4.0 kernel).

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

It didn't kill your computer at all, if you can undo the change then it's not dead. You cannot undo death......

Try being less melodramatic.

If its a self roiled kernel then I suggest you try the official kernel. You may have omitted some features and causing the issue

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Hedley Finger (hedley-finger) said :
#5

I just installed xpp (X Printing Panel) from the Ubuntu repositories. It designed to print ASCII/Unicode files only and is mostly used to print from GUI Emacs so you can specify additional print options. Raw emacs assumes a simple teletype printer.

 1 Install xpp.
2 Create ~/.emacs file.
3 Add this to ~/.emacs file:
    (setq lpr-command "xpp")
4 Launch emacs25, GUI version.
5 Open a file to print.
6 Print file (File > Print Buffer). A Question alert displays "Send current buffer to default printer?".
7 Click Yes. The X Printing Panel dialogue appears, with the default printer selected.
8 Click Print. An "Unable to create temporary file." alert appears.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

If you run emacs with sudo do you get the same warning message?