logs archiveIRC Archive / Freenode / #emacs / 2015 / October / 12 / 1
it3ratio`
question - if i evaluate something like mode-line-position, i get a big list of stuff - but some of the output is of the form (column-number-mode ... ...) - any way to expand the ...'s?
and / or what is going on there
i suppose a better question is, how do i show the full contents when C-j - ing something
parsnip
is comment-style buffer-local by default?
it3ratio`: in *Messages* buffer?
it3ratio`
nah, say you're in the scratch buffer (or any buffer in lisp interaction mode)
type
mode-line-position C-j
(aka eval it)
notice all the "..."'s
cajetanus
:n
?
it3ratio`
just trying to understand what that means and / or if it's just not showing the whole contents
parsnip
it3ratio`: how about C-h v mode-line-position, quick fix ;)
it3ratio`
haha
rofl holy *%@(
it3ration
lots of stuff there
is there some way to instruct C-j to show the full contents?
maybe a prefix arg, me checks
ah yep
C-u 0 C-j
god that variable is enormous
wasamasa
don't mess with the mode line or the mode line will mess with you
         

Humbug12
In *Custom Themes* one of the themes description is "Minor tweaks to the Emacs dark-background defaults". How can i just change the theme from light-background defaults to dark-background defaults?
wasamasa
well...
customize `frame-background-mode'
but don't mix this with terminal colors that are the opposite of that
that aside, if this theme you're speaking of is worth it, it won't require the dark background to have been enabled before
holomorph
we must go deeper https://i.imgur.com/stUP4R8.png
it3ration
wasamasa: customizing the modeline actually seems pretty straightforward
wasamasa
it3ration: that's just the first impression :P
it3ration
mode-line-format - just recursively concats everything in this
wasamasa
holomorph: that thing is so broken, it's not even funny
it3ration
there's docs online and everything haha
wasamasa
holomorph: do you know who its author is?
holomorph
wasamasa: i don't recognize the name
it3ration
took me a minute to figure out how it was processing that stuff, but it just recursively concatonates things - unless it hits an (:eval ..)
wasamasa
holomorph: it's the guy behind auto-complete-mode
holomorph
oic
wasamasa
so far I've found two bugs, first, it's a terrible idea to enforce a column width for a tree without any way of scrolling
holomorph
oh, it's not even tabulated-list-mode :(
wasamasa
second, if you toggle between the tree modes, it doesn't work properly as it doesn't deactivate the other options first
therefore you'll only see the changes applied correctly if you toggle them in the right order
holomorph
D:<
wasamasa
I can't even fathom how this made it into emacs
maybe I should bother writing a patch and send it to debbugs...
holomorph
please D:
Fuco
aaaaah that fu*king bullsh*t org mode bug with clipboards
         

wasamasa
did you know the truncation effect is only visual?
Fuco
may all the gods destroy x clipboard
wasamasa
you can expand the list items if you're on the right line (and get another fun visual glitch after a certain depth)
then just copy the whole buffer text into another buffer and you get something usable!
it's how I've worked around it so far
parsnip
so man pages look horrible in ansi-term? underlining is a mess.
holomorph
just reversing the columns and not truncating anything would help i imagine
wasamasa
holomorph: but that would be totally controversial!
holomorph: at least as controversial as my snake patch
holomorph
wasamasa: did you submit your snake patch?
wasamasa
holomorph: yes?
holomorph
oh, i missed the controversy then lol
wasamasa
there isn't any, it just hasn't been applied as swiftly as the tetris one
and was labeled as wishlist item
holomorph
hm
bump it
bremner
what is this, ubuntu
holomorph
i had a trivial patch that was wishlisted--i made some noise and it was applied
wasamasa
(Action) takes notes
holomorph
wasamasa: aware of #6749?
wasamasa
holomorph: nope
holomorph
i wonder if that person submitted paperwerks
wasamasa
holomorph: fun, apparently I'm not the first
that's a clever idea, making the behaviour customizable
the patch isn't perfect though
the randomizing procedure checks whether it's possible to put an apple at a random location and places it in that case, but does nothing in case it isn't possible
so, hm
I'd need to be actually good at snake to see how much of a problem this really is
also, a check what happens if the whole board is filled
aidalgol
rudybot: you what, mate?
rudybot
aidalgol: what's your recipe for Yerba Mate? do you use a straw and all?
holomorph
`profiler-report-reversed' ._.
wasamasa
holomorph: yes, that's one of the four toggleables I was speaking of
holomorph
well this is much clearer--`apply' is the biggest user
wasamasa
I figured :P
it3ration
newb question - what's the "correct" way to check if a variable is set?
thought it was (boundp 'thing)
wasamasa
IIRC Fuco you should prefer funcall and use apply only for meta-programming purposes
it3ration: that checks whether it exists
it3ration
whether the symbol exists?
wasamasa
yes
it3ration
ah - how do you check it's value?
wasamasa
you just use its value
it3ration
got it
Fuco
why are you telling me
wasamasa
truthiness in elisp is simple, everything that isn't nil is truthy
the empty list happens to be the same as nil, so beware
gopar
Hey guys, whats the minor mode for display what method or function you are within a file? I know its a minor mode that displays it on the modeline
I just cant remember the name :/
wasamasa
which-func-mode
holomorph
no, not which-func-mode!!!
:(
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 next »