logs archiveIRC Archive / Freenode / #emacs / 2010 / April / 13 / 1
licoresse
,vim
fsbot
licoresse: hmm, vim is [0] a programmable vi distribution <http://www.vim.org>, #vim
[1] see ,viper for Emacs vi(m) emulation,
[2] a witch because it weighs the same as a duck, and is therefore made of wood. Both witches and wood burn, therefore, vim is a witch.
licoresse
how can I read the hooks set to 'clojure-mode-hook
bpalmer
licoresse: C-h v clojure-mode-hook RET
it's just a list of functions to be invoked.
licoresse
thats odd
bpalmer
in what way?
licoresse
I'd like to find out where (idle-highlight 1) is set
and it was not i 'clojure-mode-hook
s/i/in
bpalmer
it could be set globally, or it could be set in one of clojure's parent modes
(parent mode hooks are invoked)
licoresse
if it's set globally, where would I look?
(Action) should also check the parent modes, of course
         

bpalmer
check its value in other buffers, and (default-value 'idle-highlight)
ober2
hmm clojure-mode
licoresse
ober2: what bout it=
technomancy
licoresse: in the starter kit? look for coding-hook
licoresse
technomancy: not using starter kit
technomancy
weird
you could ,,tdoe and define idle-highlight to throw an error then read the stack trace =)
fsbot
tdoe -- [0] type M-x toggle-debug-on-error RET, reproduce the problem, then lisppaste the contents of the backtrace buffer.
[1] NOTE: you dont *have* to lisppaste, just contemplating the backtrace will often give you enlightenment
licoresse
technomancy: good idea!
ober2
licoresse: just thinkign I need to clean up my .emacs and clojure stuff was the last I piled on top of it.
bpalmer
in a new emacs, that will help pin down when it was, but not from where, set.
licoresse
I luv bookmark+ mode
bpalmer
let's estimate how many gas stations there are in the US.
ober2
google interview? :P
legumbre
what ever happened to hannah montana linux?
licoresse
uh?
legumbre
nvm
srbaker
technomancy: how do i get a list of files in magit? i want to git rm some files, but from emacs
srid
M+! git rm file1 file2?
ded`
In elisp, is there a way to ask for the last visible position in the buffer? I.e. the value of point such that trying to move one line down would cause the window to scroll?
bpalmer
that's a property more of the window than the buffer. Look at the window-end function.
         

Quadrescence
is there an m68k asm mode out there?
bpalmer
most of the assembly sticks with the generic asm-mode
(which seemed adequate for barebones m68k last time I messed with it, although not awesome)
ded`
bpalmer, thanks
ams
i love you all
kodein
are you drunk?
ams
yes
kodein
cool.
ams
all that obvious?
kodein
maybe.
(Action) goes to sleep
ams
(i'm past drunk actually, something like 15 pints, vodka, and other gorgeous stuff)
jlf
ams: you're like a chocoholic, but with alcohol!
ams
chocoholic?
jlf
someone who's addicted to chocolate
ams
oh, i'm addicted to chocolate...
i love chocolate...
damd
i'm a chokoholic
ams
chokoholic?
damd
i'm addicted to getting choked
ams
oh
doesn't sound health
y
damd
today is a great day for me
ams
me too
damd
i got another patch approved by emacs devel
this one requires me to sign legal papers
pretty bad ass ;I
fledermaus
that reminds me.
anyone in youch w keramida? he's gone awol afaict.
touch
ams
damd: lame, i send out a copyright assignment once twice a month it feels liek
damd: how about this, i got a sweet kiss from a quite a cute gal today...
damd
ams: they require you to do this for every single patch?
kisses are so 2002
ams
damd: no, patches that are legally significant
fledermaus
damd: no, once you've given them assignment papers you're covered for all contributions unless your employment status changes
ams
fledermaus: well, not..
the assignment as such is valid even though you change jobs...
as such...
fledermaus
that depends on your new contract
ams
but, given that you might need permission from your employeer to contribute stuff
right..
you need a disclaimer..
which ain't the same as a copyright assignment
damd
how would my employment status be relevant to my emacs patches?
ams
damd: depends on the contract
nym
i have a regular expression that i think should work but isn't .... ^\(\d+\)\S+\(.+\)$ (trying to match digits whitespace anything-till-end-of-line, e.g. '13 foobar')
damd
nym: \d is not in emacs
[0-9] is
ams
damd: the difference is that a copyright assignment states that your code is copyrighted by the fsf, whilst a disclaimer states that yeah, this code is fine to contribute....
damd: so you need an assignment, _and_ a disclaimer, depending on stuff
damd
nym: also, it's \s-+ not \S+
fledermaus
uh
ams
oh
fledermaus
\S+ would map to \S-+
nym
damd: doh
fledermaus
\s+ would map to \s-+
damd
fledermaus: in re-builder that is not true
fledermaus
then re-builder is getting it wrong.
ams
mm..
fledermaus: ?
fledermaus
\S+ is _non_ whitespace in POSIX/perl style regexps.
damd
fledermaus: isearch-backward-regexp gets it wrong too?
ams
fledermaus: i love you
fledermaus: pasl?
fledermaus
damd: I think you're mixing up whitespace and non-whitespace classes
stepnem
I wonder if the FSF assignment requirements are based upon something less theoretical than possible better position in a possible copyright legal case
damd
fledermaus: all i'm saying is that \S+ and \S-+ give different matches
ams
stepnem: that is what they are based on...
stepnem: in a legal case, it is unfeasible to ask 100000 people to come to court
stepnem
ams: yeah, I know, but were there any actual cases that would justify that concern?
damd
\S+ seems to match *everything* whereas \S-+ matches anything non-whitespace (which is correct)
fledermaus
damd: yeah, but you said \s-+ not \S+ <- doesn't that invert the sense of te whitespace test from the original?
ams
stepnem: most cases are done behind doors.
closed doors
damd
fledermaus: nym did say he wanted to match whitespaces
stepnem
and particularly the form of the assignment -- papers, papers, papers
fledermaus
damd: oh, I just read his regexp, not the accompanying text
carry on
damd
:)
ams
stepnem: well, you get stickers1!!
stepnem
ams: all the worse
nym
damd: i want to match multiple whitespace
damd
why is \d not in emacs btw?
nym: so \s-+ then
stepnem
just wasting resources
ams
stepnem: but i know of a few cases (not privy to all) that have been solved due to the fact that we had assignments
nym
damd: what does that mean?
damd
nym: \s- means whitespace, \s-+ means at least one
nym
why is it \s- ?
i'm just a little confused why a minus sign is there
damd
\s doesn't mean whitespace, it means something like "anything from the class represented by the following char"
"\s +" would actually work just as fine
` ' and `-' both mean whitespace
ams
damd: <3
nym
damd: thank you for explaining
damd: i'm much more likely to remember why than what
jlf
umm.. what's the idiomatic way to do (car (last list)) ?
nym
damd: and i hate asking twice
ams
jlf: (cadr lst?
jlf: (cadr lst)?
jlf
,(cadr '(1 2 3 4))
fsbot
2 ..(integer)
jlf
i want 4 in that case
bpalmer
jlf: (car (last list)) is the idiomatic way, I think.
ams
oh
mm..
(car (last lst))
:)
(schemeism creeping through here...)
jlf
bpalmer: huh. /me grumbles about the asymmetry between first and last.
damd
,(last '(1 2 3))
fsbot
(3) ..(cons)
ams
jlf: hm? first is clism
bpalmer
jlf: or, perhaps, (loop for (h . tl) on '(1 2 3 4) if (null tl) return h)
ams
loop is clism
jlf
ams: i dunno, i learned first/last/butfirst/butlast when i learned scheme
ams
jlf: was refering to not naming things list..
jlf
oic
ams
(car list) would get the car of the function list...
in scheme
bpalmer
jlf: yeah, it's asymmetric. Downside of lists being sugar over cons
ams
nothing asymmetric about it...
first is not a elisp function
technomancy
butfirst is an awkward way of saying rest
ams
also not a elisp function, clism that too..
jlf
technomancy: but it makes me snicker
technomancy
you're thinking of buttfirst
jlf
they sound the same!!
ams
(i hate 'cl, fubars alot of stuff)
mm...
proun
anyone use nxhtml-mode? my javascript will hightlight on load fine, then the js coloring will turn off when i click on the section
ams
no
damd
proun: i recall nxhtml breaking completely last time i tried to do what you're doing
infinite loop without the possibility of C-g
ams
that is a feature
rm
proun
damd: ive had some limited success changing some faces, just can't get that js color to stick
seems like a promising mode, but the default colors are dreadful
ams
cripie.. i'm to drunk for my own good.
ibeekman
I am confused as to how to add an entry to the list: flymake-allowed-file-name-masks
I can see the contents via M-x customize-group RET flymake RET
but I can't seem to edit them.
man much quieter in here than normal
jlf
,....
fsbot
[the sound of crickets permeates the air]
bpalmer
,music
fsbot
From memory, music is [0] http://gnuart.org/english/links.html
[1] http://www.emusic.com,
[2] see also EMMS
bpalmer
feh. at any rate.
if nothing else, you can use add-to-list. Don't know why you wouldn't be able to edit it.
and it's quiet because we can't figure out how to enter insert mode on our ipads using a palm hardware stylus without triggering GUN/Windows's UAC dialog.
ibeekman
hmmmm ipad
so wait is it jail broken? Running emacs?
jlf
i think it was jailbroken within 24 hrs of release
ibeekman
I mean this ipad, i know that, I was more wondering if there was an OKed emacs app or something to that extent
but I suppose that's foolish thinking on my part
after all, its not written in c/c++/etc
and other languages (like lisp) are evil according to jobs
(Action) is hoping someone comes up with a clever linux tablet so i can jump on the tablet bandwagon without spending a fortune and without compromising my dignity
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 next »