From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion Date: Tue, 30 Oct 2012 22:07:18 +0100 Message-ID: References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_7C361EBA-2E47-4F34-BDE7-537D1A99873A" X-Trace: ger.gmane.org 1351631265 14550 80.91.229.3 (30 Oct 2012 21:07:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2012 21:07:45 +0000 (UTC) Cc: 12769@debbugs.gnu.org To: John Croix Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 30 22:07:53 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TTJ2M-00059T-5d for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2012 22:07:50 +0100 Original-Received: from localhost ([::1]:38574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTJ2D-0000ht-PU for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2012 17:07:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTJ28-0000ha-OQ for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 17:07:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTJ21-0006nM-EQ for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 17:07:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTJ21-0006nH-AF for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 17:07:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TTJ4U-0002KD-GY for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 17:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Oct 2012 21:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12769 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12769-submit@debbugs.gnu.org id=B12769.13516313998923 (code B ref 12769); Tue, 30 Oct 2012 21:10:02 +0000 Original-Received: (at 12769) by debbugs.gnu.org; 30 Oct 2012 21:09:59 +0000 Original-Received: from localhost ([127.0.0.1]:40204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTJ4Q-0002Jr-2z for submit@debbugs.gnu.org; Tue, 30 Oct 2012 17:09:59 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:53311) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTJ4M-0002Jg-HW for 12769@debbugs.gnu.org; Tue, 30 Oct 2012 17:09:56 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 157089A04 for <12769@debbugs.gnu.org>; Tue, 30 Oct 2012 22:07:19 +0100 (CET) Original-Received: (qmail 6877 invoked by uid 89); 30 Oct 2012 21:07:18 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 30 Oct 2012 21:07:18 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 9CC207FA05E; Tue, 30 Oct 2012 22:07:18 +0100 (CET) In-Reply-To: <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> X-Mailer: Apple Mail (2.1499) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66253 Archived-At: --Apple-Mail=_7C361EBA-2E47-4F34-BDE7-537D1A99873A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hello. 30 okt 2012 kl. 21:37 skrev John Croix : > Oops. I missed that part of the bug report instruction set. Running = with "-Q" works. Running without "-Q" doesn't. Ok, so something in your .emacs is causing this. Try bisecting it. Remove half of your .emacs and try again. If it = works, put back the other half, and remove half of that. If it doesn't = work, remove half again, and so on. Hopefully you can pinpoint what package or lisp statement that causes = this. You can also start Emacs normally and see what the value for = before-save-hook is (C-h v before-save-hook). If it is non-nil, that is = a prime suspect. Try setting it to nil and see if it works. >=20 > I can generate a QuickTime video to show the problem if you like. No need, but thanks. Jan D. >=20 > Regards, > John >=20 > On Oct 30, 2012, at 3:33 PM, Jan Dj=E4rv wrote: >=20 >> Hello. >>=20 >> I can't reproduce this. Are you sure you started with -Q? >>=20 >> Jan D. >>=20 >> 30 okt 2012 kl. 20:25 skrev John Croix : >>=20 >>> This bug report will be sent to the Bug-GNU-Emacs mailing list >>> and the GNU bug tracker at debbugs.gnu.org. Please check that >>> the From: line contains a valid email address. After a delay of up >>> to one day, you should receive an acknowledgement at that address. >>>=20 >>> Please write in English if possible, as the Emacs maintainers >>> usually do not have translators for other languages. >>>=20 >>> Please describe exactly what actions triggered the bug, and >>> the precise symptoms of the bug. If you can, give a recipe >>> starting from `emacs -Q': >>>=20 >>>=20 >>> I've tried to install Emacs 24.2 from multiple sources: >>> http://emacsformacosx, the GNU sources (configure --with-ns), and >>> MacPorts. All of them have the same problem on *two* different = Macintosh >>> computers running Mountain Lion. Emacs 23.4 works just fine. BTW, = I've >>> been using emacs for about 20 years, so the bug (saving a file to = disk) >>> isn't pilot error. >>>=20 >>> When I start emacs and create a new file (~/abc) and type >>> something into it, the two asterisks appear to show that the buffer = is >>> modified. When I attempt to save it, I get the message "Saving file >>> /Users/jcroix/abc...". However, the message never goes away, the = two >>> asterisks never disappear, and the file is never written. >>>=20 >>> If I look at my directory, I can see the restore file ".#abc -> >>> jcroix@mac-jcroix.cadence.com.24380" with a size of 35, but the file >>> "abc" is not present. >>>=20 >>> When I attempt to quit emacs (^x ^c), I get the message "Save file >>> /Users/jcroix/abc? (y, n, !, ., q, C-r, d or C-h)" at which point I = hit >>> "y". Up pops a message "Modified buffers exist; exit anyway? (yes = or >>> no)". If I type "no", I remain in edit mode, and the two asterisks = are >>> still present. If I type "yes", the save file is deleted but the = file >>> "abc" is absent. >>>=20 >>> There are no errors in the "*Messages*" buffer. Here are the = contents >>> of that buffer: >>> Loading delsel...done >>> Loading paren...done >>> For information about GNU Emacs and the GNU system, type C-h C-a. >>> (New file) >>> Saving file /Users/jcroix/abc... >>> So it's trying to save it -- it just doesn't manage to do so. >>>=20 >>>=20 >>> If Emacs crashed, and you have the Emacs process in the gdb = debugger, >>> please include the output from the following gdb commands: >>> `bt full' and `xbacktrace'. >>> For information about debugging Emacs, please read the file >>> /opt/local/share/emacs/24.2/etc/DEBUG. >>>=20 >>>=20 >>> In GNU Emacs 24.2.1 (x86_64-apple-darwin12.2.0, X toolkit, Xaw = scroll bars) >>> of 2012-10-30 on mac-jcroix.cadence.com >>> Windowing system distributor `The X.Org Foundation', version = 11.0.11300000 >>> Configured using: >>> `configure '--prefix=3D/opt/local' '--without-dbus' = '--without-gconf' >>> '--without-libotf' '--without-m17n-flt' '--without-gpm' >>> '--without-gnutls' '--without-xml2' '--infodir' >>> '/opt/local/share/info/emacs' '--with-x-toolkit=3Dlucid' >>> '--without-xaw3d' '--with-xpm' '--with-jpeg' '--with-tiff' = '--with-gif' >>> '--with-png' '--without-rsvg' '--with-xft' 'CC=3D/usr/bin/clang' >>> 'CFLAGS=3D-pipe -O2 -arch x86_64' 'LDFLAGS=3D-L/opt/local/lib = -lfreetype >>> -lfontconfig -Wl,-no_pie -arch x86_64' = 'CPPFLAGS=3D-I/opt/local/include'' >>>=20 >>> Important settings: >>> value of $LC_ALL: nil >>> value of $LC_COLLATE: nil >>> value of $LC_CTYPE: nil >>> value of $LC_MESSAGES: nil >>> value of $LC_MONETARY: nil >>> value of $LC_NUMERIC: nil >>> value of $LC_TIME: nil >>> value of $LANG: en_US.UTF-8 >>> value of $XMODIFIERS: nil >>> locale-coding-system: utf-8-unix >>> default enable-multibyte-characters: t >>>=20 >>> Major mode: Lisp Interaction >>>=20 >>> Minor modes in effect: >>> show-paren-mode: t >>> tooltip-mode: t >>> mouse-wheel-mode: t >>> tool-bar-mode: t >>> menu-bar-mode: t >>> file-name-shadow-mode: t >>> global-font-lock-mode: t >>> font-lock-mode: t >>> blink-cursor-mode: t >>> auto-composition-mode: t >>> auto-encryption-mode: t >>> auto-compression-mode: t >>> column-number-mode: t >>> line-number-mode: t >>> transient-mark-mode: t >>>=20 >>> Recent input: >>> x r e=20 >>> p o r t - e m a c s - b u g >>>=20 >>> Recent messages: >>> Loading delsel...done >>> Loading paren...done >>> For information about GNU Emacs and the GNU system, type C-h C-a. >>>=20 >>> Load-path shadows: >>> None found. >>>=20 >>> Features: >>> (shadow sort gnus-util mail-extr emacsbug message idna format-spec >>> rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse >>> rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 >>> rfc2045 ietf-drums mm-util mail-prsvr mail-utils paren delsel = cus-start >>> cus-load time-date tooltip ediff-hook vc-hooks lisp-float-type = mwheel >>> x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register = page >>> menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock = font-lock >>> syntax facemenu font-core frame cham georgian utf-8-lang misc-lang >>> vietnamese tibetan thai tai-viet lao korean japanese hebrew greek >>> romanian slovak czech european ethiopic indian cyrillic chinese >>> case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer = loaddefs >>> button faces cus-face files text-properties overlay sha1 md5 base64 >>> format env code-pages mule custom widget hashtable-print-readable >>> backquote make-network-process dynamic-setting system-font-setting >>> font-render-setting x-toolkit x multi-tty emacs) >>>=20 >>>=20 >>>=20 >>>=20 >>=20 >=20 --Apple-Mail=_7C361EBA-2E47-4F34-BDE7-537D1A99873A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 jcroix@mac.com>:
Oops. =  I missed that part of the bug report instruction set. =  Running with "-Q" works.  Running without "-Q" = doesn't.

Ok, so something in your = .emacs is causing this.
Try bisecting it.  Remove half of = your .emacs and try again.  If it works, put back the other half, = and remove half of that.  If it doesn't work, remove half again, = and so on.
Hopefully you can pinpoint what package or lisp = statement that causes this.

You can also start = Emacs normally and see what the value for before-save-hook is (C-h v = before-save-hook).  If it is non-nil, that is a prime suspect. =  Try setting it to nil and see if it = works.



I can = generate a QuickTime video to show the problem if you = like.

No need, but = thanks.

Jan D.

jan.h.d@swipnet.se> = wrote:

Jan = D.

30 okt 2012 kl. 20:25 skrev John Croix <jcroix@mac.com>:

This bug report will be = sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker = at debbugs.gnu.org.  Please = check that
the From: line contains a valid email address. =  After a delay of up
to one day, you should receive an = acknowledgement at that address.

Please write = in English if possible, as the Emacs maintainers
usually do = not have translators for other = languages.

Please describe exactly what actions = triggered the bug, and
the precise symptoms of the bug. =  If you can, give a recipe
starting from `emacs = -Q':


I've tried to install Emacs = 24.2 from multiple sources:
http://emacsformacosx, the GNU = sources (configure --with-ns), and
MacPorts.  All of them = have the same problem on *two* different Macintosh
computers = running Mountain Lion.  Emacs 23.4 works just fine.  BTW, = I've
been using emacs for about 20 years, so the bug (saving a = file to disk)
isn't pilot error.

When = I start emacs and create a new file (~/abc) and type
something = into it, the two asterisks appear to show that the buffer = is
modified.  When I attempt to save it, I get the = message "Saving file
/Users/jcroix/abc...".  However, the = message never goes away, the two
asterisks never disappear, = and the file is never written.

If I look at my = directory, I can see the restore file ".#abc ->
jcroix@mac-jcroix.cade= nce.com.24380" with a size of 35, but the file
"abc" is = not present.

When I attempt to quit emacs (^x = ^c), I get the message "Save file
/Users/jcroix/abc? (y, n, !, = ., q, C-r, d or C-h)" at which point I hit
"y".  Up pops = a message "Modified buffers exist; exit anyway? (yes or
no)". =  If I type "no", I remain in edit mode, and the two asterisks = are
still present.  If I type "yes", the save file is = deleted but the file
"abc" is = absent.

There are no errors in the "*Messages*" = buffer.  Here are the contents
of that = buffer:
  Loading delsel...done
  Loading = paren...done
  For information about GNU Emacs and the = GNU system, type C-h C-a.
  (New file)
  = Saving file /Users/jcroix/abc...
So it's trying to save it -- = it just doesn't manage to do = so.


If Emacs crashed, and you = have the Emacs process in the gdb debugger,
please include the = output from the following gdb commands:
    `bt = full' and `xbacktrace'.
For information about debugging Emacs, = please read the = file
/opt/local/share/emacs/24.2/etc/DEBUG.

=

In GNU Emacs 24.2.1 (x86_64-apple-darwin12.2.0, X = toolkit, Xaw scroll bars)
 of 2012-10-30 on mac-jcroix.cadence.com
Windowing system distributor `The X.Org = Foundation', version 11.0.11300000
Configured = using:
 `configure '--prefix=3D/opt/local' = '--without-dbus' '--without-gconf'
 '--without-libotf' = '--without-m17n-flt' '--without-gpm'
 '--without-gnutls' = '--without-xml2' = '--infodir'
 '/opt/local/share/info/emacs' = '--with-x-toolkit=3Dlucid'
 '--without-xaw3d' = '--with-xpm' '--with-jpeg' '--with-tiff' = '--with-gif'
 '--with-png' '--without-rsvg' '--with-xft' = 'CC=3D/usr/bin/clang'
 'CFLAGS=3D-pipe -O2 -arch x86_64' = 'LDFLAGS=3D-L/opt/local/lib -lfreetype
 -lfontconfig = -Wl,-no_pie -arch x86_64' = 'CPPFLAGS=3D-I/opt/local/include''

Important = settings:
  value of $LC_ALL: nil
  value = of $LC_COLLATE: nil
  value of $LC_CTYPE: = nil
  value of $LC_MESSAGES: nil
  value = of $LC_MONETARY: nil
  value of $LC_NUMERIC: = nil
  value of $LC_TIME: nil
  value of = $LANG: en_US.UTF-8
  value of $XMODIFIERS: = nil
  locale-coding-system: utf-8-unix
  = default enable-multibyte-characters: t

Major = mode: Lisp Interaction

Minor modes in = effect:
  show-paren-mode: t
  = tooltip-mode: t
  mouse-wheel-mode: t
  = tool-bar-mode: t
  menu-bar-mode: t
  = file-name-shadow-mode: t
  global-font-lock-mode: = t
  font-lock-mode: t
  blink-cursor-mode: = t
  auto-composition-mode: t
  = auto-encryption-mode: t
  auto-compression-mode: = t
  column-number-mode: t
  = line-number-mode: t
  transient-mark-mode: = t

Recent input:
<help-echo> = <help-echo> <help-echo> <escape> x r = e 
p o r t - e m a c s - b u g = <return>

Recent = messages:
Loading delsel...done
Loading = paren...done
For information about GNU Emacs and the GNU = system, type C-h C-a.

Load-path = shadows:
None = found.

Features:
(shadow sort = gnus-util mail-extr emacsbug message idna format-spec
rfc822 = mml easymenu mml-sec mm-decode mm-bodies mm-encode = mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail = regexp-opt rfc2047
rfc2045 ietf-drums mm-util mail-prsvr = mail-utils paren delsel cus-start
cus-load time-date tooltip = ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd = tool-bar dnd fontset image fringe lisp-mode register = page
menu-bar rfn-eshadow timer select scroll-bar mouse = jit-lock font-lock
syntax facemenu font-core frame cham = georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet = lao korean japanese hebrew greek
romanian slovak czech = european ethiopic indian cyrillic chinese
case-table epa-hook = jka-cmpr-hook help simple abbrev minibuffer loaddefs
button = faces cus-face files text-properties overlay sha1 md5 = base64
format env code-pages mule custom widget = hashtable-print-readable
backquote make-network-process = dynamic-setting system-font-setting
font-render-setting = x-toolkit x multi-tty emacs)


=


=
= --Apple-Mail=_7C361EBA-2E47-4F34-BDE7-537D1A99873A--