* Issues with Emacs master?
@ 2019-08-02 14:53 Angelo Graziosi
2019-08-02 14:59 ` Noam Postavsky
0 siblings, 1 reply; 9+ messages in thread
From: Angelo Graziosi @ 2019-08-02 14:53 UTC (permalink / raw)
To: emacs-devel
After about a month, I have built master (b49d98, 2019-08-02 12:24:53) and noticed that with Python files (.py) it flags
"Can’t guess python-indent-offset, using defaults: 4"
(in the minibuffer or in Messages). Really this message is present also in previous builds but in the current, if I try
C-h v pyth TAB
(to know about python-indent-offset) I get in the minibuffer,
- on Windows (MSYS2/MINGW64 build):
"Shell native completion is disabled, using fallback"
- on GNU/Linux Mint 19.1 (Cairo build):
"Shell native completion is enabled."
It seems that these message show up only if the variable start with the string 'py' or 'pyt' or 'pyth' etc. Trying with 'pr', 'pri'.. 'ps', 'ps-sp'.. there is the completion without any message..
In previous builds (2019-06-30 11:23:06), on both systems, no message but the completion oh pyth in python- etc.
Maybe a python-mode regression/issue
Ciao,
Angelo.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Issues with Emacs master?
2019-08-02 14:53 Issues with Emacs master? Angelo Graziosi
@ 2019-08-02 14:59 ` Noam Postavsky
2019-08-02 16:34 ` Angelo Graziosi
2019-08-02 20:27 ` Stefan Monnier
0 siblings, 2 replies; 9+ messages in thread
From: Noam Postavsky @ 2019-08-02 14:59 UTC (permalink / raw)
To: Angelo Graziosi; +Cc: Emacs developers
On Fri, 2 Aug 2019 at 10:53, Angelo Graziosi <angelo.g0@libero.it> wrote:
> C-h v pyth TAB
>
> (to know about python-indent-offset) I get in the minibuffer,
>
> - on Windows (MSYS2/MINGW64 build):
>
> "Shell native completion is disabled, using fallback"
>
> - on GNU/Linux Mint 19.1 (Cairo build):
>
> "Shell native completion is enabled."
>
> It seems that these message show up only if the variable start with the string 'py' or 'pyt' or 'pyth' etc. Trying with 'pr', 'pri'.. 'ps', 'ps-sp'.. there is the completion without any message..
Completing symbol names may load files, see Bug#28607.
https://debbugs.gnu.org/28607
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Issues with Emacs master?
2019-08-02 14:59 ` Noam Postavsky
@ 2019-08-02 16:34 ` Angelo Graziosi
2019-08-02 20:27 ` Stefan Monnier
1 sibling, 0 replies; 9+ messages in thread
From: Angelo Graziosi @ 2019-08-02 16:34 UTC (permalink / raw)
To: Noam Postavsky; +Cc: Emacs developers
> Il 2 agosto 2019 alle 16.59 Noam Postavsky ha scritto:
>
>
> On Fri, 2 Aug 2019 at 10:53, Angelo Graziosi wrote:
>
> > C-h v pyth TAB
> >
> > (to know about python-indent-offset) I get in the minibuffer,
> >
> > - on Windows (MSYS2/MINGW64 build):
> >
> > "Shell native completion is disabled, using fallback"
> >
> > - on GNU/Linux Mint 19.1 (Cairo build):
> >
> > "Shell native completion is enabled."
> >
> > It seems that these message show up only if the variable start with the string 'py' or 'pyt' or 'pyth' etc. Trying with 'pr', 'pri'.. 'ps', 'ps-sp'.. there is the completion without any message..
>
> Completing symbol names may load files, see Bug#28607.
>
> https://debbugs.gnu.org/28607
For some strange reason, I didn't notice it in previous builds... Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Issues with Emacs master?
2019-08-02 14:59 ` Noam Postavsky
2019-08-02 16:34 ` Angelo Graziosi
@ 2019-08-02 20:27 ` Stefan Monnier
2019-08-05 6:09 ` Andreas Röhler
2019-08-06 7:46 ` Angelo Graziosi
1 sibling, 2 replies; 9+ messages in thread
From: Stefan Monnier @ 2019-08-02 20:27 UTC (permalink / raw)
To: Noam Postavsky; +Cc: Angelo Graziosi, Emacs developers
>> C-h v pyth TAB
>>
>> (to know about python-indent-offset) I get in the minibuffer,
>>
>> - on Windows (MSYS2/MINGW64 build):
>>
>> "Shell native completion is disabled, using fallback"
>>
>> - on GNU/Linux Mint 19.1 (Cairo build):
>>
>> "Shell native completion is enabled."
>>
>> It seems that these message show up only if the variable start with the
>> string 'py' or 'pyt' or 'pyth' etc. Trying with 'pr', 'pri'.. 'ps',
>> 'ps-sp'.. there is the completion without any message..
>
> Completing symbol names may load files, see Bug#28607.
>
> https://debbugs.gnu.org/28607
I suggest using debug-on-message to catch the file that causes those
messages when loaded, and then file a bug report about it.
Stefan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Issues with Emacs master?
2019-08-02 20:27 ` Stefan Monnier
@ 2019-08-05 6:09 ` Andreas Röhler
2019-08-05 19:44 ` Stefan Monnier
2019-08-06 7:46 ` Angelo Graziosi
1 sibling, 1 reply; 9+ messages in thread
From: Andreas Röhler @ 2019-08-05 6:09 UTC (permalink / raw)
To: emacs-devel
On 02.08.19 22:27, Stefan Monnier wrote:
>>> C-h v pyth TAB
>>>
>>> (to know about python-indent-offset) I get in the minibuffer,
>>>
>>> - on Windows (MSYS2/MINGW64 build):
>>>
>>> "Shell native completion is disabled, using fallback"
>>>
>>> - on GNU/Linux Mint 19.1 (Cairo build):
>>>
>>> "Shell native completion is enabled."
>>>
>>> It seems that these message show up only if the variable start with the
>>> string 'py' or 'pyt' or 'pyth' etc. Trying with 'pr', 'pri'.. 'ps',
>>> 'ps-sp'.. there is the completion without any message..
>> Completing symbol names may load files, see Bug#28607.
>>
>> https://debbugs.gnu.org/28607
> I suggest using debug-on-message to catch the file that causes those
> messages when loaded, and then file a bug report about it.
>
>
> Stefan
>
>
Customizing `python-indent-guess-indent-offset-verbose` to nil should
avoid this message. IMO nil by default seems reasonable.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Issues with Emacs master?
2019-08-05 6:09 ` Andreas Röhler
@ 2019-08-05 19:44 ` Stefan Monnier
2019-08-05 20:26 ` Andreas Röhler
0 siblings, 1 reply; 9+ messages in thread
From: Stefan Monnier @ 2019-08-05 19:44 UTC (permalink / raw)
To: Andreas Röhler; +Cc: emacs-devel
>>>> (to know about python-indent-offset) I get in the minibuffer,
>>>> - on Windows (MSYS2/MINGW64 build):
>>>> "Shell native completion is disabled, using fallback"
>>>> - on GNU/Linux Mint 19.1 (Cairo build):
>>>> "Shell native completion is enabled."
[...]
> Customizing `python-indent-guess-indent-offset-verbose` to nil should avoid
> this message. IMO nil by default seems reasonable.
Hmm, the code I see for it is:
python.el- (if (and indentation (not (zerop indentation)))
python.el- (set (make-local-variable 'python-indent-offset) indentation)
python.el: (when python-indent-guess-indent-offset-verbose
python.el- (message "Can't guess python-indent-offset, using defaults: %s"
python.el- python-indent-offset))))))))
so the message it controls seems to be quite different from the message
that the OP sees.
Stefan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Issues with Emacs master?
2019-08-05 19:44 ` Stefan Monnier
@ 2019-08-05 20:26 ` Andreas Röhler
2019-08-06 7:23 ` Stefan Monnier
0 siblings, 1 reply; 9+ messages in thread
From: Andreas Röhler @ 2019-08-05 20:26 UTC (permalink / raw)
To: emacs-devel; +Cc: Stefan Monnier
On 05.08.19 21:44, Stefan Monnier wrote:
>>>>> (to know about python-indent-offset) I get in the minibuffer,
>>>>> - on Windows (MSYS2/MINGW64 build):
>>>>> "Shell native completion is disabled, using fallback"
>>>>> - on GNU/Linux Mint 19.1 (Cairo build):
>>>>> "Shell native completion is enabled."
> [...]
>> Customizing `python-indent-guess-indent-offset-verbose` to nil should avoid
>> this message. IMO nil by default seems reasonable.
> Hmm, the code I see for it is:
>
> python.el- (if (and indentation (not (zerop indentation)))
> python.el- (set (make-local-variable 'python-indent-offset) indentation)
> python.el: (when python-indent-guess-indent-offset-verbose
> python.el- (message "Can't guess python-indent-offset, using defaults: %s"
> python.el- python-indent-offset))))))))
>
> so the message it controls seems to be quite different from the message
> that the OP sees.
>
>
> Stefan
>
Referred to mentioned
"Can’t guess python-indent-offset, using defaults: 4"
BTW that's a thing noticed here too for a certain time.
Not a serious bug, but not helpful, worth fixing.
Guessing indent OTOH is costly and reasonably off by default.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Issues with Emacs master?
2019-08-05 20:26 ` Andreas Röhler
@ 2019-08-06 7:23 ` Stefan Monnier
0 siblings, 0 replies; 9+ messages in thread
From: Stefan Monnier @ 2019-08-06 7:23 UTC (permalink / raw)
To: Andreas Röhler; +Cc: emacs-devel
> Referred to mentioned
>
> "Can’t guess python-indent-offset, using defaults: 4"
Ah, right. I skipped this part because he said it's been there for much
longer. IOW it's a separate issue from the one that caused him to
report the bug.
> Guessing indent OTOH is costly and reasonably off by default.
I don't have a strong opinion on that, but the variable you pointed to
doesn't disable the guess, it only disables the message emitted at the
end of the guess. To disable the guess you need to set
python-indent-guess-indent-offset, IIUC.
Stefan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Issues with Emacs master?
2019-08-02 20:27 ` Stefan Monnier
2019-08-05 6:09 ` Andreas Röhler
@ 2019-08-06 7:46 ` Angelo Graziosi
1 sibling, 0 replies; 9+ messages in thread
From: Angelo Graziosi @ 2019-08-06 7:46 UTC (permalink / raw)
To: Stefan Monnier, Noam Postavsky, andreas.roehler; +Cc: Emacs developers
> Andreas Röhler wrote:
>
> Customizing `python-indent-guess-indent-offset-verbose` to nil should > avoid this message
> Stefan Monnier wrote:
>
> so the message it controls seems to be quite different from the
> message that the OP sees
Just for completeness, I added
(setq python-indent-guess-indent-offset-verbose nil)
to the init.el file and now I cannot find
"Can’t guess python-indent-offset, using defaults: 4"
in Messages buffer...
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-08-06 7:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-02 14:53 Issues with Emacs master? Angelo Graziosi
2019-08-02 14:59 ` Noam Postavsky
2019-08-02 16:34 ` Angelo Graziosi
2019-08-02 20:27 ` Stefan Monnier
2019-08-05 6:09 ` Andreas Röhler
2019-08-05 19:44 ` Stefan Monnier
2019-08-05 20:26 ` Andreas Röhler
2019-08-06 7:23 ` Stefan Monnier
2019-08-06 7:46 ` Angelo Graziosi
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.