logs archiveIRC Archive / Freenode / #emacs / 2009 / November / 20 / 1
neosoothsayer
when doing a M-x compile, how does one change the directory that make will run in? I may be editing a file in src/lang dir, but I wish make would run in src dir
something to do with default-directory?
CalJohn
neosoothsayer: try "cd ../ && make all"
you don't need to change the working directory, because make uses subshells with the PWD set relative to the location of the make file
neosoothsayer
CalJohn: sorry about being obtuse here, but I dont understand where should I enter "cd ../" - the documentation only says run "M-x compile". Documentation doesnt say anything about changing the directory there :(
the documentation for "Running compilation under Emacs"
CalJohn
well, when i run the command "compile", it prompts for a command
(a shell command
)
tensorpudding
M-x compile asks you for a compile command, it defaults to make -k or somesuch, which it enters into the shell, you can put the command there
neosoothsayer
Ah, cool. I can configure it from compile-command variable. Neat! Thanks CalJohn
and thanks tensorpudding
jlf
,...
rudybot_
Woof.
fsbot
[In the distance, you hear a dog bark]
         

rgr
hmmph. will have to reconsider my defence of IDO. It fu*ks up remote commands after you have opened an eshell and cd'd into a remote host.
bbeecher
Is there a function to take the first n elements from a list built into emacs? Or are you supposed to use butlast for that?
neosoothsayer
,compile
fsbot
[Too many DB matches] [google] http://www.emacswiki.org/emacs/ModeCompile
http://www.emacswiki.org/emacs/compile-20.el
froog
bbeecher: subseq
bbeecher
froog: ahhhh, great
neosoothsayer
,compile function
fsbot
I think wxwidgets is [0] at http://www.wxwidgets.org/ ..[Type ,more]
ggole
,df compile
fsbot
compile is an interactive compiled Lisp function in `compile.el'.
It is bound to <menu-bar> <tools> <compile>.
(compile COMMAND &optional COMINT)
Compile the program including the current buffer. Default: run `make'.
Runs COMMAND, a shell command, in a separate process asynchronously ..[Type ,more]
neosoothsayer
thanks!
jlf
bbeecher
jlf: I honestly wondered if they did that on purpose when I saw it
Andorka
Fatal error: Call to undefined function bugfix() in /home/php/public_html/releases/5_3_1.php on line 23
jlf
that sh*t is funny, yo
tensorpudding
people still use PHP?
shabble
more's the pity
DuClare
tvl
hi. i have multiple (3) frames opened with C-x 3. is there some way to switch between them directionally, as in not cycling through all with C-x o?
aep
are there any modes for flex/bison ?
         

bob2
,,winner-mode
fsbot
hmm, WinnerMode is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?WinnerMode
[1] can revert previous or next window layout.
bob2
hm, wrong one
there's some mode that binds shift-arrow
jlf
tvl: those are called "windows", in the parlance of our times
skorpan
bob2: cua-mode?
jlf
,windmove
fsbot
I think windmove is [0] a package that makes switching windows easy; just use shift and a direction key to switch to another window
[1] activated via (windmove-default-keybindings),
[2] at http://www.emacswiki.org/cgi-bin/wiki.pl?WindowNavigation, ..[Type ,more]
skorpan
oh, heh
froog
I think there's one where you can assign numbers to the windows and jump that way
can't remember the name though
DuClare
Jump what way?
skorpan
DuClare: that way = in that manner
froog
between them
jlf
,categorywindows
fsbot
CategoryWindows is at http://www.emacswiki.org/cgi-bin/wiki.pl?CategoryWindows
DuClare
skorpan, Jump by assigning numbers?
:p
neosoothsayer
hey guys, I wish Emacs to set its default directory text in find-file to be the directory that started emacs from
bob2
it does do that
e1f`
,flex
fsbot
try: EmacsFlexDebugger FlexMode
e1f`
,flexmode
fsbot
FlexMode is, like, at http://www.emacswiki.org/cgi-bin/wiki.pl?FlexMode
skorpan
neosoothsayer: use (cd "~") in a hook that is called when finding a file
e.g. find-file-hook :)
e1f`
aep: see aboce
above
skorpan
neosoothsayer: (add-hook 'find-file-hook (lambda () (cd "~"))) or something
aep
thanks e1f`
tvl
window-number-mode is supersexy
neosoothsayer
Nah, whenever I start emacs from a terminal session, it just throws open the scratch buffer, and C-x C-f shows "~" in the minibug
minibuf*
skorpan
well that doesn't happen here
what version of emacs?
neosoothsayer
23.1
skorpan
try emacs -Q
and try to reproduce the problem
aep
e1f`: that link is broken
tensorpudding
anyone use ido mode?
bob2
lots o people
skorpan
,anyone
fsbot
Please do not ask if anyone uses, knows, is good with, can help you with or is a guru/expert of <some program>. Instead, ask your real question.
bob2
!ask
neosoothsayer
skorpan: Let me try the hook option!
skorpan
neosoothsayer: did you try it using "emacs -Q"?
tensorpudding
okay, suppose you have a file you want to write as bar.c, and you already have a file in that directory called foobar.c, how do you get it to save as bar.c and not autocomplete to foobar.c?
skorpan
if it happens when you start emacs that way, something is *really* messed up
tensorpudding: hit C-f when in ido
that will hax it way back to default find-file
its way*
tensorpudding
ah good, thank you
e1f`
aep: the emacswiki link? or the flexmode link?
aep
e1f`: the mode
e1f`
the emacswiki link works for me
did you try the wayback machine?
aep
hmm good ideaq
e1f`
what about bison mode?
aep
broken too
e1f`
ah
aep
yey wayback works
neosoothsayer
what is the variable that stores the directory that emacs was started from?
aep
nouu. waback lacks the flex mode D:
at least bison works
disturb
hi folks
anyone know if i can get emacs to highlight the whole block in between parens ?
not just the matching paren,everything in between
jlf
,dv show-paren-style
fsbot
not documented as a variable.
neosoothsayer
skorpan: emacs -Q seems to be working right. C-x C-f shows the current directory in the minibuf
jlf
bug?
fsbot
I heard bug is since it "just works" for me, you have to tell us what you are doing exactly, what you expect to happen, and what happens instead. .. + other entries
jlf
,df show-paren-mode
fsbot
show-paren-mode is an interactive compiled Lisp function in
`paren.el'.
It is bound to <menu-bar> <options> <highlight-paren-mode>.
(show-paren-mode &optional ARG)
Toggle Show Paren mode.
With prefix ARG, turn Show Paren mode on if and only if ARG is positive. ..[Type ,more]
jlf
,m
fsbot
fsbot-more ..(symbol)
neosoothsayer
I checked my .emacs, and there is nothing that changes any working directory. I do have icicles installed though...
jlf
,more
fsbot
To see docs after <..+more>, type , more or ,l. Also use ,TERM N to see the TERM nth entry onwards.
jlf
(Action) gives up
,(require 'paren)
fsbot
paren
jlf
,dv show-paren-style
fsbot
Style used when showing a matching paren.
Valid styles are `parenthesis' (meaning show the matching paren),
`expression' (meaning show the entire expression enclosed by the paren) and
`mixed' (meaning show the matching paren if it is visible, and the expression
otherwise). ..[Type ,more]
jlf
\o/
oxi
does anyone have an idea how to add a top margin?
neosoothsayer
How does one set default-directory at startup to the directory that emacs was run from?
oxi
left/right margins can be added with M-: (set-window-margins (selected-window) 5 10) or (set-fringe-mode '(20 . 35))
bbeecher
is there a function like mapcar but for the cdr?
neosoothsayer
,default-directory
fsbot
jlf
bbeecher: what are you trying to do?
bbeecher
jlf: man I don't even know any more. lisp is hurting my brain :(
jlf: what I'm trying to do is find all combniations of a list
ryoma
bbeecher: are you sure whatever other language didn't hurt your brain and you are having a detox reaction?
not*
:)
bbeecher
jlf: I had this idea that I could stack the possibilities, like (a b c d e f g) => (a (b (c (d e f g) ....
jlf: I think I just need to make a separate tree for each starting letter though, rather then trying to do it as one huge list
ryoma: it is possible - I need me the sweet sweet sauna of emacs to sweat out the side effects
ryoma
can't type now but i'd try just recursion
bbeecher
ryoma: that's what I was trying, but I'm getting stuck
funkenblatt
well, i'd give you a paste for what i have
but that wouldn't be fun
bbeecher
funkenblatt: no it wouldn't :) What's the point of doing exercises if you're just going to cheat. I think I'm gonna think about it for a while and come back to it
mns
I should probably know this, but I'm drawing a blank for some reason today. What is the option that gets set to say that I want tab to insert space rather then actual tabs ? I've found tab-width which I've got set to 4, but I don't think that is it.
funkenblatt
instead you should paste what you have and then we can discuss further
jlf
bbeecher: are you intending to take something like (A B C) and produce ((A B C) (A C B) (B A C) (B C A) (C A B) (C B A)) ?
mns: ,,dv indent-tabs-mode
fsbot
*Indentation can insert tabs if this is non-nil.
You can customize this variable.
e1f`
ftp.sunet.se/pub/gnu/emacs-lisp/incoming/flex-mode.el
doesn't seem very big
aep: ^
bbeecher
funkenblatt: I don't have anything worth showing yet.. soon I hope
emacsphan
,eshell
fsbot
eshell is [0] the shell implementation written entirely in elisp. Finally a decent shell, no matter where you run Emacs.
[1] at http://www.emacswiki.org/cgi-bin/wiki.pl/CategoryEshell
funkenblatt
eshell decent? i dunno about that
mns
jlf, thanks.
bbeecher
jlf: No, I'm trying to produce something like (combine 2 '(a b c)) => ((a b) (a c) (c b))
legumbre_
abc, easy as 123, oh simple as do re mi, abc baby you and me girl!
bbeecher
jlf: I'm not so good at math, but I think the right term is combination? I'm just doing it to practice my elisp so I can walk away for a while if I can't figure it out
aep
e1f`: hey that one works, thanks :) still fighting to get bison working :/
funkenblatt
yeah, what jlf mentioned is the permutations of the list
jlf
bbeecher: you used the term correctly.. many people confuse permutations and combinations. because permuting a list is a common exercise i assumed that you had done so.
bbeecher
funkenblatt jlf: I actually haven't done permute yet - perhaps I should try that and come back to this
funkenblatt
i personally think combinations are easier
bbeecher
funkenblatt jlf: regardless, my head hurts and I need to take a break for a while :) Thanks for your help, and I'll probably come back asking for more
emacsphan
,eshell manual
fsbot
EshellManual is at http://www.emacswiki.org/cgi-bin/wiki.pl?EshellManual
funkenblatt
i wish emacs lisp had an ffi
hober
funkenblatt: sadly, there are potential license issues with the dynload patch
aep
anyone knows a decent dark color scheme that highlights C/C++/java/etc keywords properly?
emacsphan
is eshell quite popular?
aep
most of the built in ones treat keywords like identifiers
johnw
funkenblatt: what's wrong with eshell?
funkenblatt
well admittedly i haven't used it in a while
but when i last used it it didn't have pipes
johnw
it does have pipes!
it just doesn't have stdin
you can: cat foo | wc -l
but you can: wc -l < foo
s/can/can't
funkenblatt
yeah well when i last used it it didn't
DraX
which can't? :P
johnw
odd, it's had them from like version 0.2 :)
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 next »