logs archiveIRC Archive / Freenode / #emacs / 2010 / January / 2 / 1
shyam
(defun my-url-retrieve-with-let ()
(let ((url-show-status t))
(url-retrieve "
ok thats a test code.
it shows the percentage of loading message like " Reading ... " regardless of what we give at the let.
abbe: ^
abbe
okay
quotemstr
Don't you want url-show-status nil ?
shyam
ops yeah
abbe
shyam, anyways, you're right, its not working.
as expected.
shyam
and interestingly url-show-status is only used by url-lazy-message and url-display-percentage. url-retrieve is eventually calling url-display-percentage to display the percentage loading report, which i want to prevent. so i can't see any explicit rebinding happening too..
as i grep through the whole directory, url-show-status is only used by url-vars.el which declares it with defcustom as a boolean type variable and on url-util by url-lazy-message and url-display-percentage both just reading the value of url-show-status..
so i can't see anything that rebinds url-show-status still changing with let isn't taking effect
abbe
shyam, right.
shyam, maybe try debugging that function
shyam
(Action) checking out how to do step wise debugging
soopos
I need to type the same words often. What is the command which looks up the previously written words and allows you to use them again?
         

bpalmer
M-/
sword
soopos: ,,dk M-/
fsbot
dabbrev-expand is an interactive compiled Lisp function in
`dabbrev.el'.
It is bound to M-/.
(dabbrev-expand ARG)
Expand previous word "dynamically".
Expands to the most recent, preceding word for which this is a prefix.
If no suitable preceding word is found, words following point are ..[Type ,more]
sword
Also hippie-expand
soopos
Thank you!
sword
,g emacs tab completion everywhere
fsbot
[google] http://emacsblog.org/
http://emacs-fu.blogspot.com/2009/02/switching-buffers.html
shyam
(Action) eventually learns about autoload:)
quotemstr
Wow.
I just found a box of Slashdot tenth anniversary t-shirts.
sword
Wasn't that a few years back now?
quotemstr
Yes.
I had a box in my closet.
(I was one of the party organizers, but the shirts arrived after the event, so I just stowed them.)
soopos
What is the key to active "replace-regexp" for all matches?
* enter is not working for me as intended
skorpan
soopos: do you mean "!" by any chance?
quotemstr
,moreinfo
soopos
skorpan: Thank you!
fsbot
[google] http://www.emacswiki.org/emacs-ru/JonathanArnold
http://www.emacswiki.org/emacs/files%252B.el
jordanb
rudybot: quote
rudybot
People who name their children 'aspen' and 'sierra' need taken out back and shot.
quotemstr
So the estate tax in the US has been repealed for a year.
http://voices.washingtonpost.com/ezra-klein/EstateTax_EstateTaxParamete.jpg
Talk about perverse incentives.
Open
do you guys hit the P in ^P with the pinky, or the ring finger?
         

skorpan
index finger
quotemstr
Index here too.
Open
...you guys don't touchtype?
well, you two. In this day and age?
quotemstr
Of course I touch type.
But I don't necessarily use a standard system to do it.
skorpan
what does touch typing have to do with anything?
Open
I don't really understand then... you'd want to maintain your hand position in the home row, wouldn't you?
quotemstr
To type control-p, I slide my entire right hand over, mash right-control with my palm, and hit 'p'.
skorpan
quotemstr: you're not serious, are you?
quotemstr
Perfectly.
skorpan
okay... i thought we were both using dvorak here.
quotemstr
I just tested it.
I suppose I use my ring finger if I'm typing quickly and don't think I'll have to repeat the gesture soon.
e1f
washington is the first us state to charge for plastic grocery bags?
only now?
quotemstr
e1f: Why are you surprised by this?
skorpan
they were free in your country?
quotemstr
They've always been free.
They're cheap plastic bags.
Not worth charging for them.
skorpan
in sweden they charge money for that
e1f
toronto just started in june. but i think most of british columbia had done it already
so i am surptised that the us is only starting now
quotemstr
Meh.
I think there are far more productive things to do than put an extra tax on plastic bags.
That's green theater.
e1f
true
as the plastic bags were'n't thrown out but used as garbage bags or poop bags
quotemstr
"Oh, look at us! We're so green, charging a tiny fee that won't discourage any actual plastic bag use!"
e1f
so they were recycled
quotemstr
"Oh, no! We can't pass a carbon tax or build new nuclear power plants!"
e1f
actually the fee does discourage it here
quotemstr
"But we can tax plastic bags."
e1f
it's odd to see people carrying groceries in plastic bags
they use "green" bags now
they are now trying to ban disposable coffee cups now
quotemstr
e1f: They're paper.
They biodegrade. Trees are renewable..
e1f
the problem is the plastic tops
there is no easy way to separate the paper from the plastic
quotemstr
Sure there is.
You grind both up and immerse the remains in a vat of water.
sword
Always segregating
e1f
low-cost way i should say
quotemstr
The plastic floats to the top. You skim it off
.
sword
Bag racism
bpalmer
e1f: san francisco has actually outlawed plastic bags, I believe.
e1f
not according to the article i just read
it said dc was the first
http://www.breitbart.com/article.php?id=CNG.af09375837a21e6bf486e0c8aed43c9a.01&show_article=1
i don't know if this is a newspaper or blog
bpalmer
http://articles.sfgate.com/2007-03-28/news/17235798_1_compostable-bags-plastic-bags-california-grocers-association
they didn't tax it; they just banned it.
e1f
ah
bpalmer
but only for "large" supermarkets.
quotemstr
This is more about certain people disliking the consumerist lifestyle and trying to force that dislike on others.
bpalmer
quotemstr: I don't think so; plastic bags have large externalities.
quotemstr
bpalmer: Like *what*? They're made of the cheapest stuff imaginable.
bpalmer
The justification from the breitbart article seems spot on: make people who prefer plastic bags pay to clean them up.
quotemstr
bpalmer: You want to account for the externalities? Assess fees on the producers, making the bags more expensive.
bpalmer
quotemstr: you mean, like tax plastic bags?
making them more expensive
quotemstr
bpalmer: I'd much prefer a tax than an outright ban.
bpalmer
quotemstr: ok. So you're arguing against SF's policy rather than Washington's.
DC's, I should say.
quotemstr
bpalmer: Yes. I don't like Washington's policy either, but it makes more sense than SF's.
e1f
taxes typically curb consumption. cigarettes, liquoe
bpalmer
One of the troubles with a non-egalitarian, information-opaque society is that it limits the ability to shape things by taxes alone.
quotemstr
Besides: say you give shoppers bags made of paper or some special biodegradable plastic. They're *STILL* going to be dumped everywhere.
You actually cut out very little litter.
bpalmer
Since the ideal tax on bags would involve a rising marginal tax (either on usage, so something needs to track how many bags you use); or on income, so that people pay a similar penalty for using it.
quotemstr: The entire point of biodegradable stuff is that it ... degrades. Paper is also much heavier. Go look at fences by vacant lots sometimes.
Plastic bags are -everywhere-.
sword
Offtopic!
Seriously, I've seen it all now
bpalmer
quotemstr: but, at any rate, one of the goals is not to shift to paper or biodegradable plastic; it's to get people to re-use cloth bags.
quotemstr
bpalmer: That might be the goal, but I have a difficult time imagining that happening until in-store bags are either unavailable or extraordinarily expensive.
bpalmer
it's already happening; it's quite common here in Northern California and in Germany, for example.
quotemstr
Supermarkets around here have offered reusable bags for a dollar, but there's been very little adoption.
bpalmer
really? It makes so much sense.
quotemstr
I bought a couple, but never bring them.
The cashiers stall and give you strange looks, and you hold up the whole line.
ams
quotemstr: maybe it is cause you're really ugly..
quotemstr
ams: That's true, but somehow my deformed, wrecked, and hunchbacked body doesn't prompt looks of disgust when I use paper or plastic.
ams
quotemstr: well, could also be that you look hot in a bag made from fabric?
sword
(Action) blinks suggestively at quotemstr
quotemstr
ams, only when it's over my head
e1f
russia has introduced minimum prices for vodka to combat alcoholism
good grief
quotemstr
eastern europeans are crazy
they put vodka in birthday cakes
e1f
shows a definite lack of understanding of alcoholism
quotemstr
Can you say "revenue grab"?
e1f
i wonder why they didn't just ban vodka
johnfg
hi guys!
Happy New Year!
I haven't used emacs much since upgrading to Fedora 12. But I notice now that when I go to use dired in any of my directories, everything's greyed out. How can I change this behavior?
Doesn't seem to be my permissions on the files themselves.
e1f
ah yes, redhat loves to mess up emacs
,reproduce
fsbot
tell us EXACTLY 1) what you typed; 2) what you saw; and 3) what you expected to see.
johnfg
elf got any ideas how to change the behavior back to normal dired usage?
quotemstr
e1f: prohibition doesn't work
Sketch
wonder if it could be selinux
i wouldn't think emacs would have any awareness of it though
johnfg
Sketch, Pretty sure not, if that's to me.
Sketch
if you cna access your files form a shell, i'd expect emacs to be able to as well
johnfg
I carried over my .emacs in my /home directory and didn't see anything there that would cause this.
sword
Why is it grayed out? Are they unreadable?
johnfg
Sketch, And, if I just go to open them, it will do that.
sword, That's the question: Why are they grayed out? And no, not from dired are they readable.
sword
So, you should look at the text properties
Place point over and M-x describe-text-properties
johnfg
sword, How so? I actually just changed permissions on a directory and a file to see if it would change the behavior of the file in dired, but everything's still grayed out.
sword, OK, I'll give that a try.
sword
It may not be anything related to files, it may be some color theme or something else
If dired is graying it out some text prop should be associated
e1f
start emacs with -q
and see if there's a change
sword
And that's also a good idea
nathan7
How do I do substring searches in lisp?
johnfg
Hey guys: it is a kinda weird thing with Fedora/gnome. I'm cool if I invoke m-x dired, but NOT if I choose it through the menu.
Thanks for asking the questions that helped me to figure this out.
e1f
you're best to compile your own emacs
and not rely on the fedora one
i despise the fedora bundled emacs. have been since redhat 4
quotemstr
Use only fresh Emacs.
sword
That doesn't make sense unless you are running different commands
quotemstr
Frozen and canned Emacs loses nutrients. Accept no substitutes.
johnfg
Thanks again for your help and suggestions!
sword
100% of your recommended daily vitamin gnu
nathan7
..
*Can* I do substring searches in lisp?
quotemstr
,df string-match
fsbot
string-match is a built-in function in `C source code'.
(string-match REGEXP STRING &optional START)
Return index of start of first match for REGEXP in STRING, or nil.
Matching ignores case if `case-fold-search' is non-nil.
If third arg START is non-nil, start search at that index in STRING. ..[Type ,more]
nathan7
quotemstr: mhm
e1f
the tablet will probably have voice input
that is my prediction
quotemstr
Handsome.
« prev 1 2 3 4 5 6 7 8 next »