unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: emacs 22.1 hogging CPU
       [not found] <BAY144-F34A23709898886E12A3C1984120@phx.gbl>
@ 2007-06-20 13:28 ` Richard Stallman
  2007-07-23 18:06 ` Richard Stallman
  1 sibling, 0 replies; 7+ messages in thread
From: Richard Stallman @ 2007-06-20 13:28 UTC (permalink / raw)
  To: emacs-devel

    semantic-version is a variable defined in `semantic.el'.
    Its value is "2.0pre3"

    It looks like there was a pre4 that came out a few days
    after emacs 22.1.  I'll try having him upgrade to that.

I wonder if there is anything we can do to warn users about this.
For instance, in Emacs 22.2 we could add a feature would check
for version numbers (somehow) in files being loaded, and give an error
if they meet a criterion.

Maybe the feature could involve an alist whose elements look like
(FILE VARIABLE REGEXP ERROR).  It could be initialized to

(("semantic.el" semantic-version "2.0pre3"
  "Version %s of %s won't run in Emacs 22"))

Any comments or suggestions?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs 22.1 hogging CPU
       [not found] <BAY144-F34A23709898886E12A3C1984120@phx.gbl>
  2007-06-20 13:28 ` emacs 22.1 hogging CPU Richard Stallman
@ 2007-07-23 18:06 ` Richard Stallman
  2007-07-24  4:17   ` dhruva
  2007-07-24  5:10   ` Dan Nicolaescu
  1 sibling, 2 replies; 7+ messages in thread
From: Richard Stallman @ 2007-07-23 18:06 UTC (permalink / raw)
  To: emacs-devel

    semantic-version is a variable defined in `semantic.el'.
    Its value is "2.0pre3"

    It looks like there was a pre4 that came out a few days
    after emacs 22.1.  I'll try having him upgrade to that.

I wonder if there is anything we can do to warn users about this.
For instance, in Emacs 22.2 we could add a feature would check
for version numbers (somehow) in files being loaded, and give an error
if they meet a criterion.

Maybe the feature could involve an alist whose elements look like
(FILE VARIABLE REGEXP ERROR).  It could be initialized to

(("semantic.el" semantic-version "2.0pre3"
  "Version %s of %s won't run in Emacs 22"))

Any comments or suggestions?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs 22.1 hogging CPU
  2007-07-23 18:06 ` Richard Stallman
@ 2007-07-24  4:17   ` dhruva
  2007-07-24 22:17     ` Richard Stallman
  2007-07-24  5:10   ` Dan Nicolaescu
  1 sibling, 1 reply; 7+ messages in thread
From: dhruva @ 2007-07-24  4:17 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Hi,

On 7/23/07, Richard Stallman <rms@gnu.org> wrote:
> Maybe the feature could involve an alist whose elements look like
> (FILE VARIABLE REGEXP ERROR).  It could be initialized to
>
> (("semantic.el" semantic-version "2.0pre3"
>   "Version %s of %s won't run in Emacs 22"))

IMHO, since this data keeps changing (often or not), this should be
seperated from the general Emacs distribution. Also, this could be a
seperate package which can be loaded if the user wants. The error or
warning could be configured. At times, I may be evaluating a package
and would want to continue with a warning instead of an error which
prevents it from even getting loaded. The data file to drive such
checks could be hosted in the emacs wiki page (or some other place).
The distribution could carry the latest along with it.

Personally, I feel this will be very useful for users and also emacs
developer community in resolving issues. The data file can be a first
check to find out if it is a known issue.

-dky

-- 
Dhruva Krishnamurthy
Contents reflect my personal views only!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs 22.1 hogging CPU
  2007-07-23 18:06 ` Richard Stallman
  2007-07-24  4:17   ` dhruva
@ 2007-07-24  5:10   ` Dan Nicolaescu
  2007-07-24 13:12     ` Stefan Monnier
  2007-07-24 22:17     ` Richard Stallman
  1 sibling, 2 replies; 7+ messages in thread
From: Dan Nicolaescu @ 2007-07-24  5:10 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

  >     semantic-version is a variable defined in `semantic.el'.
  >     Its value is "2.0pre3"
  > 
  >     It looks like there was a pre4 that came out a few days
  >     after emacs 22.1.  I'll try having him upgrade to that.
  > 
  > I wonder if there is anything we can do to warn users about this.
  > For instance, in Emacs 22.2 we could add a feature would check
  > for version numbers (somehow) in files being loaded, and give an error
  > if they meet a criterion.
  > 
  > Maybe the feature could involve an alist whose elements look like
  > (FILE VARIABLE REGEXP ERROR).  It could be initialized to
  > 
  > (("semantic.el" semantic-version "2.0pre3"
  >   "Version %s of %s won't run in Emacs 22"))
  > 
  > Any comments or suggestions?

We would have to support a feature like this until the end of time for
something that is not that likely to repeat. 
Has something like this happened in the past? Many times?
IMVHO it does not seem like a good idea.

Maybe we can get the semantic people to send an email to their mailing
list (if there is one) and put a note prominent note on the website
about this issue. 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs 22.1 hogging CPU
  2007-07-24  5:10   ` Dan Nicolaescu
@ 2007-07-24 13:12     ` Stefan Monnier
  2007-07-24 22:17     ` Richard Stallman
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2007-07-24 13:12 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: rms, emacs-devel

> We would have to support a feature like this until the end of time for
> something that is not that likely to repeat.
> Has something like this happened in the past?

Yes.

> Many times?

For Emacs-21, there was at least cua-mode (which broke if the user had an
older version of it in its load-path) plus a few more (calc comes to mind).

Every time we introduce incompatibility, we're bound to encounter such
things.  Incompatibilities are introduced at least at each major version.


        Stefan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs 22.1 hogging CPU
  2007-07-24  4:17   ` dhruva
@ 2007-07-24 22:17     ` Richard Stallman
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Stallman @ 2007-07-24 22:17 UTC (permalink / raw)
  To: dhruva; +Cc: emacs-devel

    > Maybe the feature could involve an alist whose elements look like
    > (FILE VARIABLE REGEXP ERROR).  It could be initialized to
    >
    > (("semantic.el" semantic-version "2.0pre3"
    >   "Version %s of %s won't run in Emacs 22"))

    IMHO, since this data keeps changing (often or not), this should be
    separated from the general Emacs distribution.

There must be a misunderstanding.  The idea of this feature is to warn
people about old versions of other programs that Emacs version M.N
won't work with.  (We can assume that new versions of those programs
will be fixed to work with the latest Emacs.)  So this list is fixed
for any given Emacs version.  The idea is to release it in Emacs.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: emacs 22.1 hogging CPU
  2007-07-24  5:10   ` Dan Nicolaescu
  2007-07-24 13:12     ` Stefan Monnier
@ 2007-07-24 22:17     ` Richard Stallman
  1 sibling, 0 replies; 7+ messages in thread
From: Richard Stallman @ 2007-07-24 22:17 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

    We would have to support a feature like this until the end of time for
    something that is not that likely to repeat. 

"Support" is ambiguous in this context.

If it means that we won't delete this feature, I agree, but that is
not a problem.  We just won't delete it.

If it means "continue to change and pay attention to", then I
disagree.  We won't ever have to change the list, except when we find
another case that we want to warn users about.  Then we can add that
case.  So this won't require attention except when it is advantageous
for us to pay attention.

Would someone please implement this, then ack?

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-24 22:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <BAY144-F34A23709898886E12A3C1984120@phx.gbl>
2007-06-20 13:28 ` emacs 22.1 hogging CPU Richard Stallman
2007-07-23 18:06 ` Richard Stallman
2007-07-24  4:17   ` dhruva
2007-07-24 22:17     ` Richard Stallman
2007-07-24  5:10   ` Dan Nicolaescu
2007-07-24 13:12     ` Stefan Monnier
2007-07-24 22:17     ` Richard Stallman

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).