unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Updating from Emacs 23.3.1 to 25.3
       [not found] <002701d3411c$7568d290$603a77b0$@net>
@ 2017-10-10  2:39 ` Stefan Monnier
  2017-10-10  4:00   ` Óscar Fuentes
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Monnier @ 2017-10-10  2:39 UTC (permalink / raw)
  To: help-gnu-emacs

> I know I have to do that, I just think I need someone here with me to walk
> me thru it.

We can easily do that over email.

> I already have 25.3 on my computer, in an Emacs1 directory, but
> the directory structure is so different,

That's hard to believe.  The directory structure hasn't changed much
between 23 and 25.

> I have so much in my .emacs, and I need updated versions of many of
> the procedures and am not sure where to get them all.

There's usually very little that needs to be changed when upgrading,
even for releases that are several years apart, as in your case.


        Stefan




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Updating from Emacs 23.3.1 to 25.3
@ 2017-10-10  3:59 Paw Writer
  2017-10-10 12:38 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Paw Writer @ 2017-10-10  3:59 UTC (permalink / raw)
  To: EMACS Lists

I am looking for some help with Upgrading Emacs. My current version is

GNU Emacs 23.3.1. EMacs is now up to 25.3 and has a different

directory structure. my .emacs has over 100 lines and doesn't run on

25.3 and I have one of my utilities which has been completely

rewritten on 25.3 and won't run on 23.3.1.

 

I have tried Googling updating Emacs and have not found any detailed

help on what to do. Could someone give me some help?

 

I just think I need someone here with me to walk me thru it. I already have
25.3 on my computer, in an Emacs1 directory, but the directory structure is
so different, I have so much in my .emacs, and I need updated versions of
many of the procedures and am not sure where to get them all. I live near
Harrisburg, PA.

 



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Updating from Emacs 23.3.1 to 25.3
  2017-10-10  2:39 ` Stefan Monnier
@ 2017-10-10  4:00   ` Óscar Fuentes
  2017-10-10  4:12     ` Stefan Monnier
  0 siblings, 1 reply; 13+ messages in thread
From: Óscar Fuentes @ 2017-10-10  4:00 UTC (permalink / raw)
  To: help-gnu-emacs

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I already have 25.3 on my computer, in an Emacs1 directory, but
>> the directory structure is so different,
>
> That's hard to believe.  The directory structure hasn't changed much
> between 23 and 25.

He probably is using Windows.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Updating from Emacs 23.3.1 to 25.3
  2017-10-10  4:00   ` Óscar Fuentes
@ 2017-10-10  4:12     ` Stefan Monnier
  2017-10-10  9:36       ` Phillip Lord
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Monnier @ 2017-10-10  4:12 UTC (permalink / raw)
  To: help-gnu-emacs

>>> I already have 25.3 on my computer, in an Emacs1 directory, but
>>> the directory structure is so different,
>> That's hard to believe.  The directory structure hasn't changed much
>> between 23 and 25.
> He probably is using Windows.

I guess statistically that's true, yes, but I don't see how that
explains why he find the directory structure to be "so different".

I think his notion of "directory structure" is quite different
from mine.


        Stefan




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Updating from Emacs 23.3.1 to 25.3
  2017-10-10  4:12     ` Stefan Monnier
@ 2017-10-10  9:36       ` Phillip Lord
  2017-10-10 12:32         ` Stefan Monnier
  0 siblings, 1 reply; 13+ messages in thread
From: Phillip Lord @ 2017-10-10  9:36 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: help-gnu-emacs

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>>> I already have 25.3 on my computer, in an Emacs1 directory, but
>>>> the directory structure is so different,
>>> That's hard to believe.  The directory structure hasn't changed much
>>> between 23 and 25.
>> He probably is using Windows.
>
> I guess statistically that's true, yes, but I don't see how that
> explains why he find the directory structure to be "so different".
>
> I think his notion of "directory structure" is quite different
> from mine.

He's correct. The directory structure changed from 23 to 24 I think,
along with the build proceedure. The Emacs-25 zip files actually are
actually tar bombs which extract to multiple sub-directories (/var,
/etc and so on).

Phil



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Updating from Emacs 23.3.1 to 25.3
  2017-10-10  9:36       ` Phillip Lord
@ 2017-10-10 12:32         ` Stefan Monnier
  2017-10-10 14:20           ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Monnier @ 2017-10-10 12:32 UTC (permalink / raw)
  To: Phillip Lord; +Cc: help-gnu-emacs

> He's correct. The directory structure changed from 23 to 24 I think,
> along with the build proceedure. The Emacs-25 zip files actually are
> actually tar bombs which extract to multiple sub-directories (/var,
> /etc and so on).

Ha!  Indeed I see this now.  Didn't know about that!
[ Or at least, can't remember it or any discussion about it.  ]
Thanks,


        Stefan



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Updating from Emacs 23.3.1 to 25.3
  2017-10-10  3:59 Updating from Emacs 23.3.1 to 25.3 Paw Writer
@ 2017-10-10 12:38 ` Eli Zaretskii
  2017-10-10 12:42 ` Kaushal Modi
  2017-10-10 15:38 ` Patricia J. Hawkins
  2 siblings, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2017-10-10 12:38 UTC (permalink / raw)
  To: help-gnu-emacs

> From: "Paw Writer" <pawwriter@comcast.net>
> Date: Mon, 9 Oct 2017 23:59:45 -0400
> 
> I am looking for some help with Upgrading Emacs. My current version is
> GNU Emacs 23.3.1. EMacs is now up to 25.3 and has a different
> directory structure. my .emacs has over 100 lines and doesn't run on
> 25.3 and I have one of my utilities which has been completely
> rewritten on 25.3 and won't run on 23.3.1.

I think you should begin by posting the error messages you get when
starting Emacs 25.3, then people here will help you fix those errors
one by one.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Updating from Emacs 23.3.1 to 25.3
  2017-10-10  3:59 Updating from Emacs 23.3.1 to 25.3 Paw Writer
  2017-10-10 12:38 ` Eli Zaretskii
@ 2017-10-10 12:42 ` Kaushal Modi
  2017-10-10 12:56   ` Benoît Coste
  2017-10-10 15:38 ` Patricia J. Hawkins
  2 siblings, 1 reply; 13+ messages in thread
From: Kaushal Modi @ 2017-10-10 12:42 UTC (permalink / raw)
  To: Paw Writer, EMACS Lists

On Tue, Oct 10, 2017, 8:30 AM Paw Writer <pawwriter@comcast.net> wrote:

> I am looking for some help with Upgrading Emacs. My current version is
>
> GNU Emacs 23.3.1. EMacs is now up to 25.3 and has a different
>
> directory structure.


How does the Emacs directory structure matter?

my .emacs has over 100 lines


Can you share your .emacs? Probably attach?

and doesn't run on
>
> 25.3


When you say "doesn't run", what happens? Do you get an error? Run "emacs
--debug-init", and report back the error backtrace if you get one.

and I have one of my utilities which has been completely
>
> rewritten on 25.3 and won't run on 23.3.1.
>

Again, what does "won't run" mean? What utility is that? Not sure why it
would need to be rewritten unless you can share the code.
-- 

Kaushal Modi


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Updating from Emacs 23.3.1 to 25.3
  2017-10-10 12:42 ` Kaushal Modi
@ 2017-10-10 12:56   ` Benoît Coste
  0 siblings, 0 replies; 13+ messages in thread
From: Benoît Coste @ 2017-10-10 12:56 UTC (permalink / raw)
  To: Kaushal Modi, Paw Writer, EMACS Lists

Hi there,

Can you also try to open your new emacs without loading your .emacs ? Just
do:
emacs -q
Is Emacs starting ?
If not, the problem is not in your .emacs file.



On Tue, Oct 10, 2017 at 2:42 PM Kaushal Modi <kaushal.modi@gmail.com> wrote:

> On Tue, Oct 10, 2017, 8:30 AM Paw Writer <pawwriter@comcast.net> wrote:
>
> > I am looking for some help with Upgrading Emacs. My current version is
> >
> > GNU Emacs 23.3.1. EMacs is now up to 25.3 and has a different
> >
> > directory structure.
>
>
> How does the Emacs directory structure matter?
>
> my .emacs has over 100 lines
>
>
> Can you share your .emacs? Probably attach?
>
> and doesn't run on
> >
> > 25.3
>
>
> When you say "doesn't run", what happens? Do you get an error? Run "emacs
> --debug-init", and report back the error backtrace if you get one.
>
> and I have one of my utilities which has been completely
> >
> > rewritten on 25.3 and won't run on 23.3.1.
> >
>
> Again, what does "won't run" mean? What utility is that? Not sure why it
> would need to be rewritten unless you can share the code.
> --
>
> Kaushal Modi
>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Updating from Emacs 23.3.1 to 25.3
  2017-10-10 12:32         ` Stefan Monnier
@ 2017-10-10 14:20           ` Eli Zaretskii
  2017-10-10 14:28             ` Stefan Monnier
  0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2017-10-10 14:20 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Tue, 10 Oct 2017 08:32:42 -0400
> Cc: help-gnu-emacs@gnu.org
> 
> > He's correct. The directory structure changed from 23 to 24 I think,
> > along with the build proceedure. The Emacs-25 zip files actually are
> > actually tar bombs which extract to multiple sub-directories (/var,
> > /etc and so on).
> 
> Ha!  Indeed I see this now.  Didn't know about that!
> [ Or at least, can't remember it or any discussion about it.  ]

You just don't remember, there were too many discussions of that.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Updating from Emacs 23.3.1 to 25.3
  2017-10-10 14:20           ` Eli Zaretskii
@ 2017-10-10 14:28             ` Stefan Monnier
  0 siblings, 0 replies; 13+ messages in thread
From: Stefan Monnier @ 2017-10-10 14:28 UTC (permalink / raw)
  To: help-gnu-emacs

> You just don't remember, there were too many discussions of that.

Yes, I probably skipped them because they were specific to w32.


        Stefan




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Updating from Emacs 23.3.1 to 25.3
  2017-10-10  3:59 Updating from Emacs 23.3.1 to 25.3 Paw Writer
  2017-10-10 12:38 ` Eli Zaretskii
  2017-10-10 12:42 ` Kaushal Modi
@ 2017-10-10 15:38 ` Patricia J. Hawkins
  2017-10-10 18:28   ` Paw Writer
  2 siblings, 1 reply; 13+ messages in thread
From: Patricia J. Hawkins @ 2017-10-10 15:38 UTC (permalink / raw)
  To: Paw Writer; +Cc: EMACS Lists

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 <pawwriter@comcast.net> writes:

PW> I am looking for some help with Upgrading Emacs. My current version is
PW> 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 already have
PW> 25.3 on my computer, in an Emacs1 directory, but the directory structure is
PW> so different, I have so much in my .emacs, and I need updated versions of
PW> many of the procedures and am not sure where to get them all. I live near
PW> Harrisburg, PA.

 



-- 
Patricia J. Hawkins



^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: Updating from Emacs 23.3.1 to 25.3
  2017-10-10 15:38 ` Patricia J. Hawkins
@ 2017-10-10 18:28   ` Paw Writer
  0 siblings, 0 replies; 13+ messages in thread
From: Paw Writer @ 2017-10-10 18:28 UTC (permalink / raw)
  To: 'Patricia J. Hawkins'; +Cc: 'EMACS Lists'

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 <pawwriter@comcast.net> 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




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-10-10 18:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-10  3:59 Updating from Emacs 23.3.1 to 25.3 Paw Writer
2017-10-10 12:38 ` Eli Zaretskii
2017-10-10 12:42 ` Kaushal Modi
2017-10-10 12:56   ` Benoît Coste
2017-10-10 15:38 ` Patricia J. Hawkins
2017-10-10 18:28   ` Paw Writer
     [not found] <002701d3411c$7568d290$603a77b0$@net>
2017-10-10  2:39 ` Stefan Monnier
2017-10-10  4:00   ` Óscar Fuentes
2017-10-10  4:12     ` Stefan Monnier
2017-10-10  9:36       ` Phillip Lord
2017-10-10 12:32         ` Stefan Monnier
2017-10-10 14:20           ` Eli Zaretskii
2017-10-10 14:28             ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).