From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maria Shinoto Subject: Re: How to safely update from ver. 8.2.10 to 8.3.x Date: Tue, 16 Aug 2016 14:14:30 +0900 Message-ID: <43d206d2-4a96-1df9-11e0-75e900fa3ab8@shinoto.de> References: <9b5e20d8d0274582a17d4ddb04aaf999@exchsrv2.sgc.loc> <5a776464-0616-1554-b8ad-50fae2d658bc@shinoto.de> <1471321150864.146@stowers.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZWi6-0000mD-Ac for emacs-orgmode@gnu.org; Tue, 16 Aug 2016 01:14:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZWi0-0001J4-AV for emacs-orgmode@gnu.org; Tue, 16 Aug 2016 01:14:45 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:51435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZWhz-0001Ij-WD for emacs-orgmode@gnu.org; Tue, 16 Aug 2016 01:14:40 -0400 In-Reply-To: <1471321150864.146@stowers.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: MEC@stowers.org, emacs-orgmode@gnu.org Thanks again, this was really helpful, and I understand the logic. To explain what worked: - My Emacs was simply the downloaded version of "EmacsForOSX", which resides in the application folder. - The path to the emacs file that opens from the Terminal turned out to be /Applications/Emacs.app/Contents/MacOS/Emacs - So the Terminal commands was /Applications/Emacs.app/Contents/MacOS/Emacs -Q - After checking that only the 2 regular buffers were active and orgmode not loaded, I installed the package with the package manager. It worked well, my org-mode is now the newest version, and updating this way was really easy. May I suggest that the procedure that Malcolm explained so well will be part of the explanation/wiki/manuals? Beginners like me can become confused -- software bug, stupid user bug, what else... Cheers to the list, Maria Am 16.08.16 um 13:19 schrieb Cook, Malcolm: > Answers are out of order: > > (2) - oops , you are correct. What you want is: > >> emacs -Q -batch -eval "(progn (require 'package) >> (package-initialize) (package-refresh-contents) (package-install >> 'org))" > > > (1) - you have 2 copies of emacs installed on your mac probably one > in /usr/bin/emacs . How did you install the gui version? If > Homebrew, then the other is in /usr/local/bin/emacs. If EmacsForOSX > then, if I remember correctly, it is in /Applications/Emacs.app which > is really just a folder and which contains in it Emacs the actual > emacs program to run. In any case, just replace emacs in the above > command line with the full path to the emacs you are using, like > this: > >> /usr/local/bin/emacs -Q -batch -eval "(progn (require 'package) >> (package-initialize) (package-refresh-contents) (package-install >> 'org))" > > or this > >> /Applications/Emacs.app/emacs -Q -batch -eval "(progn (require >> 'package) (package-initialize) (package-refresh-contents) >> (package-install 'org))" > > > (3) yes - start a fresh emacs and don't load your init.el file, > using the -Q option, like this > >> /Applications/Emacs.app/emacs -Q > > And then don't load any .org files!!! Go directly to the package > manager and refresh your org installation like any other package. > > ~ malcolm_cook@stowers.org > > ________________________________________ From: Maria Shinoto > Sent: Monday, August 15, 2016 6:06 PM To: Cook, > Malcolm Subject: Re: [O] How to safely update from ver. 8.2.10 to > 8.3.x > > Hi, > > so, it was good that I asked, thanks for your advice. > > I got the idea, but there are two questions left. I prefer simple > org since I am a beginner and want to start with the standards. > >> emacs -Q -batch -eval "(progn (require 'package) (add-to-list >> 'package-archives '(\"org\" . \"http://orgmode.org/elpa/\")) >> (package-initialize) (package-refresh-contents) (package-install >> 'org-plus-contrib))" > >> Note: I use org-plus-contrib from melpa instead of org. If you >> want just org, you could simply: >> >> emacs -Q -batch -eval "(progn (require 'package) >> (package-initialize) (package-refresh-contents) (package-install >> 'org-plus-contrib))" > > (1) When I check my emacs version in the Terminal (running Mac OS X > 10.11), I get version "GNU Emacs 22.1.1", while asking from the GUI > shows version 24.5 (9.0). I do not understand why this can happen, > how these are separated and how they influence each other. > Furthermore, if they are separate, how should an installation from > the Terminal influence the situation in the GUI? > > > > (2) Your second script is different, but it still deals with > "org-plus-contrib". Could you verify the script so that I can be > sure that I install the right org-mode version? > > > (3) Is there a way to safely install the org-mode package from the > GUI package manager? This would be easiest, since I intend to go on > with the GUI emacs. In other words, I am looking for a way to start > the GUI without org-mode loaded (similar to "emacs -Q" in the > Terminal). > > > Thanks again, Maria > >