logs archiveIRC Archive / Freenode / #emacs / 2009 / December / 1 / 1
auclairb_
skorpan`: very impressive, i've been using emacs for a little while but i've just discovered ido, ecb and other great packages
oh and org mode which im discovering right now
boscop
what is wrong with lisp syntax? why didn't other languages adapt it?
skorpan`
ido should be enabled by default imo :P
boscop: the parentheses i guess
they *are* tricky to keep track of if you have a sh*tty editor
starchild
is ido analogous to iswitchb?
boscop
skorpan`: but in other languages you also have two parens per function call
sword
starchild: kinda
shabble
boscop: but in lisp they're also for scoping, assignment, and just about everything else ;)
ovnicraft
hi folks. i installed speedbar now how i can to set it in one frame with my buffer?, when i load it opens new frame
boscop
I'm implementing a toy language with ANTLR and I'm thinking about which syntax I should use.
ovnicraft: you can't
         

auclairb_
skorpan`: I think something that could be nice would be a kind of ranking of packages, once in a while i always check the firefox add-ons for the most popular ones, the same kind of system could be used for newcomers to discover popular emacs packages
boscop
it's written somewhere, I don't remember where though
probably in the readme
skorpan`
boscop: http://paste.lisp.org/display/91304
starchild
sword: so the functionalities do not overlap?
shabble
ovnicraft: have a look at teh emacs wiki, there's something there about single-frame speedbar
boscop
skorpan`: I know how lisp looks like
ovnicraft
shabble, thx
boscop
but I'm not sure how many percent of people would appreciate that syntax
or how many hate it
skorpan`
boscop: i was trying to make a point. look at those ending parentheses and imagine you're in notepad without paren matching.
boscop
skorpan`: lol, who edits code with notepad?
it doesn't even indent
skorpan`
boscop: you'd be surprised... a masters student at my university coded haskell using wordpad.
shabble
I'd had to "reeducate" people trying to code in MS Word, before.
boscop
o.O regularly?
skorpan`
boscop: regularly
not that he was a haskell wizard, but yeah, that's what he used
boscop
how bad. but I guess that's the minority
skorpan`
boscop: proof: http://groups.google.com/group/afp09/browse_thread/thread/0128752b6fc97581
boscop
lots of folks use full IDEs these days
shabble
I'd guess the majority use an IDE or generic text editor
boscop
shabble: which should handle lisp syntax
but I'm not sure whether I should use lisp syntax for everything, because people might find it hard to distinguish things with a first glance at some code
shabble
boscop: I suspect few handle it well
         

boscop
but it should be consistent
shabble
the main feature of lisp syntax is that it is homoiconic.
esbena
org mode.. what is the name of the function which closes all org-mode buffers/all buffers opened by the agenda?
jlf
,ruby
fsbot
try: EmacsLispForRuby EmacsRuby FlymakeRuby ruby-block.el ruby-mode RubyBlockMode RubyLanguage RubyMode RubyOnRails RubyTwoMode
ovnicraft
shabble, did you tell about http://www.emacswiki.org/emacs/SpeedBar#toc2?
jlf
hrm.. what's the closest approximation to slime in ruby-land?
technomancy
jlf: inf-ruby
it's not great though
jlf
what provides that?
technomancy
inf-ruby.el; it's in elpa
jlf
ah ty
shabble
ovnicraft: yeah, that's the thing I was talking about
tazle
(Action) wonders what a cons whose car is "DEAD" is
jlf
,yow
fsbot
You must be a CUB SCOUT!! Have you made your MONEY-DROP today??
tazle
apparently it's a GC'd object
DraX
if i have two windows open in a frame is there a way to swap them?
so the buffer in the window at the top swaps with the buffer in the window at the bottom
nik0z
Give instant Google Wave invites for Dropbox Refferal SignUp: http://j.mp/4A4ZD6 U don't need to send me mail, I will see it after sign up!
ryoma
what is the benefit of the subexp argument to replace-regexp-in-string?
also, if i have a whole set of replace-regexp-in-string operations to perform, is there a way to optimize that in compilation?
and finally :) is it at all beneficial to stick a small string in a buffer instead of using replace-regexp-in-string? the latter creates new strings.
bpalmer`
ryoma: one optimization is to put it in a buffer and do everything on the buffer, then extract it back to a string. Otherwise, it'd probably depend on the actual operations being done
ryoma
it's about 20 replacements in a single line
gbt
ryoma: the subexp argument allows you to match a long string but only replace a smaller part of it
see if this makes any sense (replace-regexp-in-string "he\\(99\\)o" "ll" "he99o a99z" nil nil 1)
only the "he99o" string will have the "99" replaced
ryoma
does that mean it's the same string?
it seems you could do that without that arg
that you could do the replacement without that arg otherwise, i mean
gbt
you mean you could replace "he99o" with "hello" directly?
ryoma
soemthing like that, using groups for the other parts. well, just wondering the reason for it. so i thought maybe it was more efficient or something.
nondestructive?
\\(h.\\)\\(99\\)\\(o\\) could become \\1ll\\3 for the same effect
(i think)
gbt
I think the main reason for it would be when the regexp is complicated so you match a range of patterns but only change a few characters in each
sword
backslash constipation
ryoma
it seems a little, um, single-purpose -- it only applies to one group. in that case, maybe you could make a group around the first part and the last part. well, not trying to complain. i think i understand it now, except for whether it is nondestructuve.
nimred
what's this big sh*t message : "OverflowError: mktime argument out of range" using offlineimap ?
gbt
ryoma: based on a little test the original string isn't changed by a match
timcharper
nimred: my best guess would be an invalid time stamp on a message
,,offlineimap
fsbot
From memory, offlineimap is http://software.complete.org/offlineimap/
timcharper
is offlineimap for emacs ? I don't even know what it is
sword
timcharper: it's basically a way to have sync'ing imap folders
timcharper: for offline use, multi-acct syncing
timcharper
cool.
,...
rudybot
Woof.
fsbot
[In the distance, you hear a dog bark]
timcharper
,..
fsbot
[Too many DB matches] [google] http://www.emacswiki.org/alex/Matthias
http://www.emacswiki.org/alex/
rgr
,...
rudybot
Woof.
fsbot
[In the distance, you hear a dog bark]
technomancy
does stashing in git add the changes to the index?
(Action) just killed a stash by accident
offby1
technomancy: nice mention of you in http://www.tbray.org/ongoing/When/200x/2009/11/30/Idiomatic-Clojure
I don't think git-stash _adds_ to the index; in fact I think it resets it.
technomancy: I assume you can get the stash back with "git reflog show stash@{0}"
ah, except that stashes don't have refs :-(
technomancy
offby1: yeah, ended up having to rewrite the function.
was only ~10LOC luckily
yeah, I wanted to meet Tim Bray at RubyConf, but he left early. =\
need to get in the habit of a quick stage+unstage before stashing I guess
just so my stuff makes it into the reflog
offby1
kinda weird
twb
Is git stash an attempt to implement Darcs-like hunk cherry picking on top of a naïve system, like bzr shelve?
ryoma
seems weird that stashing is its own thing, instead of somehow like ordinary commits, but i don't know enough about it
aartist
pwd
legumbre
~/aartist-mode
aartist
legumbre: thank you.
legumbre: how to use it?
twb
ryoma: maybe it's meant to be like hg's VCS-specific non-portable quilt knock-off.
bpalmer`
offby1: wait, you're sure stashes don't have revs?
(Action) coulda sworn it'd be implemented like that... *rummage rummage*
'The latest stash you created is stored in $GIT_DIR/refs/stash; older stashes are found in the reflog of this reference and can be named using the usual reflog syntax (e.g. stash@{0} is the most recently created stash, stash@{1} is the one before it, stash@{2.hours.ago} is also possible'
which at least sounds like exactly what you wanted.
legumbre
aartist: you tell me! :)
auclairb
Is there a way to tell emacs not to catch a certain keyboard shortcut and let it propagate to OSX ?
twb
auclairb: don't bind them
auclairb
It isnt bound i think, emacs says "<s-return> is undefined" when do it
when I* do it
twb
auclairb: what is the value of window-system, and emacs-major-version?
aartist
w32, 23
auclairb
twb: how do i find out ?
twb
auclairb: C-h v
Or just type them and then C-x C-e
auclairb
windows-system's value is ns
emacs major version is 23
twb
auclairb: OK, that is good. I do not know why Emacs is catching Super+Return when it isn't bound -- you should ask some OS X people how keybinding works there, since I only know about X11.
auclairb
twb: ok, thanks for your help
I'm trying everything to get emacs 23.1 fullscreen on osx
twb
auclairb: just start Emacs with -fs
auclairb
emacs.app ?
fsbot
From memory, emacs.app is a Cocoa port of GNU Emacs for GNUstep and MacOS X, found at http://emacs-app.sourceforge.net
twb
auclairb: oh, you're starting it by double-clicking on an icon?
auclairb
almost :), using spotlight
twb
Same sh*t
I dunno how you manage it in OS X, sorry.
If you were starting it by hand, you could use the binary inside the .app directory
auclairb
doign this from terminal /Applications/Emacs.app/Contents/MacOS/Emacs -fs doesnt make any diff
mqt
emacs 23 on OSX doesn't support fullscreen yet
auclairb
mqt: oh true I've read that somewhere, I'm trying to have a workaround with megazoomer but emacs grabs <s-return> even thought its unbound
twb
auclairb: it might not be -fs; try --help
mqt: ah, thanks
auclairb
it grabs s-return but it doesnt grab s-space
twb
You would think even a piece of sh*t like OS X would allow you to change the window management paradigm :-/
Even windows allows you to run different "graphical shells"
auclairb
twb: I find osx pretty neat, what OS makes it look like a POS in comparison ?
sword
,twb-fix
fsbot
Most problems can be solved by installing Debian.
auclairb
Interesting I'll have to try that one
hopefully firefox is more stable on it than on ubuntu 8.04
bremner
well. in the sense that it doesn't have firefox, yes, it is very stable :)
consolers
it has a half life of what? 15 days?
before the next upgrade?
bremner
this is debian we are talking about. Rapid upgrades are not a problem.
consolers
thats entirely orthogonal to stability
quit making false claims!
its like saying sbcl is stable because i have a cron job which kills it and restarts it every hour
cron jobs are not a problem!
twb
Firefox isn't available for Debian.
consolers
most problems can be fixed by buying a vasectomy
twb
Does ed honour VERSION_CONTROL=numbered?
Nope
consolers
so alephnull did you register yet for ACM bangalore conference?
inkbottle
hi, do you know how I can have a kind of 'dump' of the current face configuration: a elisp line describing all the variables setting at once?
consolers
M-x apropos custom-save
M-x apropos custom.*save
Drakeson
is there a way to make artist-mode use box drawing characters?
twb
inkbottle: GET-FACE?
inkbottle: sorry, it's facep
,(facep 'default)
fsbot
[face unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified] ..(vector)
inkbottle
hi
twb, doesn't work then?
twb
inkbottle: I don't understand the question.
inkbottle
twb: i was asking if (facep 'default) could be the solution: when i type it it produces the same output as here with fsbot
twb
inkbottle: 'default is the face name
Clearly all the attributes of your "default" face are unspecified.
inkbottle
twb, sory :)
rr*
twb
,(facep 'bold)
fsbot
[face unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified unspecified] ..(vector)
twb
Hmph
inkbottle
then i should do a 'loop' over all the existing faces (at present time)
twb
I don't know
inkbottle
twb: thanks for the help, i need to go, bye
chrisw_
Hi all, is there a dedicated channel for Aquamacs on freenode, or is this channel the only one?
twb
,aquamacs
fsbot
[->] From memory, AquamacsEmacs is [0] a fork of Carbon Emacs broken to behave less like Emacs and more like OS X <http://emacswiki.org/wiki/AquamacsEmacs>
[1] therefore difficult for us (#emacs) to provide support for, because it doesn't behave like Emacs is supposed to, ..[Type ,more]
twb
chrisw_: AFAIK there is no aquamacs channel; here we will encourage you to migrate to GNU Emacs 23 (which has a Coacoa backend).
chrisw_
k
does that mean my .emacs file from windows should work fine on Emacs 23 on Mac?
twb
That depends what's in your .emacs.
chrisw_
lisp ;-)
nah, I don't think I use any binary extensions
I'm forever fighting with tramp :-(
« prev 1 2 3 4 5 6 next »