From: Joost Kremers <joostkremers@fastmail.fm>
To: 22791@debbugs.gnu.org
Subject: bug#22791: 25.0.91; Deleting dependency package and reinstalling overwrites custom file
Date: Wed, 24 Feb 2016 14:54:53 +0100 [thread overview]
Message-ID: <87h9gymcwi.fsf@fastmail.fm> (raw)
- Given the following init file:
```
(setq custom-file "~/.emacs.d/custom.el")
(require 'package)
;; (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(setq package-enable-at-startup nil)
(package-initialize)
(load custom-file)
```
- Customize some option (e.g., `fill-column') with `M-x
customize-option'. (This is not an essential step, it just serves to
illustrate the problem.)
- Install a package that has some dependency, e.g., ace-window, which
has avy as a dependency.
M-x package-install RET ace-window RET
- Close Emacs and do (from a shell):
$ rm -rf ~/.emacs.d/elpa/avy-*
- Restart Emacs (this will give an error about not being able to load
ace-window, because its dependency avy is not met.)
- Install avy:
M-x package-install RET avy RET
At this point, the custom file ~/.emacs.d/custom.el is overwritten: the
custom setting for `fill-column' is gone.
The bug is dependent on `package-enable-at-startup' being set to nil and
`custom-file' being set. If either of these conditions isn't met, the
bug doesn't occur.
In GNU Emacs 25.0.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23)
of 2016-02-24 built on IdeaPad
Repository revision: e01c72f8f4987f9de71130b8b6d8224999fc6c6f
Windowing system distributor 'The X.Org Foundation', version 11.0.11600000
System Description: elementary OS Freya
Configured using:
'configure --with-x-toolkit=gtk2'
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11
Important settings:
value of $LC_MONETARY: en_GB.UTF-8
value of $LC_NUMERIC: en_GB.UTF-8
value of $LC_TIME: en_GB.UTF-8
value of $LANG: en_GB.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
Loading /home/joost/.emacs.d/custom.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec epg gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns help-mode cl-loaddefs pcase cl-lib mail-prsvr
mail-utils finder-inf package easymenu epg-config time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote dbusbind inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)
Memory information:
((conses 16 95208 5746)
(symbols 48 20534 0)
(miscs 40 86 96)
(strings 32 17037 5159)
(string-bytes 1 488155)
(vectors 16 12781)
(vector-slots 8 433765 4260)
(floats 8 174 15)
(intervals 56 236 0)
(buffers 976 12)
(heap 1024 37336 913))
--
Joost Kremers
Life has its moments
next reply other threads:[~2016-02-24 13:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 13:54 Joost Kremers [this message]
2020-09-05 12:38 ` bug#22791: 25.0.91; Deleting dependency package and reinstalling overwrites custom file Mauro Aranda
2020-09-08 9:15 ` Joost Kremers
2020-09-08 10:59 ` Mauro Aranda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h9gymcwi.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=22791@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.