unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: John Owens <john_owens@yahoo.com>
To: emacs-devel@gnu.org
Subject: Re: filladapt mode stops filling after lengthy amount of emacs uptime
Date: Fri, 6 Apr 2007 17:36:59 +0000 (UTC)	[thread overview]
Message-ID: <loom.20070406T193330-437@post.gmane.org> (raw)
In-Reply-To: loom.20070322T061712-409@post.gmane.org

Howdy, I've got zero response from the SEMI developers.
So I hope maybe I can enlist the help of smart folks here
to help me fix it myself. The bad function is below:

The answer is to make paragraph-start a local variable
(make-local-variable). How is this done? Single call to
make-local-variable in this function (and that will work)?
Where should I put it?

A one-sentence explanation of what this does would be very
useful for me (I can see having a local variable would be
good, but how long does a local variable last, "local 
variable" to me means "local for the lifetime of the function" -
doesn't this function complete immediately after you call it?

Thanks -

JDO

=========================

(defun turn-on-mime-edit ()
  "Unconditionally turn on MIME-Edit mode."
  (interactive)
  (if mime-edit-mode-flag
      (error "You are already editing a MIME message.")
    (setq mime-edit-mode-flag t)

    ;; Set transfer level into mode line
    ;;
    (setq mime-transfer-level-string
 	  (mime-encoding-name mime-transfer-level 'not-omit))
    (force-mode-line-update)

    ;; Define menu for XEmacs.
    (if (featurep 'xemacs)
	(mime-edit-define-menu-for-xemacs)
      )

    (enable-invisible)

    ;; I don't care about saving these.
    (setq paragraph-start
	  (regexp-or mime-edit-single-part-tag-regexp
		     paragraph-start))
    (setq paragraph-separate
	  (regexp-or mime-edit-single-part-tag-regexp
		     paragraph-separate))
    (run-hooks 'mime-edit-mode-hook)
    (message
     "%s"
     (substitute-command-keys
      "Type \\[mime-edit-exit] to exit MIME mode, and type \\[mime-edit-help] to
get help."))
    ))

  parent reply	other threads:[~2007-04-06 17:36 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-22  5:22 filladapt mode stops filling after lengthy amount of emacs uptime John Owens
2007-03-22 14:49 ` Chong Yidong
2007-03-29  5:03   ` John Owens
2007-03-29 13:53     ` Stefan Monnier
2007-03-29 15:57       ` Chong Yidong
2007-03-29 17:13         ` John Owens
2007-03-29 17:35           ` Davis Herring
2007-03-29 17:45           ` Chong Yidong
2007-03-30  0:43           ` Stefan Monnier
2007-03-30 11:02             ` Andreas Schwab
2007-03-30 16:10               ` Stefan Monnier
2007-03-31 19:05                 ` Michael Olson
2007-03-29 14:21     ` Davis Herring
2007-03-29 18:00       ` Richard Stallman
2007-03-29 18:05         ` Davis Herring
2007-03-29 18:29           ` David Kastrup
2007-03-29 20:35             ` Davis Herring
2007-03-30 12:42           ` Richard Stallman
2007-03-29 18:16         ` John Owens
2007-03-22 22:50 ` Richard Stallman
2007-04-06 17:36 ` John Owens [this message]
2007-04-06 18:18   ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=loom.20070406T193330-437@post.gmane.org \
    --to=john_owens@yahoo.com \
    --cc=emacs-devel@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).