GNU bug report logs - #4491
ido-everywhere documentation

Previous Next

Package: emacs;

Reported by: Jari Aalto <jari.aalto <at> cante.net>

Date: Sat, 19 Sep 2009 20:25:04 UTC

Severity: minor

Tags: notabug

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

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

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

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


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4491; Package emacs. (Sat, 19 Sep 2009 20:25:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jari Aalto <jari.aalto <at> cante.net>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 19 Sep 2009 20:25:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jari Aalto <jari.aalto <at> cante.net>
To: Emacs bug BTS <submit <at> debbugs.gnu.org>
Subject: [PATCH] Emacs CVS lisp/ido.el: (ido-everywhere): Add autoload stanza
Date: Sat, 19 Sep 2009 23:18:47 +0300
[Message part 1 (text/plain, inline)]
Tags: patch

The ducumentation suggests user command, but it is not available by
default.

    ido.el

    ;; To use ido for all buffer and file selections in Emacs, customize the
    ;; variable `ido-everywhere'.
    ...

    (defcustom ido-everywhere nil
      "Use ido everywhere for reading file names and directories.
    Setting this variable directly does not work.  Use `customize' or
    call the function `ido-everywhere'."
>>  =====================================

2009-09-19  Jari Aalto  <jari.aalto <at> cante.net>

        * ido.el (ido-everywhere): Add autoload stanza.

[0001-lisp-ido.el-ido-everywhere-Add-autoload-stanza.patch (text/x-diff, inline)]
From 7c7df3898ebd236630585c6d1b3a059c22998dee Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto <at> cante.net>
Date: Sat, 19 Sep 2009 12:40:56 +0300
Subject: [PATCH] lisp/ido.el: (ido-everywhere): Add autoload stanza

Signed-off-by: Jari Aalto <jari.aalto <at> cante.net>
---
 lisp/ido.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/ido.el b/lisp/ido.el
index 2336fea..6252bab 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -1513,6 +1513,7 @@ This function also adds a hook to the minibuffer."
   (message "Ido mode %s" (if ido-mode "enabled" "disabled")))
 
 
+;;;###autoload
 (defun ido-everywhere (arg)
   "Toggle using ido speed-ups everywhere file and directory names are read.
 With ARG, turn ido speed-up on if arg is positive, off otherwise."
-- 
1.6.3.3


Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4491; Package emacs. (Sun, 20 Sep 2009 14:55:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 20 Sep 2009 14:55:05 GMT) Full text and rfc822 format available.

Message #10 received at 4491 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jari Aalto <jari.aalto <at> cante.net>
Cc: 4491 <at> debbugs.gnu.org, storm <at> cua.dk
Subject: Re: bug#4491: [PATCH] Emacs CVS lisp/ido.el: (ido-everywhere): Add autoload stanza
Date: Sun, 20 Sep 2009 10:46:36 -0400
> The ducumentation suggests user command, but it is not available by
> default.

>     ido.el

>     ;; To use ido for all buffer and file selections in Emacs, customize the
>     ;; variable `ido-everywhere'.
>     ...

>     (defcustom ido-everywhere nil
>       "Use ido everywhere for reading file names and directories.
>     Setting this variable directly does not work.  Use `customize' or
>     call the function `ido-everywhere'."
>>> =====================================

> 2009-09-19  Jari Aalto  <jari.aalto <at> cante.net>

>         * ido.el (ido-everywhere): Add autoload stanza.

I'm not sure ido-everywhere is meant to work when ido-mode is OFF.
So, I think ido-everywhere is only meaningfully called after calling
ido-mode, in which case autoloading doesn't make much sense.
Kim?


        Stefan



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4491; Package emacs. (Sun, 20 Sep 2009 16:15:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jari Aalto <jari.aalto <at> cante.net>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 20 Sep 2009 16:15:05 GMT) Full text and rfc822 format available.

Message #15 received at 4491 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jari Aalto <jari.aalto <at> cante.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 4491 <at> debbugs.gnu.org, storm <at> cua.dk
Subject: Re: bug#4491: [PATCH] Emacs CVS lisp/ido.el: (ido-everywhere): Add autoload stanza
Date: Sun, 20 Sep 2009 19:06:35 +0300
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>>     (defcustom ido-everywhere nil
>>       "Use ido everywhere for reading file names and directories.
>>     Setting this variable directly does not work.  Use `customize' or
>>     call the function `ido-everywhere'."
>
> I'm not sure ido-everywhere is meant to work when ido-mode is OFF.
> So, I think ido-everywhere is only meaningfully called after calling
> ido-mode, in which case autoloading doesn't make much sense.

This is where I use it:

  (autoload 'ido-everywhere "ido")
  (ido-everywhere 1)
  (ido-mode 1)

Jari



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4491; Package emacs. (Sun, 20 Sep 2009 17:40:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 20 Sep 2009 17:40:05 GMT) Full text and rfc822 format available.

Message #20 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#4491: [PATCH] Emacs CVS lisp/ido.el: (ido-everywhere): Add autoload stanza
Date: Sun, 20 Sep 2009 18:32:15 +0100
On 2009-09-20 17:06 +0100, Jari Aalto wrote:
> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>
>>>     (defcustom ido-everywhere nil
>>>       "Use ido everywhere for reading file names and directories.
>>>     Setting this variable directly does not work.  Use `customize' or
>>>     call the function `ido-everywhere'."
>>
>> I'm not sure ido-everywhere is meant to work when ido-mode is OFF.
>> So, I think ido-everywhere is only meaningfully called after calling
>> ido-mode, in which case autoloading doesn't make much sense.
>
> This is where I use it:
>
>   (autoload 'ido-everywhere "ido")
>   (ido-everywhere 1)
>   (ido-mode 1)

Why not

 (ido-mode 1)
 (ido-everywhere 1)

??

Then you don't need that autoload.

> Jari

-- 
Leo's Emacs uptime: 1 hour, 13 minutes, 44 seconds





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4491; Package emacs. (Sun, 20 Sep 2009 18:30:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 20 Sep 2009 18:30:07 GMT) Full text and rfc822 format available.

Message #25 received at 4491 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jari Aalto <jari.aalto <at> cante.net>
Cc: 4491 <at> debbugs.gnu.org, storm <at> cua.dk
Subject: Re: bug#4491: [PATCH] Emacs CVS lisp/ido.el: (ido-everywhere): Add autoload stanza
Date: Sun, 20 Sep 2009 14:20:28 -0400
> This is where I use it:

>   (autoload 'ido-everywhere "ido")
>   (ido-everywhere 1)
>   (ido-mode 1)

Actually ido-everywhere is called by ido-mode.  So

   (setq ido-everywhere t)
   (ido-mode 1)

will work just fine.  You only need to call ido-everywhere if you change
the variable after enabling ido-mode.


        Stefan



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4491; Package emacs. (Sun, 20 Sep 2009 19:00:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jari Aalto <jari.aalto <at> cante.net>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 20 Sep 2009 19:00:08 GMT) Full text and rfc822 format available.

Message #30 received at 4491 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jari Aalto <jari.aalto <at> cante.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 4491 <at> debbugs.gnu.org, storm <at> cua.dk
Subject: Re: bug#4491: [PATCH] Emacs CVS lisp/ido.el: (ido-everywhere): Add autoload stanza
Date: Sun, 20 Sep 2009 21:53:55 +0300
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> This is where I use it:
>
>>   (autoload 'ido-everywhere "ido")
>>   (ido-everywhere 1)
>>   (ido-mode 1)
>
> Actually ido-everywhere is called by ido-mode.  So
>
>    (setq ido-everywhere t)
>    (ido-mode 1)
>
> will work just fine.  You only need to call ido-everywhere if you change
> the variable after enabling ido-mode.

It would be good if the documentaion of the variable would indicate
that it can be set, before ido-mode is turner on.

Thanks,
Jari



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4491; Package emacs. (Sun, 20 Sep 2009 19:05:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 20 Sep 2009 19:05:05 GMT) Full text and rfc822 format available.

Message #35 received at 4491 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 4491 <at> debbugs.gnu.org, Jari Aalto <jari.aalto <at> cante.net>,
        storm <at> cua.dk
Subject: Re: bug#4491: [PATCH] Emacs CVS lisp/ido.el: (ido-everywhere): Add autoload stanza
Date: Sun, 20 Sep 2009 19:58:23 +0100
On 2009-09-20 19:20 +0100, Stefan Monnier wrote:
>> This is where I use it:
>
>>   (autoload 'ido-everywhere "ido")
>>   (ido-everywhere 1)
>>   (ido-mode 1)
>
> Actually ido-everywhere is called by ido-mode.  So
>
>    (setq ido-everywhere t)
>    (ido-mode 1)
>
> will work just fine.  You only need to call ido-everywhere if you change
> the variable after enabling ido-mode.

The doc-string of variable ido-everywhere seems confusing to me.

>         Stefan

-- 
Leo's Emacs uptime: 2 hours, 40 minutes, 42 seconds



Severity set to 'minor' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Wed, 23 Sep 2009 00:30:25 GMT) Full text and rfc822 format available.

Removed tag(s) patch. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Wed, 23 Sep 2009 00:30:26 GMT) Full text and rfc822 format available.

Changed bug title to 'ido-everywhere documentation' from '[PATCH] Emacs CVS lisp/ido.el: (ido-everywhere): Add autoload stanza' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Wed, 23 Sep 2009 00:30:28 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 13 Jul 2011 13:53:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 4491 <at> debbugs.gnu.org and Jari Aalto <jari.aalto <at> cante.net> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 13 Jul 2011 13:53:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4491; Package emacs. (Wed, 13 Jul 2011 14:14:02 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: storm <at> cua.dk, 4491 <at> debbugs.gnu.org, Jari Aalto <jari.aalto <at> cante.net>
Subject: Re: bug#4491: [PATCH] Emacs CVS lisp/ido.el: (ido-everywhere): Add
	autoload stanza
Date: Wed, 13 Jul 2011 15:52:23 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> Actually ido-everywhere is called by ido-mode.  So
>
>    (setq ido-everywhere t)
>    (ido-mode 1)
>
> will work just fine.  You only need to call ido-everywhere if you change
> the variable after enabling ido-mode.

So I don't think there's a bug here, and I'm closing the report.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 11 Aug 2011 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 318 days ago.

Previous Next


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