From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 30 15:31:55 2012 Received: (at submit) by debbugs.gnu.org; 30 Oct 2012 19:31:55 +0000 Received: from localhost ([127.0.0.1]:40085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTHXW-0008J9-90 for submit@debbugs.gnu.org; Tue, 30 Oct 2012 15:31:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49169) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTHU1-0008DN-Uo for submit@debbugs.gnu.org; Tue, 30 Oct 2012 15:28:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTHRS-0007hg-7v for submit@debbugs.gnu.org; Tue, 30 Oct 2012 15:25:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:47616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTHRS-0007hc-4k for submit@debbugs.gnu.org; Tue, 30 Oct 2012 15:25:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTHRM-0004tE-M1 for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 15:25:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTHRH-0007eq-42 for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 15:25:32 -0400 Received: from st11p01mm-asmtp005.mac.com ([17.172.204.240]:50469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTHRG-0007eg-Um for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 15:25:27 -0400 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_rQzncs7Qo5vqJf0fKQHR9A)" Received: from [10.218.70.21] (corp.Cadence.COM [158.140.1.28]) by st11p01mm-asmtp005.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0MCQ004O90LY5570@st11p01mm-asmtp005.mac.com> for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2012 19:25:13 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.431,0.0.0000 definitions=2012-10-30_06:2012-10-30, 2012-10-30, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1210300217 From: John Croix Subject: 24.2; Files won't save on Macintosh/Mountain Lion Message-id: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> Date: Tue, 30 Oct 2012 14:25:14 -0500 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.1499) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (1203?) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 30 Oct 2012 15:31:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) --Boundary_(ID_rQzncs7Qo5vqJf0fKQHR9A) Content-type: text/plain; CHARSET=US-ASCII Content-transfer-encoding: 7BIT 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.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: x r e p o r t - e m a c s - b u g 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) --Boundary_(ID_rQzncs7Qo5vqJf0fKQHR9A) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: quoted-printable 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)



= --Boundary_(ID_rQzncs7Qo5vqJf0fKQHR9A)-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 30 16:35:45 2012 Received: (at 12769) by debbugs.gnu.org; 30 Oct 2012 20:35:45 +0000 Received: from localhost ([127.0.0.1]:40180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTIXI-0001Vj-96 for submit@debbugs.gnu.org; Tue, 30 Oct 2012 16:35:45 -0400 Received: from mailout.melmac.se ([62.20.26.67]:47865) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTIXF-0001VX-0i for 12769@debbugs.gnu.org; Tue, 30 Oct 2012 16:35:43 -0400 Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 43B72996F for <12769@debbugs.gnu.org>; Tue, 30 Oct 2012 21:33:05 +0100 (CET) Received: (qmail 19771 invoked by uid 89); 30 Oct 2012 20:33:04 -0000 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 20:33:04 -0000 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 75D537FA05E; Tue, 30 Oct 2012 21:33:04 +0100 (CET) Content-Type: multipart/alternative; boundary="Apple-Mail=_E10D1248-E107-4391-BC86-7EA2BA69E04F" Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> Date: Tue, 30 Oct 2012 21:33:05 +0100 Message-Id: <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> To: John Croix X-Mailer: Apple Mail (2.1499) X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) --Apple-Mail=_E10D1248-E107-4391-BC86-7EA2BA69E04F Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Hello. I can't reproduce this. Are you sure you started with -Q? Jan D. 30 okt 2012 kl. 20:25 skrev John Croix : > 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.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: > x r e > p o r t - e m a c s - b u g > > 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=_E10D1248-E107-4391-BC86-7EA2BA69E04F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii 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=_E10D1248-E107-4391-BC86-7EA2BA69E04F-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 30 16:40:06 2012 Received: (at 12769) by debbugs.gnu.org; 30 Oct 2012 20:40:06 +0000 Received: from localhost ([127.0.0.1]:40189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTIbU-0001eX-Bn for submit@debbugs.gnu.org; Tue, 30 Oct 2012 16:40:05 -0400 Received: from st11p01mm-asmtpout003.mac.com ([17.172.204.238]:45691 helo=st11p01mm-asmtp003.mac.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTIbO-0001e1-Er for 12769@debbugs.gnu.org; Tue, 30 Oct 2012 16:40:00 -0400 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_TsQz1iTlRVfh4DweMPPCBA)" Received: from [10.218.70.21] (corp.Cadence.COM [158.140.1.28]) by st11p01mm-asmtp003.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0MCQ00MJP3Y4IT90@st11p01mm-asmtp003.mac.com> for 12769@debbugs.gnu.org; Tue, 30 Oct 2012 20:37:21 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.431,0.0.0000 definitions=2012-10-30_06:2012-10-30, 2012-10-30, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1210300241 Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion From: John Croix In-reply-to: <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> Date: Tue, 30 Oct 2012 15:37:20 -0500 Message-id: <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> To: =?iso-8859-1?Q?Jan_Dj=E4rv?= X-Mailer: Apple Mail (2.1499) X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org, John Croix X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) --Boundary_(ID_TsQz1iTlRVfh4DweMPPCBA) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable 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=E4rv wrote: > 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 --Boundary_(ID_TsQz1iTlRVfh4DweMPPCBA) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: quoted-printable 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=E4rv <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)


=


= = --Boundary_(ID_TsQz1iTlRVfh4DweMPPCBA)-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 30 17:09:59 2012 Received: (at 12769) by debbugs.gnu.org; 30 Oct 2012 21:09:59 +0000 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 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 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) Received: (qmail 6877 invoked by uid 89); 30 Oct 2012 21:07:18 -0000 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 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) Content-Type: multipart/alternative; boundary="Apple-Mail=_7C361EBA-2E47-4F34-BDE7-537D1A99873A" Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> 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> To: John Croix X-Mailer: Apple Mail (2.1499) X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) --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-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 30 23:07:30 2012 Received: (at 12769) by debbugs.gnu.org; 31 Oct 2012 03:07:30 +0000 Received: from localhost ([127.0.0.1]:40398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTOeO-0002kt-Su for submit@debbugs.gnu.org; Tue, 30 Oct 2012 23:07:30 -0400 Received: from st11p01mm-asmtpout004.mac.com ([17.172.204.239]:55659 helo=st11p01mm-asmtp004.mac.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTOeL-0002kk-4t for 12769@debbugs.gnu.org; Tue, 30 Oct 2012 23:07:27 -0400 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_cZWLC8LsBIfJ9tkhkqQ2Tw)" Received: from [192.168.1.53] (cpe-70-116-7-36.austin.res.rr.com [70.116.7.36]) by st11p01mm-asmtp004.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0MCQ00JJZLVKER30@st11p01mm-asmtp004.mac.com> for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 03:04:33 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.431,0.0.0000 definitions=2012-10-31_01:2012-10-31, 2012-10-31, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1210300359 Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion From: John Croix In-reply-to: Date: Tue, 30 Oct 2012 22:04:31 -0500 Message-id: <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> To: =?iso-8859-1?Q?Jan_Dj=E4rv?= X-Mailer: Apple Mail (2.1499) X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) --Boundary_(ID_cZWLC8LsBIfJ9tkhkqQ2Tw) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable 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=E4rv wrote: > Hello. >=20 > 30 okt 2012 kl. 21:37 skrev John Croix : >=20 >> Oops. I missed that part of the bug report instruction set. Running = with "-Q" works. Running without "-Q" doesn't. >=20 > 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. >=20 > 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 >=20 >>=20 >> I can generate a QuickTime video to show the problem if you like. >=20 > No need, but thanks. >=20 > Jan D. >=20 >>=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 >=20 --Boundary_(ID_cZWLC8LsBIfJ9tkhkqQ2Tw) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: quoted-printable 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=E4rv <jan.h.d@swipnet.se> = wrote:

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)


=


=

= --Boundary_(ID_cZWLC8LsBIfJ9tkhkqQ2Tw)-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 03:36:30 2012 Received: (at 12769) by debbugs.gnu.org; 31 Oct 2012 07:36:30 +0000 Received: from localhost ([127.0.0.1]:40726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTSqi-0001KT-J1 for submit@debbugs.gnu.org; Wed, 31 Oct 2012 03:36:29 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:38330) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTSqg-0001KK-6W for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 03:36:27 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Xs1WJ6wtrz4KK6g; Wed, 31 Oct 2012 08:33:48 +0100 (CET) X-Auth-Info: qNfYX34+7Kawxunc106ymFyH1ddTKwq3ueYgDZpfZmw= Received: from igel.home (ppp-88-217-106-11.dynamic.mnet-online.de [88.217.106.11]) by mail.mnet-online.de (Postfix) with ESMTPA id 3Xs1WJ0x8tzbbjf; Wed, 31 Oct 2012 08:33:48 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 94D25CA2A2; Wed, 31 Oct 2012 08:33:47 +0100 (CET) From: Andreas Schwab To: John Croix Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> X-Yow: What GOOD is a CARDBOARD suitcase ANYWAY? Date: Wed, 31 Oct 2012 08:33:46 +0100 In-Reply-To: <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> (John Croix's message of "Tue, 30 Oct 2012 22:04:31 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org, Jan =?utf-8?Q?Dj=C3=A4rv?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.5 (/) John Croix 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@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 03:44:19 2012 Received: (at 12769) by debbugs.gnu.org; 31 Oct 2012 07:44:19 +0000 Received: from localhost ([127.0.0.1]:40735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTSyI-0001VE-UN for submit@debbugs.gnu.org; Wed, 31 Oct 2012 03:44:19 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:55370) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TTSyF-0001V4-Rh for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 03:44:17 -0400 Received: (qmail invoked by alias); 31 Oct 2012 07:41:37 -0000 Received: from 62-47-46-176.adsl.highway.telekom.at (EHLO [62.47.46.176]) [62.47.46.176] by mail.gmx.net (mp031) with SMTP; 31 Oct 2012 08:41:37 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+kfEQdhJSkEAlGQ3WxTSlPCM8bCzi4N8PygcX89m BwYS24KIao8vJ8 Message-ID: <5090D62C.8010207@gmx.at> Date: Wed, 31 Oct 2012 08:41:32 +0100 From: martin rudalics MIME-Version: 1.0 To: John Croix Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> In-Reply-To: <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org, =?ISO-8859-1?Q?Jan_Dj=E4rv?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) > 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 04:11:42 2012 Received: (at 12769) by debbugs.gnu.org; 31 Oct 2012 08:11:42 +0000 Received: from localhost ([127.0.0.1]:40750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTTOm-000269-LR for submit@debbugs.gnu.org; Wed, 31 Oct 2012 04:11:41 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:43398) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTTOj-000260-Mw for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 04:11:39 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Xs2Hw73r8z4KK6L; Wed, 31 Oct 2012 09:09:00 +0100 (CET) X-Auth-Info: zQrAGH68Sctz4l/BAS5CQyrqy2rdptL96DnaKz4/2Uk= Received: from igel.home (ppp-88-217-106-11.dynamic.mnet-online.de [88.217.106.11]) by mail.mnet-online.de (Postfix) with ESMTPA id 3Xs2Hw6N0Wzbbkv; Wed, 31 Oct 2012 09:09:00 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 8811ACA2A2; Wed, 31 Oct 2012 09:09:00 +0100 (CET) From: Andreas Schwab To: martin rudalics Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> <5090D62C.8010207@gmx.at> X-Yow: Where do your SOCKS go when you lose them in th' WASHER? Date: Wed, 31 Oct 2012 09:09:00 +0100 In-Reply-To: <5090D62C.8010207@gmx.at> (martin rudalics's message of "Wed, 31 Oct 2012 08:41:32 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org, John Croix X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Or just use whitespace-mode. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 06:30:11 2012 Received: (at 12769) by debbugs.gnu.org; 31 Oct 2012 10:30:11 +0000 Received: from localhost ([127.0.0.1]:40849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTVYp-0005Dc-1H for submit@debbugs.gnu.org; Wed, 31 Oct 2012 06:30:11 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:45530) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TTVYm-0005DU-ND for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 06:30:09 -0400 Received: (qmail invoked by alias); 31 Oct 2012 10:27:31 -0000 Received: from 62-47-46-176.adsl.highway.telekom.at (EHLO [62.47.46.176]) [62.47.46.176] by mail.gmx.net (mp024) with SMTP; 31 Oct 2012 11:27:31 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+oXZ4oTgqoKX7VZUG0kOc33jjYNsbqf35Bq71IS3 2ppKrBDIwo6RiS Message-ID: <5090FD10.3070100@gmx.at> Date: Wed, 31 Oct 2012 11:27:28 +0100 From: martin rudalics MIME-Version: 1.0 To: Andreas Schwab Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> <5090D62C.8010207@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org, John Croix X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) > Or just use whitespace-mode. Indeed. Maybe we should improve the Emacs manual to tell more about its capabilities. martin From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 10:53:19 2012 Received: (at 12769) by debbugs.gnu.org; 31 Oct 2012 14:53:19 +0000 Received: from localhost ([127.0.0.1]:41599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTZfT-0003nS-33 for submit@debbugs.gnu.org; Wed, 31 Oct 2012 10:53:19 -0400 Received: from st11p01mm-asmtp005.mac.com ([17.172.204.240]:54809) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTZfQ-0003nK-Fi for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 10:53:17 -0400 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_1mOtrvRe4WfYVuRPII+9cg)" Received: from [10.218.70.21] (corp.Cadence.COM [158.140.1.28]) by st11p01mm-asmtp005.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0MCR00542IK3Y450@st11p01mm-asmtp005.mac.com> for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 14:50:30 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.431,0.0.0000 definitions=2012-10-31_03:2012-10-31, 2012-10-31, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1210310134 Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion From: John Croix In-reply-to: <5090FD10.3070100@gmx.at> Date: Wed, 31 Oct 2012 09:50:31 -0500 Message-id: <09A63027-5F49-4F8D-AFD8-D2904FFCC341@mac.com> References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> <5090D62C.8010207@gmx.at> <5090FD10.3070100@gmx.at> To: martin rudalics X-Mailer: Apple Mail (2.1499) X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org, Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) --Boundary_(ID_1mOtrvRe4WfYVuRPII+9cg) Content-type: text/plain; CHARSET=US-ASCII Content-transfer-encoding: 7BIT 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 wrote: >> Or just use whitespace-mode. > > Indeed. Maybe we should improve the Emacs manual to tell more > about its capabilities. > > martin > --Boundary_(ID_1mOtrvRe4WfYVuRPII+9cg) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: quoted-printable
  • 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. =  =46rom 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@gmx.at> wrote:

    Or just use whitespace-mode.

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

    martin


    = --Boundary_(ID_1mOtrvRe4WfYVuRPII+9cg)-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 11:09:48 2012 Received: (at 12769) by debbugs.gnu.org; 31 Oct 2012 15:09:48 +0000 Received: from localhost ([127.0.0.1]:41623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTZvP-0004Aw-SN for submit@debbugs.gnu.org; Wed, 31 Oct 2012 11:09:48 -0400 Received: from st11p01mm-asmtpout002.mac.com ([17.172.204.237]:65420 helo=st11p01mm-asmtp002.mac.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTZvL-0004Am-Of for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 11:09:45 -0400 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_MjpKf8drUCi6tia2b6tvwA)" Received: from [10.218.70.21] (corp.Cadence.COM [158.140.1.28]) by st11p01mm-asmtp002.mac.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Jan 3 2012)) with ESMTPSA id <0MCR003HEJBOBJ10@st11p01mm-asmtp002.mac.com> for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 15:07:04 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.431,0.0.0000 definitions=2012-10-31_03:2012-10-31, 2012-10-31, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1210310139 Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion From: John Croix In-reply-to: <09A63027-5F49-4F8D-AFD8-D2904FFCC341@mac.com> Date: Wed, 31 Oct 2012 10:07:04 -0500 Message-id: References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> <5090D62C.8010207@gmx.at> <5090FD10.3070100@gmx.at> <09A63027-5F49-4F8D-AFD8-D2904FFCC341@mac.com> To: martin rudalics X-Mailer: Apple Mail (2.1499) X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org, Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) --Boundary_(ID_MjpKf8drUCi6tia2b6tvwA) Content-type: text/plain; CHARSET=US-ASCII Content-transfer-encoding: 7BIT 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 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 wrote: > >>> Or just use whitespace-mode. >> >> Indeed. Maybe we should improve the Emacs manual to tell more >> about its capabilities. >> >> martin >> > --Boundary_(ID_MjpKf8drUCi6tia2b6tvwA) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: quoted-printable 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@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. =  =46rom 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@gmx.at> wrote:

    Or just use whitespace-mode.

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

    martin



    = --Boundary_(ID_MjpKf8drUCi6tia2b6tvwA)-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 12:05:47 2012 Received: (at control) by debbugs.gnu.org; 31 Oct 2012 16:05:47 +0000 Received: from localhost ([127.0.0.1]:41681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTanZ-0005Rf-9L for submit@debbugs.gnu.org; Wed, 31 Oct 2012 12:05:46 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:38937) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTanV-0005RX-OY for control@debbugs.gnu.org; Wed, 31 Oct 2012 12:05:42 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TTakx-0007OH-NR for control@debbugs.gnu.org; Wed, 31 Oct 2012 12:03:03 -0400 Date: Wed, 31 Oct 2012 12:03:03 -0400 Message-Id: Subject: control message for bug 12769 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) close 12769 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 31 12:12:17 2012 Received: (at 12769) by debbugs.gnu.org; 31 Oct 2012 16:12:17 +0000 Received: from localhost ([127.0.0.1]:41694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTatt-0005bU-6X for submit@debbugs.gnu.org; Wed, 31 Oct 2012 12:12:17 -0400 Received: from relais.videotron.ca ([24.201.245.36]:57235) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTatq-0005bJ-Q5 for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 12:12:15 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ceviche.home ([24.201.208.110]) by VL-VM-MR006.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0MCR00ANTM80UH40@VL-VM-MR006.ip.videotron.ca> for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 12:09:36 -0400 (EDT) Received: by ceviche.home (Postfix, from userid 20848) id 1313C660E0; Wed, 31 Oct 2012 12:09:36 -0400 (EDT) From: Stefan Monnier To: John Croix Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion Message-id: References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> <5090D62C.8010207@gmx.at> <5090FD10.3070100@gmx.at> <09A63027-5F49-4F8D-AFD8-D2904FFCC341@mac.com> Date: Wed, 31 Oct 2012 12:09:36 -0400 In-reply-to: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > 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)) [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [24.201.245.36 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4999] 0.1 HDRS_LCASE Odd capitalization of message header 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers X-Debbugs-Envelope-To: 12769 Cc: 12769@debbugs.gnu.org, martin rudalics , Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) > 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 From unknown Fri Aug 15 19:31:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Nov 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator