help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Software/HD ecology


From: Miles Bader
Subject: Re: Software/HD ecology
Date: 22 Dec 2002 11:54:22 +0900

Fredrik Staxeng <address@hidden> writes:
> Perhaps I have not made the mechanism clear. The idea was the makefile
> calls "gnu-install package version file dest", instead of install.sh
> or BSD install. This is a simple extension of what is already done
> today.

No, it's completely obvious what you meant; it's just that you're
over-specifying.  Such implementation details are up to the package
maintainers.

Similarly, the coding standards _don't_ say `you should use autoconf to
make a configure script' (even though that's certainly one of the best
ways to do it, and how it's almost always done), they just say `you
should have a configure script.'

> I would like to be able to force packages to use a tool that I trust. 
> If it is easy enough to do, I would implement support for it and send
> patches to the maintainer.

If you personally don't want to trust anything that doesn't use a
`gnu-install' script, you're free to only use packages that do.

-Miles
-- 
"1971 pickup truck; will trade for guns"
>From address@hidden  Sun Dec 22 05:50:09 2002
Sender: address@hidden
Newsgroups: comp.sys.mac.apps,comp.sys.mac.advocacy,comp.text.tex,gnu.emacs.help
References: <address@hidden>
        <address@hidden> <address@hidden>
        <address@hidden> <address@hidden>
        <address@hidden> <address@hidden>
        <address@hidden> <address@hidden>
        <address@hidden> <address@hidden>
        <address@hidden> <address@hidden>
        <address@hidden> <address@hidden>
        <address@hidden>
        <address@hidden>
        <address@hidden> <address@hidden>
        <address@hidden> <address@hidden>
        <address@hidden>
        <address@hidden>
        <address@hidden>
        <address@hidden>
        <address@hidden>
From: Fredrik Staxeng <address@hidden>
Date: 22 Dec 2002 11:46:07 +0100
Message-ID: <address@hidden>
Lines: 53
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: news.update.uu.se
X-Trace: puffinus.its.uu.se 1040552992 news.update.uu.se (22 Dec 2002 11:29:52
        +0100)
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news.algonet.se!newsfeed1.telenordia.se!algonet!newsfeed.sunet.se!news01.sunet.se!puffinus.its.uu.se
Xref: shelby.stanford.edu comp.sys.mac.apps:349525
        comp.sys.mac.advocacy:919644 comp.text.tex:238710 gnu.emacs.help:108415
To: address@hidden
Subject: Re: Software/HD ecology
X-BeenThere: address@hidden
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:address@hidden>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:address@hidden>
X-List-Received-Date: Sun, 22 Dec 2002 10:50:09 -0000

Miles Bader <address@hidden> writes:

>Fredrik Staxeng <address@hidden> writes:
>> Perhaps I have not made the mechanism clear. The idea was the makefile
>> calls "gnu-install package version file dest", instead of install.sh
>> or BSD install. This is a simple extension of what is already done
>> today.
>
>No, it's completely obvious what you meant; it's just that you're
>over-specifying.  Such implementation details are up to the package
>maintainers.

My proposal is for an external facility, and that packages check for
it and use it if available. I think that the main feature of the 
proposal is that it places minimal burden on the package maintainers.

I think that requiring working uninstall targets places a bigger burden
on package maintainers.

>From the gcc-3.2 Makefile:

uninstall:
        @echo "the uninstall target is not supported in this tree"

>Similarly, the coding standards _don't_ say `you should use autoconf to
>make a configure script' (even though that's certainly one of the best
>ways to do it, and how it's almost always done), they just say `you
>should have a configure script.'

Autoconf is one of those things that only get reinvented by people
who don't understand how much work went into making it in the first
place. I would go a bit further than saying that it is the best way,
I think its the only reasonable way. I think the coding standards
could recommend autoconf a bit more strongly that they do today.

There is nothing in my proposal that requires autoconf. It merely
makes it easier to implement support for it. 

>> I would like to be able to force packages to use a tool that I trust. 
>> If it is easy enough to do, I would implement support for it and send
>> patches to the maintainer.
>
>If you personally don't want to trust anything that doesn't use a
>`gnu-install' script, you're free to only use packages that do.

I always do "make -n install" to see what the package wants to install.
Partly because of curiosity, I want to know where it puts things, 
and what those things are. But of course, there is the suspicion
that it might do something bad. It has happened in the past, it will
happen again. (This does not imply malice on any part, of course)

-- 
Fredrik Stax\"ang | rot13: address@hidden
>From address@hidden  Sun Dec 22 06:35:10 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!spool0902.news.uu.net!not-for-mail
Newsgroups: gnu.emacs.help
References: <address@hidden>
        <address@hidden>
From: David Klein <address@hidden>
Date: 22 Dec 2002 13:33:15 +0200
Message-ID: <address@hidden>
X-Newsreader: Gnus v5.7/Emacs 20.7
Lines: 52
NNTP-Posting-Host: 199.172.169.19
X-Trace: 1040556796  8280 199.172.169.19
Xref: shelby.stanford.edu gnu.emacs.help:108416
To: address@hidden
Subject: Re: 1st character change in file takes forever
X-BeenThere: address@hidden
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:address@hidden>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:address@hidden>
X-List-Received-Date: Sun, 22 Dec 2002 11:35:10 -0000

Barry Margolin <address@hidden> writes:

> In article <address@hidden>,
> David Klein  <address@hidden> wrote:
> >When I first try to insert a character into a buffer that is
> >associated with a file on disk, the insert takes close to a minute!
> 
> During that first change, Emacs checks whether someone else has modified
> the file, and also checks for a lock file.  For some reason, these checks
> are taking a long time.  Try doing a system call trace to see what it's
> doing during that time.
> 

Assuming by "a system call trace" you meant the strace function, I did
the following:

> emacs junk1&
> strace -c -f -ff -o emacs_trace -q -r -t -T -p1238
(1238 was the pid of emacs. After running the strace command, I
 pressed the spacebar once in emacs. When it finally inserted the
 space into the buffer, I ^C'ed the strace).
> cat emacs_trace
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 98.46   12.598431          49    255963           read
  1.21    0.154380        5718        27           select
  0.13    0.016690          98       170           ioctl
  0.06    0.007652          93        82           sigreturn
  0.06    0.007152         170        42           SYS_174
  0.03    0.004175          66        63           alarm
  0.03    0.004048          92        44           fcntl
  0.02    0.002571         234        11           write
  0.00    0.000091           4        26           kill
  0.00    0.000070          70         1           symlink
  0.00    0.000068           3        27           getpid
  0.00    0.000038           3        13           gettimeofday
  0.00    0.000033          11         3         3 access
  0.00    0.000024          12         2         1 open
  0.00    0.000020          20         1           stat
  0.00    0.000011           4         3           SYS_175
  0.00    0.000008           8         1           close
  0.00    0.000004           4         1           lseek
------ ----------- ----------- --------- --------- ----------------
100.00   12.795466                256480         4 total


I have no idea how to continue, besides the fact that 255963 read
syscalls seems slightly on the high side for inserting a single
character. Any ideas how to continue?

-- 
Use of tools distinguishes Man from Beast. And UNIX users from WINDOZE lusers.
>From address@hidden Sun Dec 22 09:12:51 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
        id 18Q6qZ-000086-00
        for address@hidden; Sun, 22 Dec 2002 09:12:51 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
        id 18Q6qX-00005s-00
        for address@hidden; Sun, 22 Dec 2002 09:12:51 -0500
Received: from mailout02.sul.t-online.com ([194.25.134.17])
        by monty-python.gnu.org with esmtp (Exim 4.10.13)
        id 18Q6qX-0008QK-00
        for address@hidden; Sun, 22 Dec 2002 09:12:49 -0500
Received: from fwd09.sul.t-online.de 
        by mailout02.sul.t-online.com with smtp 
        id 18Q6qI-00079s-07; Sun, 22 Dec 2002 15:12:34 +0100
Received: from lucy.is.informatik.uni-duisburg.de
        (address@hidden) by fmrl09.sul.t-online.com
        with esmtp id 18Q6q1-1gnHaCC; Sun, 22 Dec 2002 15:12:17 +0100
Received: by lucy.is.informatik.uni-duisburg.de (Postfix, from userid 1003)
        id 7D82643ACF; Sun, 22 Dec 2002 15:12:16 +0100 (CET)
To: address@hidden
References: <address@hidden>
From: address@hidden (Kai =?iso-8859-1?q?Gro=DFjohann?=)
Date: Sun, 22 Dec 2002 15:12:16 +0100
In-Reply-To: <address@hidden>
        (<address@hidden>'s
        message of "Sat, 21 Dec 2002 20:38:23 -0500 (EST)")
Message-ID: <address@hidden>
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50
 (i686-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Sender: address@hidden
cc: address@hidden
cc: address@hidden
Subject: Re: any Emacs features to help keep code/comments under 80 columns
 width? (fwd)
X-BeenThere: address@hidden
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:address@hidden>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:address@hidden>
X-List-Received-Date: Sun, 22 Dec 2002 14:12:52 -0000

<address@hidden> writes:

> By trial and error I found the item in my .emacs that
> messes up (setq scroll-step 1) in .emacs.  I have
> an item on my modeline that needs to updated often
> so I added a "force-mode-line-update" (See below.).
>
> When I don't include this line all if fine with scrolling.

As a workaround, it might be best to remove the column number hack
and stick with plain column-number-mode enabled (or %c in
mode-line-format).  That's off by one, but oh, well.

The C source that implements the modeline display could be changed so
that the column number is printed 1-based instead of 0-based.

-- 
~/.signature is: umop ap!sdn    (Frank Nobis)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]