logs archiveIRC Archive / Freenode / #emacs / 2010 / January / 13 / 1
ams
yey! dinner
ysph
using the zenburn color theme, nxhtml modes add a background color, frequently making the file look like a murky swamp, what's a good way to trace this?
ams
ysph: you should get one of those swamp boats...
ysph: and may i recommend a net for your face.
r4yner
and watch out for Juiblex
ysph
ams: that's the way i felt trying to read through the file
jonaskoelker
does emacs care what kind of $TERM it runs on? How does it use terminfo data?
ams
jonaskoelker: read the source.
kodein
it cares about term capabilities, yes.
jonaskoelker
ams: I think your good mood has been cured ;)
         

rgr
ysph: just customize the face.
ams
hmph
rgr
the next person that uses "foo" and "bar" in an example is going to get a cactus up their jacksy. Why call a local repo foo and the remote bar when local and remote would hae done and kept it so much simpler. arrgh.
ams
something about 4000 linepatches make me feel ill
poet
when I execute cvs-checkout with M-x it works fine. However when I try to execute the same command in a function I'm loading from a file, I get a permissions problem. Any idea why this is?
ams
rgr: cause saying `the local repo local gets changes from the remote repo remote' sounds stupid.
rgr
no you just say "pull to local" etc.
foo bar. bloody ridiculous.
ysph
rgr: turns out it is a feature of mumamo, so i customized the mumamo group to remove it
jlf
rgr: is it still monday in your timezone?
rgr
and we know its just people trying to be all bearded ....
junis
is there a mode for hexadecimal editing?...
ggole
,df hexl-mode
fsbot
hexl-mode is an interactive compiled Lisp function in `hexl.el'.
(hexl-mode &optional ARG)
A mode for editing binary files in hex dump format.
This is not an ordinary major mode; it alters some aspects
of the current mode's behavior, but not all; also, you can exit ..[Type ,more]
junis
thank you...
rejeep
Lets say I have this string: '"Today" I "watched" a "Movie"'. How can I get each text within " (double quote) in it's own with grouping. So (match-string 1) would be "Today", etc...?
Basically, I want to group on something that can appear in different parts in a string.
MrEntropy
yo
when i hit C-x C-b and get a buffer list, it splits a window up in two. How do i unsplit it with a hotkey? i can do it with the mouse, but i'd rather know how to do it with keys.
jlf
C-x 1
damd
MrEntropy: C-x 1
(but that doesn't happen here)
jlf
MrEntropy: you might be interested in ,ido or the like
,ido even
fsbot
[->] From memory, InteractivelyDoThings is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?InteractivelyDoThings
[1] an extended reimplementation of iswitchb that also covers operations like opening new files (as well as switching buffers like iswitchb),
[2] an alternative to iswitchb
         

MrEntropy
ahh, i knew about C-x 1, but that doesn't cut it because that gets rid of all splits. I actually have my screen split up, but want to get rid of only a single split; in this case (As an example), the one made by the buffer list
ggole
switch to that buffer and C-x 0
kodein
C-x 0 on that one?
MrEntropy
ooh, ok, i'll try that
yes! that's what i want! awesome, thank you.
junis
anyone can read this following?: Êíèãà
damd
i can
preferred charset: unicode (Unicode (ISO10646))
junis
wht does it say
damd
it says "Êíèãà"
junis
i cannot read what you returned... is it cyrillic?
damd
no, looks like latin with accents and stuff
the first character is: "LATIN CAPITAL LETTER E WITH CIRCUMFLEX"
junis
how did you get the unicode name so fast .o)
damd
emacs has a function called `describe-char' which i use
keramida
junis: yes, I can see the Unicode character glyphs fine
junis
i see .o)
jlf
C-u C-x =
damd
jlf: hm, did not know that... i have it bound to "C-c d c"
keramida
it's not a valid word afaict
junis
so if i do now want that buffer to use unicode what do i do ...
jlf
damd: C-x = is a little different, but also produces pertinent info
keramida
junis: `C-x RET f' and change its coding-system
junis: e.g. my xterm windows run with LANG='el_GR.UTF-8' but `C-x RET f iso-8859-7 RET' lets me save text in the "other" Greek coding system
The catch is that you have to know the name of the target coding-system, but that's usually ok and the coding-system prompt supports completion to help you pick one
junis
i tryed it... nothing happens
keramida
You should see at least a mode-line change after `C-x RET f'
i.e. "-UUU:**--" changing to "-UU7:**--" or similar
junis
that i see... and i chose an encoding but the glyphs in the buffer did not change
so ... i have this following problem :
keramida
oh
junis
i have a file that is encoded in KOI8-R
keramida
Heh, the glyphs in the buffer don't change if your Emacs buffer supports utf-8
Are you trying to *recode* them? Change their coding-system to something else?
`M-x recode-region' may help
junis
... which is a cyrillic encoding
but emacs does not show cyrillic glyphs
keramida
It's probably because Emacs thinks the file is encoded as something else.
You can select parts of the text (or the full buffer) and M-x recode-region
junis
.o/ now i have question marks all over
keramida
This probably means your recode operation worked, but the font you are using cannot display cyrrilic text
What does `C-u C-x =' show for one or more of the question marks?
junis
the question mark code on all of em
snogglethorpe
boy i learned a new epithet from slashdot!
"smug superficially supercilious fu*k-knuckle"!
keramida
junis: Can you yank ">4 1<5=0 =D>@<0F859" in the same buffer and see if it is displayed correctly?
snogglethorpe
...good thing this channel isn't logged...
keramida
If that is displayed correctly, then your font can show cyrillic text fine
junis
keramida: yes ... it says information exchange code in russian
keramida
excellent :)
technomancy
what are the odds literal syntax for hash tables could be added to elisp in future versions?
(Action) is sick of alists
keramida
so it was M-x recode-region that didn't work :(
hober
technomancy: I thought that's been done already
technomancy
hober: ?!
hober
IIRC
technomancy
sorry, M-x ucs-insert INTERROBANG RET
hober
Emacs adopted the XEmacs syntax for hash literals, I think.
searching my mail for the relevant bits...
see http://thread.gmane.org/gmane.emacs.devel/118774
23.2 will have hash table read syntax
technomancy
no kidding
is there a convenient syntax?
I mean, can you leave out all that garbage and still end up with reasonable defaults?
keramida
hober: awesome :)
hober
I dunno offhand.
keramida
A read-syntax for hash tables is pretty useful in other languages, e.g. Python
I'm sure Emacs Lisp hackers will find amusing uses for it too :-)
hober
this is the original thread: http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00524.html
keramida
A json parser for Elisp would be nice, for example :-)
or the inverse
hober
keramida: there already is one.
jlf
.oO("elon"?)
hober
see json.el
disclaimer: I wrote it
keramida
(Action) looks
hober
technomancy: looks like the syntax is something like #s(hash-table size 1 data (x x-value))
jlf
hober: thanks for that :)
technomancy
syntax could be a lot nicer, but it's certainly a big step up from calling make-hash-table all the time
hober: thanks for bringing that to my attention
hober
I think something like #s(hash-table data (foo 1 bar 2)) is as minimal as it can get
technomancy
next step is performing lookup on hash tables when they're placed in function call position. =)
hober: I was hoping for something like {'foo 1 'bar 2}, but we can't always get what we want.
bremner
hober: yeah, thanks for writing json.el
hober
yeah, clojure-style hash literals would be rad
technomancy
it just seems like such a no-brainer
it's not even clojure-style so much as "every sane language modern enough to include a convenient associative data type"-style
(modulo commas, I guess)
hober
heh, indeed
e1f
"In mid-December, we detected a highly sophisticated and targeted attack on our corporate infrastructure originating from China that resulted in the theft of intellectual property from Google."
http://feedproxy.google.com/~r/blogspot/MKuf/~3/Xa8V5N9DYqM/new-approach-to-china.html
jlf
hacked by chinese
aidalgol
I need the file smtpmail.el, but I can't really get the entire source code for Emacs23 rigth now, so can someone here give me that file?
*right
technomancy
(Action) snickers at the phrase "theft of intellectual property"
"they broke in and stole our ideas! they would have taken them all, but they could only carry so much."
e1f
"We have decided we are no longer willing to continue censoring our results on Google.cn, and so over the next few weeks we will be discussing with the Chinese government the basis on which we could operate an unfiltered search engine within the law, if at all. We recognize that this may well mean having to shut down Google.cn, and potentially our offices in China."
jlf
that's a lot of money to walk away from
ryoma
why not before?
e1f
it's one of the toughest decisions they're oging to have to make
cluck
i wonder if the bosses and overlords at google would be interested in purchasing from me tinfoil hats at very competitive prices (¬_¬)
technomancy
ryoma: sounds like they've realized that the government is breaking into accounts of human-rights activists
keramida
hehe cluck
technomancy
so lives could be at stake
keramida
nice smilie there
e1f
aidalgol: you should be able to get just the file from the repository
keramida
cluck: I think there's a Scrutz McDuck ascii-art picture there, begging to be uncovered
aidalgol
e1f: I thought of tha, but I don't know how to get the same version of the file that's in the Emacs23 release.
(Action) just remembered tags.
technomancy
(Action) imagines some Google covert ops working in China to distribute strong encryption tools to human rights activists under fire
jlf
(Action) idly wonders how much pressure goog could bring to bear on the chinese government
ggole
Real pressure? None.
cluck
keramida: what ascii-art picture? **there is no smiley there** **subliminal messages do not exist**
e1f
aidalgol: is the emacs repository not browsable via the web?
would anyone know if this was possible?
jlf
a confident assertion
aidalgol
e1f: It is. I forgot about SCM tags.
(Action) is browsing it now.
e1f
so you sould be able to pluck the ifle
aidalgol
Yup.
e1f
(it wouldn't have surprised me if the repository wasn't browsable via the web. being that rms is a bit shy of the web)
aidalgol
Although it does not seem to be in the directory "lisp".
Ah, mail.
technomancy
e1f: iirc a web frontend available but officially documented as "often broken"
e1f
i expected that ;)
snogglethorpe
M-x ucs-insert COCTOTHORPE RET
e1f
==D
snogglethorpe
C#
e1f
oh
i mis-understood the first 3 letters
aidalgol
Yeah, what's with RMS and the web?
snogglethorpe
aidalgol: i think it's a practical issue, not an ideological one
technomancy
if you live on another planet, latency issues make email a much more practical choice
aidalgol
I see.
junis
what is rms?....
aidalgol
Must be nice not to ever have to look at the horrific results of "web design".
junis: Richard M. Stallman.
snogglethorpe
certainly I wish _I_ used the web less often
technomancy
it's also a convenient way to avoid Adobe Flash
snogglethorpe
sucks up time like ...
aidalgol
(I don't know what his middle name is.)
snogglethorpe
and the return, other than extremely cute cat pictures, seems fairly minimal
jlf
mickey
keramida
Matthew, IIRC
aidalgol
OK, I've got to here: <http://repo.or.cz/w/emacs.git/blob/2c3b3f097dbfa79773a6e73e6b8e10a23d45f323:/lisp/mail/smtpmail.el>. Can anyone tell me how to use this interface to *get* the file itself?
keramida
aidalgol: follow the 'raw' link near the top-left part of the page
aidalgol
Ah, the link labeled "raw".
keramida
Yep
aidalgol
Thanks, keramida.
poet
any idea why M-] is the only key that is not getting bound to a function? Here is my .emacs: http://paste.lisp.org/display/93314
aidalgol
Does the program "file" return just "ASCII English text" for anyone else? I expected something like "Emacs LISP code".
bob2
does C-h k M-] show emacs can detect that key?
poet
bob2: neither describe key or describe functions indicates that they are bound to each other
describe key lists it as undefined
bob2
but C-h k shows M-] is received by emacs?
poet
bob2: if the error message "M-] is undefined" indicates that, then yes
both the bindings before and after M-] work though, strangly
« prev 1 2 3 4 5 6 7 8 next »