logs archiveIRC Archive / Freenode / #emacs / 2009 / December / 19 / 1
soopos
fsvend: Could you please answer to this http://paste.pocoo.org/show/157961/
sockmonk
git-svn makes svn bearable
timcharper
,,crickets
fsvend
soopos: the question doesn't make sense to me.. how can main.c, if it's C source file, be a command?
fsbot
timcharper, Perhaps you could go into more detail?
timcharper
,...
fsbot
[In the distance, you hear a dog bark]
rudybot
Woof.
timcharper
it appears the answer to my question is speedbar
         

fsvend
soopos: what are you trying to do?
timcharper
ultimately this function invoked etags:
speedbar-fetch-dynamic-etags
soopos
fsvend: main.c is in two places: once as a prerequisite and once as a command after cc.
fsvend: I am trying to understand the simple example in a make file.
jan__
Hi. is there something like undo for movement functions? (ie functions that move the cursor around)
fsvend
soopos: yes, and the problem is? I shorter way is to specify $^.. which expands to all the files after the target definition.
soopos
fsvend: How do you read the command in the paste?
ramblex
soopos: main.c is a prerequisite for main.o and is used to create main.o
fsvend
soopos: the prerequisite part is looking at the file timestamps.. think touch.. If one of the prerequests have a newer timestamps than the target (object file in this case), it will execute the command.
soopos: no.. it's not recursive.. like i said.. very easy.
.. and use emacs's make-mode when editing Makefiles.. then you won't get problems with TABs before commands, etc.
if fact, use emacs for all your editing purposes ;-)
soopos
fsvend: Timestamps are new in this case for me. Does this make sense for you: "We have a file main.o which has two prerequisities. There is also a command which is for the two Ps."
ramblex
jan__: don't think so, you can use registers to quickly jump between two places
jan__
ramblex: I'll read up on those, thanks
fsvend
soopos: yes, this makes sense... if defs.h and main.c are other targets.. They could be generated for instance.
soopos: I'd like to see the whole example.. Is this from a book you've got?
soopos
fsvend: First example in http://www.gnu.org/software/make/manual/make.pdf
page 14
fsvend
soopos: ok ;-)
soopos: can't find the sentence of yours..
ramblex
fsvend: section 2.2
soopos
fsvend: It is by myself. It is not written explicitly to the book. It is in the code
* by me
fsvend
soopos: well, then you read it wrong. Nothing in that Makefile state what you said. Where is the command "which is for the two Ps"?
neosoothsayer
jan__: C-SPC C-SPC will push the current mark to a global ring. You can then move back to the saved mark in the ring with C-u C-SPC
jlouis
&1
neosoothsayer
ramblex: were you referring to saving mark in a register and them jumping to it?
         

soopos
fsvend: After the target "edit" on page 14
ramblex
neosoothsayer: just suggesting a way of saving some positions in a file to make it easy to jump between them
fsvend
soopos: i think i misunderstood you.. to get it clear: the target named main.o have two prerequisites.. the prerequisites file timestamps is the only part make is using them for.. if one of those timestamps are newer than main.o it will execute the command below. clear now?
soopos
fsvend: If one of P's timestapm is newer than that of T. Will the program execute the command below for the both Ps?
fsvend
soopos: no.. just one command, or more if you'd like. But here, there's only one command (cc - c main.c).. most likely main.c have "#include "defs.h" in it..
soopos
fsvend: How would the situation be different if there are two commands like main.c and defs.h in the command section? Should then both P's timestamps be newer than that of T?
* (assuming that a header file can be a command)
fsvend
soopos: no.. iff one of the targets prereqs is newer than the target, all commands (usually one) are executed.
soopos
fsvend: One last question: How can you run the makefile without having the actual file main.c?
ngirard
Hi there. Sorry for this off-topic question: I've just seen "peoples" written in a book about african art. Is it a typo or does this form really exist ?
fsvend
soopos: ehh.. you'd like to build a program without the source? good one.
soopos: that's reeally declarative ;-)
soopos
fsvend: So it is not possible... hmm ... need to find some file to be able experiment with the mainfile.
*makefile
fsvend
soopos: If you haven't written programs in C before, I'd suggest you to start with that, then look at how to write Makefiles
soopos
fsvend: I have, but never used makefile before.
always gcc:ing my simple math programs.
fsvend
soopos: ok. If your program consist of one file.. it's just as easy to say "gcc -o myprogram main.c"
soopos
fsvend: Thank you for your help! Need to build a simple makefile now :) and see how Emacs makefile-mode works.
fsvend
soopos: no problem.
ryoma
had to log out before checking convo
neosoothsayer
ngirard: people is already plural. Thats a typo!
ngirard: was that peoples' ?
or simply peoples ?
fsvend
ngirard: what did you really mean?
ngirard
Hi guys. It really was peoples, not peoples'
fsvend
(Action) hope it's about african ascii art in emacs
ramblex
I guess peoples could mean many groups of people
fsvend
my former norwegian english teacher would say neosoothsayer is correct.. people is already plural.
s/plural/in plural form
ngirard
ramblex: you might be right ! According to http://www.wordreference.com/enfr/peoples this exists
what a surprise ! But this makes sense after all, following ramblex explanation
neosoothsayer
ngirard: click on the 'people' word definition in the link you paster
pasted*
ngirard
Sorry for the noise
neosoothsayer
it only lists people - there's no peoples
there's discussions in forums about peoples, but its not the correct form of the word
like I said, people is already plural
jlf
"peoples" is perfectly cromulent
neosoothsayer
unless you are talking about 'Obama really reached into peoples' hearts', using peoples would be incorrect in my opinion
ryoma
politicians and some others say peoples all the time
we are a sexp-using people
ngirard
jlf: damn... I need to look for cromulent in the dictionary :-/
jlf
neosoothsayer: that would be "people's"
ngirard: it's a great way to embiggen your vocabulary
neosoothsayer
jlf: thanks for the new word 'cromulent' - never heard it before
jlf
"When people means the entire body of persons who constitute a community or other group by virtue of a common culture, history, etc., it is used as a singular, with the plural peoples: This people shares characteristics with certain inhabitants of central Asia. The aboriginal peoples of the Western Hemisphere speak many different languages."
http://dictionary.reference.com/browse/peoples
ngirard
jlf: much interesting. Thanks for this clarification
and thanks for "embiggening" my vocabulary :)
jlf
and to think they said my liberal arts degree was a waste of time!
neosoothsayer
As a term meaning "a body of persons sharing a culture," people is a singular noun, as in As a people the Pueblo were noteworthy for their peacefulness. Its plural is peoples: the many and varied peoples of West Africa. But when used to mean "humans," people is plural and has no corresponding singular form.
ryoma
person is appropriate for the singular
when you want to use*
neosoothsayer
(Action) will someday try to understand what studying for liberal arts degree entails - very American
scode
Sorry if this is obvious, but I can't find it: Is there a way to add a hook for when *leaving* a mode (as opposed to entering it)?
ngirard
scode: sorry but this channel is dedicated to african art
jlf
scode: perhaps an after-change-major-mode-hook that acts iff leaving the mode of interest
bpalmer`
scode: or change-major-mode-hook
after-* seems a new-ism.
jlf
first relevant result from apropos :)
scode
Thanks!
neosoothsayer
gn everyone!
ramblex
nn
leo2007
Do you use those terminal packages included in Emacs?
ramblex
like eshell?
leo2007
yeah, or term ansi-term etc.
I wonder if they are good enough to replace external apps such as xterm, rvxt etc.
ramblex
for most things I think so
ryoma
i found glitches in term recently in carbon emacs 22, but perhaps other emacsen don't have glitches
,ansi-term
fsbot
ansi-term is, like, [0] A terminal that understands ANSI escape sequences and movement, can do curses
[1] See the wiki at http://www.emacswiki.org/cgi-bin/wiki.pl?AnsiTerm
ryoma
,term
fsbot
ryoma
what's ansi-term vs. term?
leo2007
I am using eshell but there are certain things that it cannot do and it is not uncommon to run into them.
quotemstr
YAY!
We have a climate deal --- except that it takes effect in 2050
Right.
reto`
well... I keep reminding me that 1 billion people are starving atm and nobody gives a sh*t... they like to discuss the climate and other funny things...
quotemstr
reto`: First of all, the number of starving people is nowhere close to 1 billion.
reto`
yes it is
quotemstr
reto`: Second, starvation is caused by rotten politics in underdeveloped nations, not by diversion of resources toward causes like climate change.
reto`: Consider Zimbabwe. It has some of the most fertile land in Africa, but its population is chronically undernourished because of the insane policies of its government.
jlf
(Action) is looking forward to global warming as it may allow his avocado trees to survive the winter
reto`
quotemstr: http://www.guardian.co.uk/world/2008/dec/10/hunger-population-un-food-environment
quotemstr
reto`: I stand corrected. :-P
ryoma
the seychelles will have to be evacuated due to global sea level rise, i heard
skorpan
the what?
ryoma
low islands
quotemstr
Which have a total population of all of 84,000.
And are too poor to undertake the solution rich nations will use: dikes.
skorpan
dykes?
quotemstr
Err, yes.
(Action) needs more coffee.
skorpan
i can't see how homosexuals would help -_-
quotemstr
Hrm. Looks like both names are acceptable according to Merriam-Webster.
skorpan
http://upload.wikimedia.org/wikipedia/commons/7/76/A_Dyke_on_a_Bike_by_David_Shankbone.jpg
not like in porn... no, not like in porn.
jlf
dike is the usual spelling
for the prevent-flooding kind
quotemstr
skorpan: Those arms -- I think we're actually witnessing plate tectonics of the flesh.
codyrobbins
How the heck do I get rid of the super-annoying 'Welcome to GNU Emacs, one component of the GNU/Linux operating system' message on startup?
It's the emacs version of the Office paperclip
ams
codyrobbins: why do youfind it annoying?
codyrobbins
ams: Because when I start editing a file I want to see the file, not the startup message
kjfletch
(setq initial-buffer-choice t) ;; how I have it done.
No, sorry, that doesn't work does it? :P
codyrobbins
The docs point to setting inhibit-startup-message, but that doesn't seem to do anything
ams
codyrobbins: (setq inhibit-startup-screen t)
ghdef
there are two types ofmessages, one shown in the minibuffer (which you can't supress i think),and then thesplash screen that shows some useful infomation for new users
codyrobbins
ams: Yeah, the splash screen is what I want to get rid of
ams
and if you read the manual, you'd know how.
codyrobbins
inhibit-startup-screen works on my OS X machine, but doesn't seem to work on Fedora Core 8
ams
i don't see what theoperating system type has to do with anything, this is an emacs issue.
Geralt
I bet it's because they're running different versions of Emacs, with Emacs 23 the variables changed
codyrobbins
I'm running emacs 22
ams
Geralt: oh bullsh*t.
Geralt
oh got that wrong, that's only related to the *scratch* message
ams
Geralt: again,bullsh*t.
codyrobbins
It's emacs 22.1.1 on both Fedora and OS X
ams
inhibit-splash-screen
read the NEWS
(the variables didn't change, there is an alias for them)
Geralt
ok, can't check why I had to change something, but with the installation of Emacs 23 I had to change something related to that, apparently I got something wrong
ams
Geralt: again, bullsh*t: read the news.
* Startup Changes in Emacs 23.1

** The option `inhibit-startup-screen' (with aliases to old names `inhibit-splash-screen' and `inhibit-startup-message') doesn't inhibit display of the initial message in the *scratch* buffer. If you don't want to display the initial message in the *scratch* buffer at startup, you can set the option `initial-scratch-message' to nil.
codyrobbins
I'm setting inhibit-startup-message in /usr/share/emacs/site-lisp/default.el, but it doesn't seem to be set by the time emacs is finished initializing
Is there some issue with where I have to set inhibit-startup-message?
ams
codyrobbins: ,,dv inhibit-startup-message
fsbot
not documented as a variable.
Defined in `/usr/share/emacs/23.1/lisp/startup.elc'.
ams
bah
Documentation:
Non-nil inhibits the startup screen.

This is for use in your personal init file (but NOT site-start.el), once you are familiar with the contents of the startup screen.
codyrobbins
ams: Oh, oops, I completely missed that
So there's no way to turn it off site-wide?
ams
no.
why would you?
fu*k up the life for your users?
soundsu seful.
quotemstr
codyrobbins: You can always monkeypatch the startup code.
skorpan
ams: that's a lousy reason to not make it possible sidewide
ams
straszheim: it is possible: hack emacs.
no particuloar technical reason tomake life for new users painful.
it is a four line patch.
codyrobbins
That's OK, I'll just put it in ~/.emacs
Thanks for the enlightenment
jlf
,yow
fsbot
A shapely CATHOLIC SCHOOLGIRL is FIDGETING inside my costume..
quotemstr
Talk about your garden path sentences.
codyrobbins
The horse raced past the barn fell.
hiredman
triggered three or four of my hilights
« prev 1 2 3 4 5 6 7 next »