logs archiveIRC Archive / Freenode / #emacs / 2015 / September / 14 / 1
Fuco
wasamasa: heh, if you want some terrible code: https://github.com/Fuco1/dotfiles/blob/master/xmonad/.xmonad/lib/Mpris/Properties.hs#L58
rudybot
http://teensy.info/i6eFMM60eU
offby1
thanks, I already have plenty
wasamasa
Fuco: read and drop?
Fuco: I assume show is equivalent to scheme's display
holomorph
Fuco: fix the cl thing D:
Fuco
it prints as "Variant 45645353"... I need to get to the number string then turn it into number
wasamasa
ouch
holomorph
Fuco: also, pr sent
wasamasa
so you drop the first word because it's always the same length
         

Fuco
yes
wasamasa
oh well
Fuco
but it should really work with `unpack' like everything above
you can't deserialize it as Int64 but yu can print it... weird as hell
holomorph
i guess (eval-when-compile (require 'cl)) is all that's needed
wasamasa
https://github.com/tetracat/sallet/pull/7/files
holomorph: that's how ye olde elisp does it
holomorph
wasamasa: does wut
oh, cl
wasamasa
holomorph: using cl.el in a way that doesn't anger RMS
Fuco
I wonder how (format "%-50s%10s %20s %s" works wrt columns
is 50 display or character?
wasamasa
- is the character
50 is the width spec
Fuco
so it breaks wrt truncate-string-to-width?
@_@
holomorph: I think yu need to do padding with that function too somehow
wasamasa
or, hm
holomorph
y
wasamasa
maybe I should read the docstring again
I've read its code, it's rather scary :D
transforms the format string into something sprintf-compatible
holomorph
oh wtf
Fuco: seems fine as long as the number in the format string and the arg of trunc-s-t-w are the same
Fuco
and how does this work with proportional fonts?
I guess this would also fix org mode's stupid aligning of tags when you use different fonts/languages
http://i.imgur.com/UoS9bGs.png this annoys me so much
holomorph
prop fonts :<
dusn't werk so gud
but i don't think it has anything to do with my change, sallet-imenu is busto as well with prop fonts
Fuco
busto?
holomorph
Fuco
god that would kill me :D
holomorph
i wonder if tabulated-list-mode does magic column aligning& *checks*
         

Fuco
I think the only solution is go the extra length and compute pixel sizes and insert per-padding...
like that justification package I wrote
holomorph
hm, nope
Fuco
per-pixel padding
offby1
prop fonts are bad for data
I'm sure that comes as a shock
Fuco
yea, I really suck with fonts... I can't make emacs to use non-prop cyrilic
in fact I can't figure out how to make it do lots of things... the font it uses in text buffers is butt-ugly too
holomorph
emacs font selection: magic??
fsbot
I'm telling you, you don't want to know.
tali713
Fuco: if for some reason your Cyrillic is displayed in a fallback font, it is always possible to inform emacs of which font you want to fall back to for specified character ranges.
parsnip
rudybot: what entertainment would an org-mode based irc bot provide?
rudybot
parsnip: Koreans sure know how to provide quality entertainment.
Fuco
tali713: I once spent 3 hours fixing hindi and I don't even know how I did it... just copy pasting tons of random code from the net
tali713
Fuco: for example, my old emoji fallback font was set with (set-fontset-font "fontset-default" '(#x1f000 . #x1f773) "Symbola")
Fuco
and it broke when I reinstalled the system :/
offby1
Google Maps on Android now shows, for some restaurants and museums, a little bar graph showing how busy it is each hour ... seems super-handy
(Action) hops from foot to foot excitedly
tali713
Fuco: understood, outside of emacs you are on your own, inside emacs, fontsets are only mildly irritating to work with.
offby1
Fuco: I believe there's a sorting algorithm like that ...
wasamasa
holomorph: it's actually somewhat predictable
offby1
Inside of a dog, fonts are too slimy to write with
wasamasa
holomorph: unless someone tweaks with it
Fuco
guess I'll look into it some day
wasamasa
holomorph: a script gets a font that supports that script
holomorph: that's why emoji didn't work :D
holomorph: they don't belong to a script
holomorph
:|
wasamasa
so now there's special cases included in master to try using symbola for that block
tali713
wasamasa: really? I no longer need that little snippet?
wasamasa
tali713: well, they might have screwed up something else in the process
tali713
wasamasa: fair enough.
wasamasa
tali713: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20727
tali713: just scroll through that thread, it gets worse towards the end
tali713
reading...
wasamasa
I don't get why they ask for fonts for certain scripts via fontconfig, but don't let fontconfig do everything
it just doesn't make any sense
tali713
no clue. though being able to override is quite handy.
wasamasa
I find it hilarious how the pile of poo was deemed an "unpleasant example character"
"There's elaborate setup in fontset.el for selecting fonts by script, so the fact that HELLO displays correctly is not a miracle."
offby1
you know what's wrong with Emacs? It's written by _people_. That's what's wrong with it.
Damned people.
bremner
no u
parsnip
offby1: osx10.11 map is supposed to have transit directions finally, but doesn't have seattle directions yet... maybe after beta is done.
offby1
I haven't bothered to download the beta
Fuco
tali713: how do you figure that range?
tali713
Fuco: known range from unicode for emoji.
parsnip
it's screwing with emacsforosx, like visualbell acts odd, and zoom-frm is seriously slowed down. i haven't tried reinstalling or a brew install yet.
Fuco
and how can I tell emacs to pick different font for proportional and nonprop fonts (that is, if variable-pitch mode is active)
tali713
Fuco: Cyrillic likewise has a known range. https://en.wikipedia.org/wiki/Cyrillic_script_in_Unicode
Fuco: hmmm, I don't know exactly the details of /that/, should also be possible.
Fuco
maybe that "fontset-default" >
tali713
Fuco: you can certainly create new fontsets.
Fuco
yea but I mean f that has to do with variable pitch mode
tali713
but the documentation is a bit sparse. (info "(elisp) Fontsets")
« 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 25 next »