all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Croix <jcroix@mac.com>
To: martin rudalics <rudalics@gmx.at>
Cc: 12769@debbugs.gnu.org, Andreas Schwab <schwab@linux-m68k.org>
Subject: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Wed, 31 Oct 2012 09:50:31 -0500	[thread overview]
Message-ID: <09A63027-5F49-4F8D-AFD8-D2904FFCC341@mac.com> (raw)
In-Reply-To: <5090FD10.3070100@gmx.at>

[-- Attachment #1: Type: text/plain, Size: 1620 bytes --]

Thanks for all the help and suggestions.  Here's what I can tell you:
I've never programmed in LISP, so I picked this piece of code up from a friend who is.  That's not an excuse for not trying to figure it out on my own.  However, I hope that explains why I'll say that I have no idea what the lambda function does in LISP.  I'm familiar with C++11's new lambda features, but the semantics of LISP... no clue.  Looks like I'll need to become familiar with LISP.
The intent of the code was to do 2 things
Always delete trailing white space from any file
Untabify files for which indent-tabs-mode is nil.  From what I understand, this variable is set to a non-nil value for makefile mode but isn't necessarily set for other modes.  Thus, the prior statement sets indent-tabs-mode to nil for all modes that don't normally set it.
While it now looks like the code doesn't actually do the two things that I wanted it to do, it never stopped the process of writing files before.  I'm using the same initialization file for emacs 23.4.  It seems to me that this means that (1) untabify didn't return a result before or (2) the write operation didn't depend on a nil value return in order to write.  So is this a bug in 23.4 that's fixed in 24.x?  A feature change in 24.x for untabify or the write operation?

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

Regards,
John

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

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


[-- Attachment #2: Type: text/html, Size: 2234 bytes --]

  reply	other threads:[~2012-10-31 14:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-30 19:25 bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion John Croix
2012-10-30 20:33 ` Jan Djärv
2012-10-30 20:37   ` John Croix
2012-10-30 21:07     ` Jan Djärv
2012-10-31  3:04       ` John Croix
2012-10-31  7:33         ` Andreas Schwab
2012-10-31  7:41         ` martin rudalics
2012-10-31  8:09           ` Andreas Schwab
2012-10-31 10:27             ` martin rudalics
2012-10-31 14:50               ` John Croix [this message]
2012-10-31 15:07                 ` John Croix
2012-10-31 16:09                   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=09A63027-5F49-4F8D-AFD8-D2904FFCC341@mac.com \
    --to=jcroix@mac.com \
    --cc=12769@debbugs.gnu.org \
    --cc=rudalics@gmx.at \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.