logs archiveIRC Archive / Freenode / #emacs / 2010 / May / 11 / 1
vitaly_
quotemstr: doesnt work
ggole
Unless you are on a mac or some odd laptop
,meta-key-problems
fsbot
I heard MetaKeyProblems is [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?MetaKeyProblems
[1] If you use xkeycaps, make sure you select meta and mod1 modifier for the "alt/windows" key,
[2] http://www.leonerd.org.uk/programming/hints/xterm-8bit.html
quotemstr
,excuse
fsbot
The Environmental Spread Spectrometer! It's going into emergency shutdown!
quotemstr
vitaly_: It doesn't work because of the the Environmental Spread Spectrometer! It's going into emergency shutdown!
vitaly_
M-. is undefined :(
quotemstr
vitaly_: Oh.
ggole
vitaly_: you forgot the shift
         

quotemstr
vitaly_: Press alt, press shift, press <, release <, release shift, then release alt.
vitaly_: It's very important that you do it in precisely that order.
ggole
And M-. should be bound to find-tag...
ashawley
tseno: psst, use C-u C-x = on a button to list the properties for a button in the *Help* buffer.
quotemstr
If you release alt first, your hard drive might be reformatted.
vitaly_
hm...
ggole
vitaly_: are you having trouble with any of the other M-... commands?
tseno
thank you ashawley... buddha bless you...
ashawley
tseno: you're welcome.
vitaly_
ggole: I just replaced keyboard shortcut, so now alt+shift works as need
ggole: but.. not every time
ggole
vitaly_: sure, but it's not clear what your problem is
vitaly_
ggole: instead of moving to begin or end of buffer I get 3/4
one or 2 times I got what I need.. but.. not everytime
ggole
Hmm. What does C-h c M-< say the key is bound to?
vitaly_
ggole: when mark set was active, M-> was moved correctly
ggole: C-h M-< undefined
ggole
vitaly_: gotta put the c in there
C-h c M-<
vitaly_
runs the command end-of-buffer
now it works
ashawley
,dk M-<
fsbot
beginning-of-buffer is an interactive compiled Lisp function in
`simple.el'.
It is bound to <C-home>, <begin>, M-<, <menu-bar> <edit> <goto>
<beg-of-buf>.
(beginning-of-buffer &optional ARG)
Move point to the beginning of the buffer; leave mark at previous position. ..[Type ,more]
ggole
I fixed it?
vitaly_
ggole: I dont know what it was.. may be some mixing of commands
tseno
holy moses .. wasn't that beginning of buffer...
         

ggole
Sounds odd.
vitaly_
ggole: anyway thanks
ggole: I have other question
ggole: how to type number with C-u
ggole: I can type something between 0-9, but If I want type 20 or 100?
ggole
Oh, there's some way to do that which I always forget
vitaly_
ggole: :)
ggole: I not found in in manual
ggole
Ah
ashawley
vitaly_: (info "(emacs) Inserting Text")
ggole
C-u <some number> C-u <another number>
The first number will be the argument, the second the character
damd
lol wtf, try "C-u 2 C-q b"
sorry, "C-u 2 C-q 2 b"
UNPREDICTABLEZ BEHAVIORZ
vitaly_
Guys.. how to type C-u 20 abc
?
damd
vitaly_: C-x ( abc C-x ) C-u 19 C-x e
;/
ggole
damd: that's nothing to do with C-u, that's C-q's way to insert characters by code
damd
ggole: yes, i just realized
vitaly_
so.. how to type C-u 20 abs?
I cant type 20
after 2 it starts other word..
damd
that's strange
you should be able to just hit C-u, 2, 0
vitaly_
I not able..
damd
what happens when you try it?
ggole
In fact you should just be able to hit C-2 0
vitaly_
damd: sorry, now it weirdly works :)
damd
C-2 0 doesn't work on terminals does it?
mrak
Does anyone use screen in here?
damd
probably lots of people
mrak
I'm still looking for a good escape-key-sequence - any suggestions?
damd
,screen
fsbot
screen is [0] Use this keysequence to map the c-\ key to be used as the commandkey in screen `` c-a : escape ^\\\ '' or add `` escape ^\\\ '' to your .screenrc
[1] (info "(emacs)Screen"),
[2] look up elscreen, ..[Type ,more]
ggole
Oh yeah, use M-2 0 on terminals
damd
i wonder how many people use terminal emacs these days
or rather how big portion of the emacs user base
technomancy
damd: since I discovered TERM=screen-256color I'm using terminal emacs more and more
(along with tmux)
damd
mrak: btw, some people use C-z for screen
mrak
C-z sounds better, at least for a German keyboard
I think
aartist
How I can see which of my modules have updates?
damd
technomancy: doesn't the key "problem" bother you?
technomancy
damd: I have alternates for all the stuff I use often
actually pretty much the only keystroke I use that doesn't work in -nw is paredit slurp, which I have my own binding for
damd
not that i use many of the problematic keybindings myself...
i usually do C-u [numbers] instead of M-[numbers]
sah0s
how do i find out what all the text is that scrolls past when i boot into the emacs operating system?
damd
sah0s: switch to the *Messages* buffer
sah0s
damd: okey dokey
konr
Is there any version of (read) that reads n s-expressions, or I have to roll my own?
damd
konr: you could wrap the s-expressions in progn, could you not?
johnw
(loop for i in 0 to 5 :collect (read))
or something like that
sah0s
and behold i got CarbonEmacs working with mac-key-mode after only two hours of fiddling and the cherubim were ecstatic and flapped their wings as i was 2 hours closer to joining them
konr
hmm, it's a stream... So I guess I can run (read) continuously
sah0s
+ Q now quits my Emacs just like every other Mac app. Praise be!
qDot_
Except that you don't quit emacs.
quotemstr
Ariely conducted a similar experiment himself. He set up shop in a mall and offered shoppers one of two deals. Either they could have a free $10 certificate (which is to say, a free $10), or they could pay $7 for a $20 certificate (which is to say, a free $13). Literally everyone chose the first. But when Ariely made the $10 certificate cost a single dollar, two-thirds of the folks he stopped preferred to pay for the $20 certific
sah0s
qDot_: er ... *looks at task list*
JordiGH
quotemstr: lolwut
shabble
quotemstr: predictably irrational?
quotemstr
Yep.
Good book.
shabble
quite a good read
JordiGH
What read is this?
quotemstr
,g "Predictably Irrational"
fsbot
[google] http://www.predictablyirrational.com/%3Fpage_id%3D6
http://www.amazon.com/Predictably-Irrational-Hidden-Forces-Decisions/dp/006135323X
JordiGH
404 hit?
Google, I'm disappoint.
shabble
http://www.predictablyirrational.com/?page_id=6
ggole
They might have assumed that the "$20" was largely junk, which is what I would have done
quotemstr
Right.
There is value in the flexibility of the $7 you'd pay.
The book has plenty more examples though.
JordiGH
shabble: Huh, fsbot being overzealous about its escaping?
quotemstr
"FREE" indeed drives people to irrational actions.
JordiGH
See: Free software.
sah0s
oooh, it know Tex already! One quick question and then I swear I'll google the rest :) Is their a quick way to shell to my texi2pdf command?
quotemstr
Windows is even more hackish than I imagined: http://blogs.msdn.com/oldnewthing/archive/2010/05/06/10008132.aspx
maden
!stats test
ggole
quotemstr: no question that people are irrational, particularly when it comes to evaluating risk
shabble
(Action) goes back to reading Engines of Creation
quotemstr
lytdybr
laynor
hi, I tried to save a customize theme with customize-create-theme but the file I get is really short and doesn't include the faces I added to the theme. it looks like this: http://paste.lisp.org/display/99059
I added the variables using both visiting and merging the user theme, getting the same result.
e1f
vint cerf's talk at google http://www.youtube.com/watch?v=t9M0RPNr9qg&feature=player_embedded
interesting that he's proposing interoperable clouds
i can't see that happening
squiddo_
Can one pin a buffer to a frame?
shabble
,df display-buffer-mark-dedicated maybe?
fsbot
Doh! Symbol's function definition is void: display-buffer-mark-dedicated
shabble
,(require 'window)
fsbot
whoops, Required feature `window' was not provided
shabble
weird
squiddo_
shabble: looking - thanks. Looks like that's a global setting?
shabble
hmm, I'm not sure since I don't use it
try apropos'ing for dedicated?
squiddo_
k
e1f
oh i didn't know that an erlang was a statistical measure of a telecommunications circut
laynor
squiddo_: there is a package for dedicated windows, called policy-switch, that makes things easy
squiddo_
laynor: thanks - will look at that.
moljac024
hey emacsers
gwynddyllyd
does anyone knows of a quick way to make scroll-up and scroll-down move the cursor to the end of the buffer instead of beeping me if the end of the buffer is within my view - even though the cursor is not there?
i.e. I'm scrolling down and then the last scroll invariably means hearing a beep instead of moving the cursor to the end of the file.
after which I'll grudgingly move line by line down until I reach the line I wanted.
shabble
gwynddyllyd: (global-set-key (kbd ...) (lambda () (interactive) (if (pos-visible-in-window-p (point-min)) (beginning-of-buffer) (scroll-up)))) or something?
ditto with point-max for the scroll-down
jlf
that should be the default behavior imo
shabble
can you advise core c functions?
johnw
shabble: i don't see why not
shabble
(Action) suspects not
I would check, but I'm supposed to be learning how databases do their magic
turns out it's not pixies afterall
jlf
i mean, what does someone who hits C-v a couple lines above EOF probably want to happen?
johnw
jlf: beep
jlf
that seems to be the assumption
tseno
greetings how do i make emacs not open a pdf file in doc view mode .. but in fundamental
johnw
M-x find-file-literally
tseno
thank you johnw
gwynddyllyd
shabble: this will probably work, yes. I'm writing it as a separate function and will test it right now.
thanks :)
scottj
Anyone know a good mode that persists undo history for a file despite closing the file or closing emacs?
jlf
scottj: i haven't, but you might poke around ,,sessionmanagement
fsbot
SessionManagement -- [0] at http://www.emacswiki.org/cgi-bin/wiki.pl?SessionManagement
[1] http://emacs-session.sourceforge.net,
[2] desktop.el,
[3] http://emacs-session.sourceforge.net/related.html
scottj
Obviously it wouldn't do it indefinitely for all files, but perhaps the last 50 files
fledermaus
,recentf
fsbot
try: IswitchRecentFiles recentf-buffer.el RecentFarChanges RecentFiles
johnw
scottj: i don't know actually
scottj: neither recentf nor session.el remembers undo history
gwynddyllyd
shabble: beginning-of-buffer and end-of-buffer had to be changed to (goto-char (point-min)) and (goto-char (point-max)) but other than that your solution works wonderfully.
I can't seem to be able to paste at the pastebin for everyone, though.
leo2007
johnw: what about savehist?
johnw
never tried it
i use session.el
but i've never once wanted to undo changes from a previous session
for that, i just open the autosave file
leo2007
put the thing in savehist-additional-variables and it will get saved.
I use it because it is in emacs so at least you will have minimal maintenance.
scottj
leo2007: so do you have kill-ring in savehist-additional-variables?
leo2007
yes
I have these: kill-ring kmacro-ring last-kbd-macro search-ring regexp-search-ring
johnw
i have kill-ring too
but what would one add for undo?
scottj
leo2007: ok, but that's not really undo history
rryouumaa
funny how we have undo history, backups, and git and such. all 3 are needed imo.
leo2007
scottj: what do you mean by undo history, it is buffer local variable see buffer-undo-list
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 next »