From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4200259190b16e16 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-04 05:15:03 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.ip.ndsoftware.net!news.completel.fr!ircam.fr!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Visibility problems with package instantiations..... Date: 04 Dec 2003 08:09:22 -0500 Organization: Cuivre, Argent, Or Message-ID: References: <95234e08.0311270742.631b1228@posting.google.com> <349csv0udb5k0kuk0q99d7tm7fh5leuefu@4ax.com> <95234e08.0311280323.7a5bb870@posting.google.com> <95234e08.0311302345.4f9e235b@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1070543385 743 80.67.180.195 (4 Dec 2003 13:09:45 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 4 Dec 2003 13:09:45 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: Dmitry A.Kazakov Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:3127 Date: 2003-12-04T08:09:22-05:00 Dmitry A.Kazakov writes: > On 03 Dec 2003 13:09:25 -0500, Stephen Leake > wrote: > > >Hmm. In emacs, I pull up the whole directory, then search in the > >buffer. > > > >But actually, to navigate Ada source, I don't tend to use file names; > >I use Ada names, and let Emacs figure out where the files are. > > I see. You know, an ability to accept emacs is IMO sort of genetically > preprogrammed. (:-)) Well, there do seem to be Emacs people and non-Emacs people. > >File names that mimic the package tree are better than directories > >that mimic the package tree, in my opinion. I haven't heard any solid > >evidence here to contradict that. > > As a emacs user you should see little difference between: > > fuzzy-graph-handle-learning-implementation.ads > > and > > fuzzy/graph/handle/learning/implementation.ads > > after all one can substitute '/' for '-' in emacs. Exactly; they are very much the same in readability. But, I have to add all directories to various search lists, so it is much easier to have only a few directories. Thus I prefer long file names over long directory paths. > Then, do not you feel that packing everything in one directory is > similar to packing all packages in one huge all_stuff.ada file? Since the Ada compiler treats compilation units in one file much differently than compilation units in separate files, but cares not at all about what directories things are in, these are very different issues. > I mean that if we accept the idea of mapping compilation units to > files, we should also, consequently, accept mapping of their > parent-child relations to the directory-file ones. I accept it as a possibility, but it is simply not as nice in practice. Java is the only language I have used that cares about directories; I found it annoying. But if I had to use it much, I'd teach Emacs how to deal with it efficiently (or, more likely, find an Emacs package that someone else has written that does that). Then I wouldn't notice anymore. The same could be done for Ada, of course, if we had a compiler that supported it. But I see no compelling reason to bother. If the tools you are using get in your way (don't allow an efficient, convenient way to find files), then get (or build) better tools. The compiler is not at fault; your IDE is. I find GPS annoying with long file names, because it does not allow searching on anything other than the first letter of the file name (as do most GUI IDEs). Emacs allows searching on any portion of the file name. Give Emacs another try; it will be good for you :). -- -- Stephe