logs archiveIRC Archive / Freenode / #emacs / 2010 / April / 10 / 1
kensanata
The regular xfce settings say "use system defaults."
Whatever that means. :)
stepnem
heh
kensanata
I've modified the de_mac layout in the past, and that has worked.
hiredman
is there some env variable emacs sets that I can check for so I can get a different prompt from within emacs?
stepnem
hiredman: you can use Emacs-specific rc files
technomancy
could check for TERM=dumb too
stepnem
like bash_emacs and similar
technomancy
non-emacs dumb terms should ignore the prompt setting anyway
kensanata
stepnem: That involved editing /usr/share/X11/xkb/symbols ... So maybe xkb is the subsystem in question.
         

hiredman
technomancy: :) that sounds like a winner since it will work else where the terminal is dumb
stepnem
hiredman: it's actually .emacs_SHELLNAME
kensanata: yes
kensanata
(Action) starts reading <a rel="nofollow" href="http://www.charvolant.org/~doug/xkb/html/node2.html">http://www.charvolant.org/~doug/xkb/html/node2.html</a>
stepnem
XKB is the newer X keyboard interface, but it's also a bit more complicated (read horrible)
kensanata: yeah, there seem to be nearly no documentation on XKB
kensanata
(Action) feels horrible.
johnw
so why is it the new thing?
stepnem
kensanata: http://pascal.tsu.ru/en/xkb/internals.html
that's about the most detailed I could find a few months ago
I'm not sure it will help to solve your actual problem though
for simple things like the modifiers, I think xmodmap is still much more convenient
e1f
calling all photographers: http://lens.blogs.nytimes.com/2010/04/08/about-3/
stepnem
besides, your problem is probably Xfce interfering with X keyboard settings... :|
ams
e1f: i don't get it
stepnem
johnw: I guess it would be nice if it actually was documented and worked as documented
kensanata
Using Emacs without Meta key... I feel like in the old days at a terminal. Or the console.
e1f
everyone taks a pic at 11am on sunday may 2nd and uploads it to the ny times
tazle
e1f: hm, must try to remember
ams
kensanata: must havebeen the days before meta.
johnw
i mean, is it better than what existed before?
tazle
it will be somewhat atypical, though, since I will be in London then
e1f
the point is you photographer where ever you are
tazle
also, the choice of time is interesting
e1f
well, most people are reading the ny times at 11am on sunday ;)
         

stepnem
johnw: I guess it is, if you know how to use it (which is a bit hard, without decent documentation)
e1f
in new york, anyway
tazle
there is a day-and-night map that shows much of the pacific lit and most of asia dark, subtitled "Much of the populated world is in daylight at 15:00 UTC"
cluckling
The hell with the ny times. I'm not helping them make money while they keep their stance on enews
e1f
my ny times gets delivered around 3am
stepnem
cluckling, kensanata: not that `xmodmap' states it explicitely: "up to 3 keys per modifier"
note*, sorry
e1f
cluckling: you have to do it! you have no choice whatsoever!
cluckling
Stepnem, yeah but it is still stupid =)
e1f
i'm usually brushing my teeth or performing some morning ablution at that time
kensanata
johnw: The Ivan Pascal link says "And the XKB module too sends to application scan-code and own state only. But unlike old module XKB have more complicated symbols table, different modifiers set and some other components of keyboard state."
johnw: That must be why it is "better".
johnw
i have no idea what that's saying
ams
life is bullsh*t
johnw
ams: ??
fsbot
Highly likely.
ams
fsbot: see, fsbot agree!
fsbot
I think screencasting is [0] "a recording of computer screen output, usually containing audio narration typically published as a video file" -- from http://en.wikipedia.org/wiki/Screencast ..[Type ,more]
ams
(Action) scratches his head.
kensanata
johnw: Later it says this: "Lets return to XKB module. You can see that the main disadvantage of traditional symbols table is its unflexibility. Though there can be up to 256 columns but only first four can be standardly processed and their dependence on modifiers hardcoded in Xlib. Therefore one of the basic improvements brought by XKB is large flexibility in the table construction."
ams
johnw: nothing, just foul mood :)
tazle
e1f: have you looked at the Japan picture galleries in our almost year-old Japan trip blog, or have I not linked you to them?
ams
i love how people say `write a code for FOO'....
stepnem
never heard that
ams
seems to be the rave on blogs..
`i wrote a code to do something'
kensanata
Ugh. Enough time wasted.
ams
`a code'...
it is like in swedish...
kensanata
Perhaps I should not have switched this laptop from Mac OS to Ubuntu after all... Harr harr harr.
ams
data meaning data... but dator means computer..
so people run abou saying `i want a data course'
kensanata
I had forgotten all the little annoyances.
stepnem
never saw that either; only 'some code'
ams
stepnem: oh, some code is fine...`a code' is annoying...
shabble
kensanata: does power management/sleep work?
ams
people seem to use it instead of `a program'
shabble
that was always my biggest annoyance with linux
stepnem
ams: sure it's fine, I'm just saying I've never seen 'a code'
e1f
tazle: no i don't think i saw them
ams
stepnem: seen it in a few places the last few months
stepnem
but then, I'm not a big blog-reader
tazle
e1f: http://keväällä.japanissa.fi/ and seek entries titled "Kuvagalleria"
ams
neither am i
kensanata
shabble: Yes, one of the recent updates fixed the parts that had bugged me before.
shabble
'some codes' is also pretty common
kensanata
shabble: Sleep and power down actually work, now.
cluckling
Ams, I've seen that but used in a humorous context
e1f
tazle: there are weird characters in that url
stepnem
kensanata: I'm sure your problem is fixable :P
ams
it is annoying
shabble
kensanata: nifty. I just run vmware on OSX when I absolutely need *nix these days
ams
`a code' in english means to encrypt something...
stepnem
kensanata: it's not like no other people use modifiers
tazle
e1f: http://xn--kevll-iraac.japanissa.fi/ if they don't work as-is
shabble
ams: I've always taken encrypt to mean 'cipher' rather than code
ams
shabble: yankee or brit?
shabble
british
ams
strange
seeing that `cracking codes' is british...
shabble
yeah, that can go either way, and most people don't bother with the difference.
kensanata
stepnem: I'm sure that's true. But think about it. I started mentioning it at 22:45 -- 45 minutes ago. And by that time I had already fiddled with my keyboard twice. http://www.emacswiki.org/alex/2009-11-30_Keyboard_Remapping and (using the default) and http://www.emacswiki.org/alex/2010-04-05_Xfce (when I switched).
shabble
but 'code' to me means essentially lookup table.
I blame Simon Singh :)
stepnem
kensanata: yeah, it surely is very annoying, esp. if in OS X everything "just worked" (but then, the computer is Mac, I assume?)
ams
anyway, `a code' is fu*king annoying
shabble
agreed
cluckling
Well, compiling is pretty much a caesar cipher (translating) so it's technically correct
ams
(Action) plays openttd
cluckling
But i agree it still sounds dumb
jlf
,,...
fsbot
[In the distance, you hear a dog bark]
lisppaste
jeremyw pasted "gud/pdb regexp failure" at http://paste.lisp.org/display/97589
jeremyw
Anyone got a minute to look at this with me? Basically, gud/pdb logic should be matching a string here but it's not.
e1f
it's friday night on #emacs. everyone is out drinking and having sex
kodein
how does one drink sex?
dmhouse
You sound so bitter, e1f.
e1f
i'm a vi user
hence the despondence
jlf
jeremyw: M-x re-builder might be helpful
kodein
we can re-build you.
jlf
do we have the technology?
(Action) updates his list of #emacsers of a certain age
kodein
well, we have the technology for destruction, at least
cluckling
I'm out drinking with friends (as unbelievable as it may seem) yay mobile net on phones
jeremyw
jlf: I'll check that out.
kodein
well now, who will be the six million dollar #emacser?
jlf
is lindsay wagner attached to the project?
kodein
maybe
jeremyw
jlf: Now to learn to use it. :)
fledermaus
(Action) crashes
night
cluckling
Kodein, lindsaywagner.jpg does not count :)
jlf
later fledermaus
kodein
oh, bother.
jlf
whoa, there's a new lindsay wagner in town!
stepnem
,fortune
fsbot
Familiarity breeds contempt -- and children.
-- Mark Twain
jeremyw
I've figured it out. Is there a way to match a '
Crap.
In my string, I have ^M\n. I wonder if that is the part not being matched.
cluckling
Try \'
jeremyw
That was a mistake, bad paste.
I need to match: ^M\n
cluckling
<- mr obvious
jeremyw
:)
e1f
who was the third murderer?
stepnem
the gardener
e1f
that would explain the moving shrubbery
just as the witches predicted
cluckling
the butler! it's always the butler.
stepnem
Mac! Beth!
shabble
in /home, with the Broken Pipe.
jeremyw
Are any of you using Emacs 23.1.1 for Python debugging? I recall someone trying to reproduce my issue and they couldn't.
Just want to make sure I'm not spinning my wheels for nothing.
The good news is it appears other have had this issue, they just never reported it like I did. Ugh.
e1f
actually, i'm reading 'the secret pilgrim' and one of the characters quote that line from macbeth
Eraldo
can I somehow view the whole bbdb in an alphabetical manner?
cluck
stepnem: as i was going to say but forgot when i left home and changed for the mobile, i don't think johnw is very interested in "gossip" and humorous tirades about gnu hurd developments
jeremyw
So while I'm debugging gud.el, I find that there are these sequences in a string that is suppose to match a regex but isn't: ^M\n
I know what \n is and I see the corresponding entry in the regex for it.
But, well, the regex isn't matching and I can't help but think it's the ^M in the string.
shabble
jeremyw: iirc ^M == \r, so it's a windows line ending: \r\n
jeremyw
Ironically, this is from pdb. I'd hope they wouldn't do that.
I'm on a Mac so it's posible that is the problem.
shabble
can you run pdb externally from emacs and dump its output?
piping it through xxd or od should show you what line endings are coming out
jeremyw
shabble: Got a second to look at this http://paste.lisp.org/display/97589.
The line breaks in the String are where the ^M characters are.
That string, with the ^M, was gotten during edebug of gud.el.
I can see why the regex isn't matching. :) I just don't know how to remedy it.
shabble
jeremyw: either figure out why they're occuring in teh first place and stop them, add them to the regex, or preprocess the input to strip them
jeremyw
shabble: Good point. I should be able to remove the \r myself.
Time to find the elisp function that can do that.
shabble
(replace-regexp-in-string "\r" "" STRING) :)
jeremyw
Nice.
mandevo
someone knows how do I open a file from the command-line and search for a line with a specific word?
something like emacs file -f isearch-forward word
I don't know how to invoke the function and pass the parameter
shabble
mandevo: emacsclient --eval '(find-file "...") (search-forward "word")' or something
zaska
hi
in emacs why not lines number???
fsbot
Of course not!
jeremyw
shabble: Does this look right: (let ((string (replace-regexp-in-string "\r" "" string))))
Doesn't seem to be doing anything with the ^M characters in string object.
jlf
zaska: try M-x linum-mode
zaska
jlf: :o thanks u very much!!!!!!!! jajaja I have lot of time searching and never found
jlf
i'm a giver
shabble
jeremyw: seems ok, although you realise that in (let ((var val)) (body)) the var=val is only scoped within the body?
jeremyw
shabble: My Lisp is weak, I'll admit. All I want to do is take a string passed to this function and remove the \r from it.
But when debugging, string is unchanged.
After the call even.
legumbre
ffs
http://support.microsoft.com/kb/555737 <-- how could I have possibly missed that?
shabble
jeremyw: (setq string (replace-.... string)), maybe?
jlf
lol @ 'Write the command "net statistics server" and press on "Enter" key.'
shabble
the line that start with!
jeremyw
shabble: That also appears to not remove the ^M character from the string.
(Action) ponders...
shabble
jeremyw: do you have control over the invocation command of whatever?
jeremyw
Probably not. It's in the depths of gud. I can change variables, so use tstring or something, but each time I use let/setq, I get that tstring is void.
scottj
does mumamo make it easy to define your own major mode combinations? for example, I want to have an org mode file with a bunch of clojure code sections that I can actually evaluate in place like normal clojure mode.
jeremyw
w00t!
technomancy
I think you want org-babel
« prev 1 2 3 4 5 6 7 8 9 10 11 next »