From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@ameritech.net Newsgroups: gmane.emacs.help Subject: Re: Loading local .emacs from remote machine Date: Wed, 5 Feb 2003 10:17:12 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <841y2mvqj5.fsf@lucy.is.informatik.uni-duisburg.de> Reply-To: gebser@ameritech.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: main.gmane.org 1044459113 19405 80.91.224.249 (5 Feb 2003 15:31:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Feb 2003 15:31:53 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18gRWh-00052p-00 for ; Wed, 05 Feb 2003 16:31:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18gRQg-00059x-00 for gnu-help-gnu-emacs@m.gmane.org; Wed, 05 Feb 2003 10:25:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!quimby.gnus.org!heidegger.mousecar.net!ken Original-Newsgroups: gnu.emacs.help Original-Lines: 143 Original-NNTP-Posting-Host: adsl-65-43-212-228.dsl.bcvloh.ameritech.net Original-X-Trace: quimby.gnus.org 1044458646 10429 65.43.212.228 (5 Feb 2003 15:24:06 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 5 Feb 2003 15:24:06 GMT In-Reply-To: <841y2mvqj5.fsf@lucy.is.informatik.uni-duisburg.de> Original-Xref: shelby.stanford.edu gnu.emacs.help:109827 X-Originally-To: Kai =?iso-8859-1?q?Gro=DFjohann?= Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6332 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6332 Kai Großjohann at 13:51 (UTC+0100) on Wed, 5 Feb 2003 said: = gebser@ameritech.net writes: = = > Kai Großjohann at 18:30 (UTC+0100) on Tue, 4 Feb 2003 said: = > = > I was following the documentation. What would be the way to load a = > *.texi file? = = It doesn't make sense to "load" a *.texi file. You can convert it to = info format with M-x texinfo-format-buffer RET or with the external = makeinfo program. (Though the latter doesn't work in this case, of = course...) Hmmm.... I loaded tramp.texi into a buffer, then did "M-x texinfo-format-buffer RET" and it halted midway with the cursor on a line saying "@macro trampver{}" and with the comment "@macro is not handled by texinfo". = = After this, you'll have *.info files which you can look at with C-u = C-h i. Did this and was prompted in the minibuffer for a filename (with the current .../tramp/texi/ directory provided. I looked at the directory listing and found tramp.info, tramp.info-1, and tramp.info-2 and quite arbitrarily picked tramp.info-1. This then brings up the info file and it seems to work. I did the same again, but this time specifying tramp.info-- this wasn't so good. Hitting SPACE would page down fine, but if I hit 'm' I was prompted for a menu item, then typed in the first few chars of "Inst", hit TAB, it completed to "Installation" successfully, but then when I hit ENTER, it beeped and said in the minibuffer "No such anchor in tag table or node in tag table or file: Installation". Didn't have this problem with tramp.info-1. = = Where in the documentation did you find instructions to load the = *.texi files? I couldn't see it. I want to correct it... It's on the web at under "Node:Installation". The tramp tarball I got didn't have any installation instructions. Well, not until just now when, with your help, I got a working info file... sort of. If, from the command line, I do "info tramp", info comes up, but says "No menu item `tramp' in node `(dir)Top'". If you first warn installer-wannabees to use 'q' to quit/exit "info", you could hip them to the install instructions by having them or something run "cd ./texi; info --file tramp.info-1 --node Installation", this to bring up your instructions. = = > = > Subsequently doing "M-x makeinfo-buffer" yeilds "[No match]". = > = = > = I think it's M-x texinfo-format-buffer RET... = > = > Again, the command I used was directly from the docs. = = Got to look at the docs again, to correct them. [time passes] Ah, = found it, and corrected it. The webpage still says: "Something similar can be done to create the info manual. Just change to directory ~/emacs/tramp/texi and load the tramp.texi file in Emacs. Then press M-x makeinfo-buffer to generate tramp.info." This is the "Tramp Manual" at . = ... = >... = > = = > = Could you put (setq tramp-verbose 10) and (setq tramp-debug-buffer t) = > = in ~/.emacs and try again and show me the *tramp/foo* buffer in = > = addition to the *debug tramp/foo* buffer? = > = = > = Also, it would be good to do M-x toggle-debug-on-quit RET before = > = trying, then C-g will give you a backtrace. Please send it, too. = > = = > = Oh, and removing tramp.elc before starting Emacs will give a prettier = > = backtrace. = > = > Did all this. Then tried to open a file on the same machine as before. = = > $ # Setting shell prompt = > $ PS1=' = > ///»¢ò ;YÖv­  éü­ = > '; PS2=''; PS3='' = = Now we're talking! It's the bogus md5 invocation. Whee. I believe = this is fixed in the development sources already, so let me put out a = new version. Cool! I really like progress. = = You could fetch the CVS version to test it, if you like. = = > A string in elisp must be some really strange thing. = > = > (add-to-list 'tramp-shell-prompt-pattern "abc") = > = > also gives the same error. It seems that everything and anything I put into = > the third arg is a listp. It's a shame elisp is so obtuse. I'd like to learn = > it so's to do some helpful work on emacs. Several times I've tried to do = > simple things in elisp, following books and tutorials, but never had any = > progress with it. Maybe I need to be dyslexic. :) = = In Lisp, a general type is sequence. Lists are one subtype of = sequence, and vectors are another. Strings are vectors of characters. = = add-to-list can only add to lists, not to arbitrary sequences. = = Does this make sense? Yes, thanks much. It's not enough for me write all those gorgeous emacs apps I've been hankering to do, but, as said, I like progress. I think I remember reading in a book or two that every|some (?) data type(s) in elisp contain(s) an element (including perhaps null... or nil... I forget, except there's a difference... I think) *and* the implication of a subsequent such element-- hence, a sequence. That a string is a vector of characters (delimited by double quotes, yes?) is simple enough. Is it also possible to have a list of characters? If not, why not? If so, how would it be structurally or functionally different or handled differently from a string? Kai, thanks for your help and for the work you've done on this package. Much appreciated. Regards, ken -- Happy Gui-Wei 4700