| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| other:emacs_doc [2025/03/17 10:32] – [Windows] Added note about upgrade possibly working with emacs>=30.1 jypeter | other:emacs_doc [2025/12/03 17:16] (current) – [Windows] Added details for 30.1 jypeter |
|---|
| * **If** you need to use the **emacs //ediff// mode to compare text files**\\ <wrap hi>Very useful</wrap> | * **If** you need to use the **emacs //ediff// mode to compare text files**\\ <wrap hi>Very useful</wrap> |
| * Install the Windows version of [[https://www.gnu.org/software/diffutils/diffutils.html|Gnu diffutils]] | * Install the Windows version of [[https://www.gnu.org/software/diffutils/diffutils.html|Gnu diffutils]] |
| * Download the //Complete package, except sources// ''Setup'' installer (''diffutils-2.8.7-1.exe'' as of August 2024) from [[https://gnuwin32.sourceforge.net/packages/diffutils.htm|]] and execute the installer | * Can be installed with ''[[other:win10apps#installing_applications_with_winget|winget]]'': ''[[https://ragerworks.com/package/GnuWin32.DiffUtils|winget install --id=GnuWin32.DiffUtils -e]]'' |
| * This will install the required binaries and reources in ''C:\Program Files (x86)\GnuWin32\'' | * Otherwise, download the //Complete package, except sources// ''Setup'' installer (''diffutils-2.8.7-1.exe'' as of August 2025) from [[https://gnuwin32.sourceforge.net/packages/diffutils.htm|]] and execute the installer |
| * If you use the recommended ''.emacs'' configuration file, it should already include the following section telling ''emacs'' where to find the ''diffutils'' binaries it needs for comparing text files | * This will install the required binaries and reources in ''C:\Program Files (x86)\GnuWin32\'' |
| * <code>(when (eq window-system 'w32) | * If you use the recommended ''[[#example_configuration_file|.emacs]]'' configuration file, it should already include the following section telling ''emacs'' where to find the ''diffutils'' binaries it needs for comparing text files\\ ...Otherwise add these lines to your ''.emacs'' file |
| | * <code>(when (eq window-system 'w32) |
| (setq exec-path (append exec-path '("C:\\Program Files (x86)\\GnuWin32\\bin"))) | (setq exec-path (append exec-path '("C:\\Program Files (x86)\\GnuWin32\\bin"))) |
| )</code> | )</code> |
| * FIXME Check if there is a recent //compiled for Windows// version of ''diffutils''\\ As of August 2024... | * FIXME Check if there is a recent //compiled for Windows// version of ''diffutils''\\ As of August 2025... |
| * [[https://savannah.gnu.org/news/?id=10368|diffutils-3.10]] is available (released in May 2023) | * [[https://savannah.gnu.org/news/?id=10368|diffutils-3.12]] sources are available (released in April 2025) |
| * The ''2.8.7-1'' Win32 binaries are dated //May 2004//, but **work perfectly fine**! | * Only the ''2.8.7-1'' Win32 binaries are available (dated //May 2004//), but **work perfectly fine**! |
| |
| === emacs for Windows technical notes === | === emacs for Windows technical notes === |
| * [[https://github.com/rougier#emacs-hacking|Emacs hacking]] by Nicolas Rougier | * [[https://github.com/rougier#emacs-hacking|Emacs hacking]] by Nicolas Rougier |
| |
| ===== Updating emacs ===== | ===== Updating (or uninstalling) emacs ===== |
| |
| ==== Linux ==== | ==== Linux ==== |
| ==== Windows ==== | ==== Windows ==== |
| |
| <note tip>''winget list'' returns a result, **after installing ''Emacs 30.1''**, so it is possible that ''winget upgrade'' will work, at last! :-) | <note tip>''winget'' and ''Emacs'' seem to be completely compatible, starting with ''Emacs 30.2'' (August 2025) !!\\ \\ ''winget list'' returns a result, **and** finds the correct Version information!\\ \\ |
| | |
| | <code>> winget list --id GNU.Emacs |
| | Nom ID Version Source |
| | ---------------------------------------- |
| | GNU Emacs 30.2 GNU.Emacs 30.2 winget</code> |
| | </note> |
| | |
| | === Emacs 30.2 end newer === |
| | |
| | Just use ''winget list'' and ''winget upgrade'' to check the currently installed version, and get a more recent version, if available |
| | |
| | <code>> winget list --id GNU.Emacs |
| | Nom ID Version Source |
| | ---------------------------------------- |
| | GNU Emacs 30.2 GNU.Emacs 30.2 winget |
| | |
| | > winget upgrade --id GNU.Emacs |
| | Mise à niveau disponible introuvable. |
| | Aucune version de package plus récente n’est disponible à partir des sources configurées</code> |
| | |
| | === Emacs 30.1 === |
| | |
| | <note tip>''winget list'' returns a result, **after installing ''Emacs 30.1''**\\ \\ ''winget upgrade'' can later install ''Emacs 30.2'', but will not uninstall ''Emacs 30.1'' automatically, because the Version information for ''30.1'' is ''Unknown'' |
| |
| <code>> winget list --id GNU.Emacs | <code>> winget list --id GNU.Emacs |
| -------------------------------------------------- | -------------------------------------------------- |
| GNU Emacs 30.1 GNU.Emacs Unknown 30.1 winget</code></note> | GNU Emacs 30.1 GNU.Emacs Unknown 30.1 winget</code></note> |
| | |
| | When you upgrade ''Emacs 30.1'' with ''winget'', you end up with both ''Emacs 30.1'' and ''Emacs 30.2'' installed! You can go to the Windows applications panel, and manually uninstall ''Emacs 30.1'' |
| | |
| | {{ :other:emacs_30.1_uninstall.png?direct&400 |}} |
| | |
| | === Before Emacs 30.1 === |
| |
| Using ''winget upgrade'' for updating emacs on Windows unfortunately [[https://github.com/microsoft/winget-pkgs/issues/88443#issuecomment-1688257680|does not work yet (August 2024)]]. The easiest way to update Emacs is: | Using ''winget upgrade'' for updating emacs on Windows unfortunately [[https://github.com/microsoft/winget-pkgs/issues/88443#issuecomment-1688257680|does not work yet (August 2024)]]. The easiest way to update Emacs is: |