From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Paw Writer" Newsgroups: gmane.emacs.help Subject: RE: Updating from Emacs 23.3.1 to 25.3 Date: Tue, 10 Oct 2017 14:28:51 -0400 Message-ID: <001801d341f5$9fb4de20$df1e9a60$@net> References: <000f01d3417c$366dec00$a349c400$@net> <87k203au8k.fsf@connact.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1507660231 22951 195.159.176.226 (10 Oct 2017 18:30:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Oct 2017 18:30:31 +0000 (UTC) Cc: 'EMACS Lists' To: "'Patricia J. Hawkins'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 10 20:30:25 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1zIF-0003ll-0d for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Oct 2017 20:30:15 +0200 Original-Received: from localhost ([::1]:36610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1zIJ-0001Mb-Am for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Oct 2017 14:30:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1zH5-0000zK-Ay for help-gnu-emacs@gnu.org; Tue, 10 Oct 2017 14:29:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1zH4-0001ZI-4U for help-gnu-emacs@gnu.org; Tue, 10 Oct 2017 14:29:03 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1zH4-0001ZE-0w for help-gnu-emacs@gnu.org; Tue, 10 Oct 2017 14:29:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35292) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e1zH3-00014a-Mv for gnu.emacs.help@gnu.org; Tue, 10 Oct 2017 14:29:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1zGz-0001XF-Fe for gnu.emacs.help@gnu.org; Tue, 10 Oct 2017 14:29:01 -0400 Original-Received: from resqmta-ch2-07v.sys.comcast.net ([2001:558:fe21:29:69:252:207:39]:59194) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e1zGz-0001WI-2O for gnu.emacs.help@gnu.org; Tue, 10 Oct 2017 14:28:57 -0400 Original-Received: from resomta-ch2-02v.sys.comcast.net ([69.252.207.98]) by resqmta-ch2-07v.sys.comcast.net with ESMTP id 1zG6eI9tgVdFj1zGweOkbz; Tue, 10 Oct 2017 18:28:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1507660134; bh=pyQj88k1227VkyWPQ5iF8LfPrXqPey2PUo+0KR0eCKc=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=eJH0DL7WXbvYe3L92AXgpCPb/dAl2SrE6XvE1a79020p0WscMpLeTwsXqNwuHmfTn RXK49gSh7d0B/3HTqEDrPiq5bcNqAKUWJ2miRnl5msSG+0OY3zh63dzzcNF/MW5MYz uUkB9GbUuBbGXMI/TbBrgiyD5hWUVheZ9kNXmuTwuIhzm3Ya6rmxf2DLLSaf0Z34ev 1SEx+Sy3/ZzJYsIVTxiDMCOZzzvPJ4AJtbUlP96tw0WVhac5q6fKB2EB4k37SLsarB EYkoobE/+kQIi9X0cB9EOEA6BCb7Vq/741tMQusP9psYKz8BwDBLfhM2WhflFuIHZs pEJ++08QCkgyA== Original-Received: from DougPC ([IPv6:2601:981:4480:1db0:d8df:2ec8:e75b:f721]) by resomta-ch2-02v.sys.comcast.net with SMTP id 1zGueKr8sqYvP1zGveAlqn; Tue, 10 Oct 2017 18:28:53 +0000 In-Reply-To: <87k203au8k.fsf@connact.com> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdNB4CTQYAPsR6PWQkCQUnJl5UWZ+QAFTv6g Content-Language: en-us X-CMAE-Envelope: MS4wfNywUTENw/rtVfvjKwaMHZteTemNcPckzNgoyx9b8hCOA9tZ7eH8dsgp5rw+f6p9y2EY6KfM+emhmH8k4obJRKJ2VewwjlL93ZP6/WAgUbdhaWGe/dsB PDlE74/avGkNVz16WZG/aPOEW9JIe/QPskDFF5/xFjnpf91GOmkYi5/cdHD6GRhod4wVr7bqU3Fpsg== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114542 Archived-At: Patrica, that is the best answer I've gotten yet. I'll let you know privately how it works. No use cluttering up the List. -----Original Message----- From: Patricia J. Hawkins [mailto:phawkins@connact.com] Sent: Tuesday, October 10, 2017 11:38 AM To: Paw Writer Cc: EMACS Lists Subject: Re: Updating from Emacs 23.3.1 to 25.3 Congratulations, my combined emacs config files have 1644 lines of actual not-commented-out code. (I should REALLY clean them up, but hey, they do work.) They've been evolving since maybe 1990... I didn't think to capture my first set of emacs config files which I started ~1986. SO, when stuff breaks for whatever reason, here is what I do: If the break is non-obvious, I just do divide-and-conquer to figure out what isn't working in my .emacs or other setup files. Comment out the bottom half of your .emacs (roughly; obviously you don't break code to do this.) I generally comment it with something like ";;PJH;;" using "string rectangle" so it's easy to strip out again. Does that work? Yes? Great! Drop a comment line at the top of the commented section: ;;PJH works to here <2017-10-10 Tue> Strip the comments from the top half of the commented section. Restart emacs. Doesn't work? Great! The problem is in the chunk you just uncommented. Comment out half of it. Restart emacs. Lather, rinse, repeat. Oh, and if you're not sure if a particular config file is getting read or not, go put an obvious error in it. Or add a line that will do something clear and obvious. (I call this, "If you can't fix it, break it worse.") And as for directories moving around, below is a chunk from a historic .emacs file of mine; note the commented-out code. I had this thing shared with a Windows virtual machine, and running OK on both the Ubuntu host and OSCAR, the Windows virtual machine, which had my elisp directory mounted as z: Oh, and then I did some fun stuff with guix, but IMO it's not ready for prime time yet, so the directory structures from that are commented out too. I do go for pragmatic over nice... ;; BEGIN .emacs CODE CHUNK ;; ;; (if (equal system-name "OSCAR") ;; (setq pjh-base-lispdir "z:/elisp" ;; pjh-emacs-base-lispdir "c:/emacs/emacs-23.1-bin-i386/emacs-23.1/" ;; custom-file "z:/.emacs-custom.el" ;; ) (setq pjh-base-lispdir (expand-file-name "~/elisp/") pjh-emacs-base-lispdir "/usr/share/emacs/" ; pjh-emacs-base-lispdir "/home/pjh/.guix-profile/share/emacs" custom-file "~/.emacs-custom.el") ;; ) ;(if ; (not (equal (expand-file-name "~/elisp") (car load-path))) (custom-set-variables '(load-path (append (list pjh-base-lispdir (concat pjh-base-lispdir "ljupdate") ; (concat pjh-base-lispdir "i3-emacs") (concat pjh-base-lispdir "g-client") (concat pjh-base-lispdir "site-lisp/w3m") (concat pjh-base-lispdir "emacs-calfw-master") ; ; "/gnu/store/02ynsjc924vi2p36dxgz7r7q10wr2k41-profile/share/emacs/site-lisp/" ; what's in my personal guix installation ; "/home/pjh/.guix-profile/share/emacs/site-lisp" ; what's in the base emacs guix installation ; "/home/pjh/Downloads/guix-0.10.0/emacs/" ; (expand-file-name "/usr/share/emacs/site-lisp/") ; (expand-file-name "/usr/share/emacs/site-lisp/emacs-goodies-el/") (concat pjh-base-lispdir "/home/pjh/.emacs.d/elpa") ;stuff installed from elpa ) load-path )) ) ;(add-to-list 'load-path "/path/to/directory-with-guix.el") ;(with-eval-after-load 'guix-autoloads nil t) ;(require 'guix-autoloads nil t) >>>>> "PW" == Paw Writer writes: PW> I am looking for some help with Upgrading Emacs. My current version PW> is GNU Emacs 23.3.1. EMacs is now up to 25.3 and has a different PW> directory structure. my .emacs has over 100 lines and doesn't run on PW> 25.3 and I have one of my utilities which has been completely PW> rewritten on 25.3 and won't run on 23.3.1. PW> I have tried Googling updating Emacs and have not found any detailed PW> help on what to do. Could someone give me some help? PW> I just think I need someone here with me to walk me thru it. I PW> already have PW> 25.3 on my computer, in an Emacs1 directory, but the directory PW> structure is so different, I have so much in my .emacs, and I need PW> updated versions of many of the procedures and am not sure where to PW> get them all. I live near Harrisburg, PA. -- Patricia J. Hawkins