summaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2007-09-30 18:58:28 +0000
committeralepulver <alepulver@FreeBSD.org>2007-09-30 18:58:28 +0000
commit9cb653faf1af92a028c2e5d9d98d06856ce68bce (patch)
treec157fbe296e04e94ba55112ed9c7f0581ffd18ca /editors
parenta06b9c7d8d353011e49bafe3ff544b7856f08dbe (diff)
downloadFreeBSD-ports-9cb653faf1af92a028c2e5d9d98d06856ce68bce.zip
FreeBSD-ports-9cb653faf1af92a028c2e5d9d98d06856ce68bce.tar.gz
- Avoid corrupting the ~/.emacs file when migrating if it couldn't be fully
loaded. See: https://stat.ethz.ch/pipermail/ess-help/2005-September/002851.html. PR: ports/114031 Submitted by: Jason Spiro <jasonspiro4@gmail.com> Obtained from: http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/cus-edit.el?revision=1.321&view=markup
Diffstat (limited to 'editors')
-rw-r--r--editors/xemacs-devel/files/patch-lisp__cus-edit.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/editors/xemacs-devel/files/patch-lisp__cus-edit.el b/editors/xemacs-devel/files/patch-lisp__cus-edit.el
new file mode 100644
index 0000000..fe19965
--- /dev/null
+++ b/editors/xemacs-devel/files/patch-lisp__cus-edit.el
@@ -0,0 +1,11 @@
+--- lisp/cus-edit.el.orig Tue Jun 26 04:10:18 2007
++++ lisp/cus-edit.el Tue Jun 26 04:14:52 2007
+@@ -3756,6 +3756,8 @@
+ ;;;###autoload
+ (defun custom-save-all ()
+ "Save all customizations in `custom-file'."
++ (when init-file-had-error
++ (error "Cannot save customizations; init file was not fully loaded"))
+ (let ((inhibit-read-only t))
+ (custom-save-variables)
+ (custom-save-faces)
OpenPOWER on IntegriCloud