GNU bug report logs - #12769
24.2; Files won't save on Macintosh/Mountain Lion

Previous Next

Package: emacs;

Reported by: John Croix <jcroix <at> mac.com>

Date: Tue, 30 Oct 2012 19:32:01 UTC

Severity: normal

Tags: notabug

Found in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12769 in the body.
You can then email your comments to 12769 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Tue, 30 Oct 2012 19:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Croix <jcroix <at> mac.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 30 Oct 2012 19:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: John Croix <jcroix <at> mac.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Tue, 30 Oct 2012 14:25:14 -0500
[Message part 1 (text/plain, inline)]
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 <at> mac-jcroix.cadence.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=/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=lucid'
 '--without-xaw3d' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif'
 '--with-png' '--without-rsvg' '--with-xft' 'CC=/usr/bin/clang'
 'CFLAGS=-pipe -O2 -arch x86_64' 'LDFLAGS=-L/opt/local/lib -lfreetype
 -lfontconfig -Wl,-no_pie -arch x86_64' 'CPPFLAGS=-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)




[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Tue, 30 Oct 2012 20:36:01 GMT) Full text and rfc822 format available.

Message #8 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: John Croix <jcroix <at> mac.com>
Cc: 12769 <at> debbugs.gnu.org
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Tue, 30 Oct 2012 21:33:05 +0100
[Message part 1 (text/plain, inline)]
Hello.

I can't reproduce this.  Are you sure you started with -Q?

	Jan D.

30 okt 2012 kl. 20:25 skrev John Croix <jcroix <at> 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 <at> mac-jcroix.cadence.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=/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=lucid'
>  '--without-xaw3d' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif'
>  '--with-png' '--without-rsvg' '--with-xft' 'CC=/usr/bin/clang'
>  'CFLAGS=-pipe -O2 -arch x86_64' 'LDFLAGS=-L/opt/local/lib -lfreetype
>  -lfontconfig -Wl,-no_pie -arch x86_64' 'CPPFLAGS=-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)
> 
> 
> 
> 

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Tue, 30 Oct 2012 20:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: John Croix <jcroix <at> mac.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 12769 <at> debbugs.gnu.org, John Croix <jcroix <at> mac.com>
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Tue, 30 Oct 2012 15:37:20 -0500
[Message part 1 (text/plain, inline)]
Oops.  I missed that part of the bug report instruction set.  Running with "-Q" works.  Running without "-Q" doesn't.

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

Regards,
John

On Oct 30, 2012, at 3:33 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:

> Hello.
> 
> I can't reproduce this.  Are you sure you started with -Q?
> 
> 	Jan D.
> 
> 30 okt 2012 kl. 20:25 skrev John Croix <jcroix <at> 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 <at> mac-jcroix.cadence.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=/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=lucid'
>>  '--without-xaw3d' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif'
>>  '--with-png' '--without-rsvg' '--with-xft' 'CC=/usr/bin/clang'
>>  'CFLAGS=-pipe -O2 -arch x86_64' 'LDFLAGS=-L/opt/local/lib -lfreetype
>>  -lfontconfig -Wl,-no_pie -arch x86_64' 'CPPFLAGS=-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)
>> 
>> 
>> 
>> 
> 

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Tue, 30 Oct 2012 21:10:02 GMT) Full text and rfc822 format available.

Message #14 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: John Croix <jcroix <at> mac.com>
Cc: 12769 <at> debbugs.gnu.org
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Tue, 30 Oct 2012 22:07:18 +0100
[Message part 1 (text/plain, inline)]
Hello.

30 okt 2012 kl. 21:37 skrev John Croix <jcroix <at> 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.

> 
> Regards,
> John
> 
> On Oct 30, 2012, at 3:33 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
> 
>> Hello.
>> 
>> I can't reproduce this.  Are you sure you started with -Q?
>> 
>> 	Jan D.
>> 
>> 30 okt 2012 kl. 20:25 skrev John Croix <jcroix <at> 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 <at> mac-jcroix.cadence.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=/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=lucid'
>>>  '--without-xaw3d' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif'
>>>  '--with-png' '--without-rsvg' '--with-xft' 'CC=/usr/bin/clang'
>>>  'CFLAGS=-pipe -O2 -arch x86_64' 'LDFLAGS=-L/opt/local/lib -lfreetype
>>>  -lfontconfig -Wl,-no_pie -arch x86_64' 'CPPFLAGS=-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)
>>> 
>>> 
>>> 
>>> 
>> 
> 

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Wed, 31 Oct 2012 03:08:01 GMT) Full text and rfc822 format available.

Message #17 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: John Croix <jcroix <at> mac.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 12769 <at> debbugs.gnu.org
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Tue, 30 Oct 2012 22:04:31 -0500
[Message part 1 (text/plain, inline)]
Well, now I feel like a complete fool.  I never even thought of the .emacs file.  I've been using the same one for so long that I don't even think about it anymore.  It probably would have helped had I read the bit about starting emacs with the "-Q" flag.

I tracked the problem down to the following (in red):
(setq-default indent-tabs-mode nil)
(add-hook 'write-file-hooks
  (lambda ()
    (if (not indent-tabs-mode)
      (untabify (point-min) (point-max))
      (delete-trailing-whitespace))))
When I comment out that line, everything works.  When the line is present, it doesn't work.

Since most of the files that I work on are C++ source files, I want to untabify the buffer and delete any trailing white space.  Obviously, though, this doesn't work on make files.  I picked up this little piece of code from an emacs wizard friend and have never revisited it.

So, is this a bug or is the untabify command no longer supported?  If it's now a bug, this should now be reproducible.  If it's an obsolete package, do you have any suggestions for a replacement?

Thanks for walking me through this.

Regards,
John

On Oct 30, 2012, at 4:07 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:

> Hello.
> 
> 30 okt 2012 kl. 21:37 skrev John Croix <jcroix <at> 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.
> 
>> 
>> Regards,
>> John
>> 
>> On Oct 30, 2012, at 3:33 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
>> 
>>> Hello.
>>> 
>>> I can't reproduce this.  Are you sure you started with -Q?
>>> 
>>> 	Jan D.
>>> 
>>> 30 okt 2012 kl. 20:25 skrev John Croix <jcroix <at> 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 <at> mac-jcroix.cadence.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=/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=lucid'
>>>>  '--without-xaw3d' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif'
>>>>  '--with-png' '--without-rsvg' '--with-xft' 'CC=/usr/bin/clang'
>>>>  'CFLAGS=-pipe -O2 -arch x86_64' 'LDFLAGS=-L/opt/local/lib -lfreetype
>>>>  -lfontconfig -Wl,-no_pie -arch x86_64' 'CPPFLAGS=-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)
>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>> 
> 

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Wed, 31 Oct 2012 07:37:02 GMT) Full text and rfc822 format available.

Message #20 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: John Croix <jcroix <at> mac.com>
Cc: 12769 <at> debbugs.gnu.org, Jan Djärv <jan.h.d <at> swipnet.se>
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Wed, 31 Oct 2012 08:33:46 +0100
John Croix <jcroix <at> mac.com> writes:

> I tracked the problem down to the following (in red):
> (setq-default indent-tabs-mode nil)
> (add-hook 'write-file-hooks
>   (lambda ()
>     (if (not indent-tabs-mode)
>       (untabify (point-min) (point-max))
>       (delete-trailing-whitespace))))
> When I comment out that line, everything works.  When the line is present,
> it doesn't work.

Which line?

Have you tried reading the documentation of write-file-hooks?

    List of functions to be called before writing out a buffer to a file.
    If one of them returns non-nil, the file is considered already written
    and the rest are not called.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Wed, 31 Oct 2012 07:45:01 GMT) Full text and rfc822 format available.

Message #23 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: John Croix <jcroix <at> mac.com>
Cc: 12769 <at> debbugs.gnu.org, Jan Djärv <jan.h.d <at> swipnet.se>
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Wed, 31 Oct 2012 08:41:32 +0100
> I tracked the problem down to the following (in red):
> (setq-default indent-tabs-mode nil)
> (add-hook 'write-file-hooks
>   (lambda ()
>     (if (not indent-tabs-mode)
>       (untabify (point-min) (point-max))
>       (delete-trailing-whitespace))))

> So, is this a bug or is the untabify command no longer supported?  If
> it's now a bug, this should now be reproducible.  If it's an obsolete
> package, do you have any suggestions for a replacement?

Properly indented, the `add-hook' form above here appears as

(add-hook 'write-file-hooks
          (lambda ()
            (if (not indent-tabs-mode)
                (untabify (point-min) (point-max))
              (delete-trailing-whitespace))))

so if `indent-tabs-mode' is on, you delete trailing whitespace and if
it's off, you untabify.  Is this what you really want?

Anyway, the problem seems that `untabify' returns non-nil and according
to the doc-string of `write-file-hooks' we know that this is a

  List of functions to be called before writing out a buffer to a file.
  If one of them returns non-nil, the file is considered already written
  and the rest are not called.

which is slightly ambiguous: One might think that if one of them returns
non-nil Emacs will "not call the rest" but nevertheless save the buffer
to its file.

In your case writing the file is aborted because `untabify' returns the
"current column `move-to-column' moved to" (whatever that is it seems to
be non-nil).  So maybe we should modify the return value of `untabify'
(like in `delete-trailing-whitespace') or you should use

(add-hook 'write-file-hooks
          (lambda ()
            (if (not indent-tabs-mode)
                (progn
                  (untabify (point-min) (point-max))
                  nil)
              (delete-trailing-whitespace))))

still modulo your real intentions of what that lambda is supposed to do.

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Wed, 31 Oct 2012 08:12:02 GMT) Full text and rfc822 format available.

Message #26 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 12769 <at> debbugs.gnu.org, John Croix <jcroix <at> mac.com>
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Wed, 31 Oct 2012 09:09:00 +0100
Or just use whitespace-mode.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Wed, 31 Oct 2012 10:31:02 GMT) Full text and rfc822 format available.

Message #29 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 12769 <at> debbugs.gnu.org, John Croix <jcroix <at> mac.com>
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Wed, 31 Oct 2012 11:27:28 +0100
> Or just use whitespace-mode.

Indeed.  Maybe we should improve the Emacs manual to tell more
about its capabilities.

martin





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Wed, 31 Oct 2012 14:54:02 GMT) Full text and rfc822 format available.

Message #32 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: John Croix <jcroix <at> mac.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 12769 <at> debbugs.gnu.org, Andreas Schwab <schwab <at> linux-m68k.org>
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Wed, 31 Oct 2012 09:50:31 -0500
[Message part 1 (text/plain, inline)]
Thanks for all the help and suggestions.  Here's what I can tell you:
I've never programmed in LISP, so I picked this piece of code up from a friend who is.  That's not an excuse for not trying to figure it out on my own.  However, I hope that explains why I'll say that I have no idea what the lambda function does in LISP.  I'm familiar with C++11's new lambda features, but the semantics of LISP... no clue.  Looks like I'll need to become familiar with LISP.
The intent of the code was to do 2 things
Always delete trailing white space from any file
Untabify files for which indent-tabs-mode is nil.  From what I understand, this variable is set to a non-nil value for makefile mode but isn't necessarily set for other modes.  Thus, the prior statement sets indent-tabs-mode to nil for all modes that don't normally set it.
While it now looks like the code doesn't actually do the two things that I wanted it to do, it never stopped the process of writing files before.  I'm using the same initialization file for emacs 23.4.  It seems to me that this means that (1) untabify didn't return a result before or (2) the write operation didn't depend on a nil value return in order to write.  So is this a bug in 23.4 that's fixed in 24.x?  A feature change in 24.x for untabify or the write operation?

Again, thanks for the helpful feedback.  Sorry to submit a bug report on a user error.

Regards,
John

On Oct 31, 2012, at 5:27 AM, martin rudalics <rudalics <at> gmx.at> wrote:

>> Or just use whitespace-mode.
> 
> Indeed.  Maybe we should improve the Emacs manual to tell more
> about its capabilities.
> 
> martin
> 

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Wed, 31 Oct 2012 15:10:02 GMT) Full text and rfc822 format available.

Message #35 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: John Croix <jcroix <at> mac.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 12769 <at> debbugs.gnu.org, Andreas Schwab <schwab <at> linux-m68k.org>
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Wed, 31 Oct 2012 10:07:04 -0500
[Message part 1 (text/plain, inline)]
A quick follow up.  Thanks to your input, I've rewritten the code, and it seems to do everything that I need it to do in 24.2.
(add-hook 'write-file-hooks 
  (lambda ()
    (delete-trailing-whitespace)
    (if (not indent-tabs-mode)
      (untabify (point-min) (point-max)))
    nil))

Thanks again,
John

On Oct 31, 2012, at 9:50 AM, John Croix <jcroix <at> mac.com> wrote:

> Thanks for all the help and suggestions.  Here's what I can tell you:
> I've never programmed in LISP, so I picked this piece of code up from a friend who is.  That's not an excuse for not trying to figure it out on my own.  However, I hope that explains why I'll say that I have no idea what the lambda function does in LISP.  I'm familiar with C++11's new lambda features, but the semantics of LISP... no clue.  Looks like I'll need to become familiar with LISP.
> The intent of the code was to do 2 things
> Always delete trailing white space from any file
> Untabify files for which indent-tabs-mode is nil.  From what I understand, this variable is set to a non-nil value for makefile mode but isn't necessarily set for other modes.  Thus, the prior statement sets indent-tabs-mode to nil for all modes that don't normally set it.
> While it now looks like the code doesn't actually do the two things that I wanted it to do, it never stopped the process of writing files before.  I'm using the same initialization file for emacs 23.4.  It seems to me that this means that (1) untabify didn't return a result before or (2) the write operation didn't depend on a nil value return in order to write.  So is this a bug in 23.4 that's fixed in 24.x?  A feature change in 24.x for untabify or the write operation?
> 
> Again, thanks for the helpful feedback.  Sorry to submit a bug report on a user error.
> 
> Regards,
> John
> 
> On Oct 31, 2012, at 5:27 AM, martin rudalics <rudalics <at> gmx.at> wrote:
> 
>>> Or just use whitespace-mode.
>> 
>> Indeed.  Maybe we should improve the Emacs manual to tell more
>> about its capabilities.
>> 
>> martin
>> 
> 

[Message part 2 (text/html, inline)]

bug closed, send any further explanations to 12769 <at> debbugs.gnu.org and John Croix <jcroix <at> mac.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 31 Oct 2012 16:06:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12769; Package emacs. (Wed, 31 Oct 2012 16:13:01 GMT) Full text and rfc822 format available.

Message #40 received at 12769 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: John Croix <jcroix <at> mac.com>
Cc: 12769 <at> debbugs.gnu.org, martin rudalics <rudalics <at> gmx.at>,
	Andreas Schwab <schwab <at> linux-m68k.org>
Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Wed, 31 Oct 2012 12:09:36 -0400
> A quick follow up.  Thanks to your input, I've rewritten the code, and it seems to do everything that I need it to do in 24.2.
> (add-hook 'write-file-hooks 
>   (lambda ()
>     (delete-trailing-whitespace)
>     (if (not indent-tabs-mode)
>       (untabify (point-min) (point-max)))
>     nil))

BTW, try C-h v write-file-hooks: you'll see it's been obsolete for
a while.


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 29 Nov 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 211 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.