You are not logged in.

#1 2010-07-21 23:22:29

maroxe
Member
Registered: 2009-02-05
Posts: 53

Configuring DWM in emacs => Unknown error

Hi,
I followed the wiki on how to install/configure dwm. Every thing works right. I tried to edit the config.h in emacs, but whenever  i try to run makepkg inside emacs, i get this:

==> ERROR: An unknown error has occurred. Exiting...

Inside emacs means executed from emacs shell(M-x shell) or compile command(M-x compile)

And an other question not really related to the topic: how to restart dwm from the command line?

Offline

#2 2010-07-21 23:41:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Configuring DWM in emacs => Unknown error

I can't help you with the Emacs question, but restarting dwm depends on how you set it up: if you used the ABS method, you should be able to recompile and then either kill the current running process and restart (ugly) or start it in a while loop and bind restart to a key, like so:

http://wiki.archlinux.org/index.php/Dwm … g_programs


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-07-22 00:23:45

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Configuring DWM in emacs => Unknown error

ok, i didn't tought about this this way.
does makepkg need any thing special in a terminal that emacs shell doesn't have?

Last edited by maroxe (2010-07-22 00:28:04)

Offline

#4 2010-07-22 00:49:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Configuring DWM in emacs => Unknown error

Sorry, I don't know. But you could always try building something else and see if that also throws the same errors.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2010-07-22 01:11:23

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Configuring DWM in emacs => Unknown error

it's not related to any package. I tried running makepkg in an empty directory, i get the same error message.

Offline

#6 2010-07-22 01:21:23

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Configuring DWM in emacs => Unknown error

I also noticed that when i restart dwm(by killing it), my apps are still there but are all in tag1 in screen1. That's annoying!

Offline

#7 2010-07-22 01:34:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Configuring DWM in emacs => Unknown error

maroxe wrote:

it's not related to any package. I tried running makepkg in an empty directory, i get the same error message.

Try running it in xterm or some other shell to see if it is Emacs-related, or not.

maroxe wrote:

I also noticed that when i restart dwm(by killing it), my apps are still there but are all in tag1 in screen1. That's annoying!

Yes, it would be. Have you set up rules for the apps in your config.h so they only appear in certain tags?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2010-07-22 02:41:37

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Configuring DWM in emacs => Unknown error

Try running it in xterm or some other shell to see if it is Emacs-related, or not.

It works in any other term except emacs

Yes, it would be. Have you set up rules for the apps in your config.h so they only appear in certain tags?

You don't understand. For example if i open firefox on screen1:tag3 and xterm in screen2:tag9 and restart dwm, they all go to screen1:tag1

Offline

#9 2010-07-22 02:54:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Configuring DWM in emacs => Unknown error

maroxe wrote:

It works in any other term except emacs

Sorry - beyond my ken.

You don't understand. For example if i open firefox on screen1:tag3 and xterm in screen2:tag9 and restart dwm, they all go to screen1:tag1

Oh, I do. If you set Firefox to only open in tag 3, then when you restart, that's where Firefox will be - see my configs for examples of the rules...

# edit You might want to change the title of your post as this is not about dwm (which means you will attract a wider audience) and it is about Emacs and makepkg (which might attract a more knowledgeable one...

Last edited by jasonwryan (2010-07-22 02:59:38)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2010-07-22 02:57:22

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Configuring DWM in emacs => Unknown error

i don't want firefox to always be in tag3, but i want it to stay in the same tag before i restart dwm.
(i forgot to say it earlier, do THANK YOU for yur help, what a great community big_smile )

Offline

#11 2010-07-22 03:01:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Configuring DWM in emacs => Unknown error

No problem. You might be out of luck. dwm will allow you to confine an application to a certain tag, but beyond that you would need more sophisiticated functionality.

FWIW, dwm is designed so that apps have their own tag(s) and you pull them into view - the screen/workspace model doesn't really apply here...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2010-07-22 03:08:08

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Configuring DWM in emacs => Unknown error

Even the information about the tag are ommited! all applications go to tag1!
I think i must create a bash script that save those information and restore them later.

Offline

Board footer

Powered by FluxBB