Hmmm, after my commit I got failure notification from buildbot, but
message in log says that problem is with permissions in /tmp folder.
who can check this?
On Wed, Nov 30, 2011 at 9:33 AM, Alex Ott <alexott@...> wrote:
> Hello all
>
> I committed this change, including Richard's suggestion
>
> On Tue, Nov 29, 2011 at 3:17 PM, Alex Ott <alexott@...> wrote:
>> Ok, I'll add corresponding check, that file should exist on disk...
>>
>> On Tue, Nov 29, 2011 at 2:59 PM, Richard Kim <emacs18@...> wrote:
>>> Hi Alex,
>>>
>>> I would like to add that the problem exists for local files as well if
>>> (a) one emacs loads a file
>>> (b) the file is removed by some other process.
>>> This happens to be quite often since I run emacs on multiple machines some
>>> of which
>>> may be accessing the same files via NFS.
>>> To combat this I added (file-exists-p buffer-file-name) check.
>>> I'm not familiar with (file-remote-p). If your patch can be generalized
>>> (assuming that it needs to be)
>>> to deal with not only remote files, but also local files, that would be
>>> great.
>>>
>>>
>>> On 29 November 2011 03:24, Alex Ott <alexott@...> wrote:
>>>>
>>>> Hi all
>>>>
>>>> I slightly changed semantic-idle-scheduler-enabled-p function, so it
>>>> will take into account does file available or not. I did this change
>>>> because I'm using idle-scheduler-mode, and if I opened file on remote
>>>> machine, and this machine goes down (I often switch virtual machine
>>>> off), then idle-mode still trying to reach this machine, so it leads
>>>> to "hanging". I added new condition that checks - do we have local
>>>> file, or if we have remote file, then connection should be opened...
>>>>
>>>> If this change is ok, then I can commit it
>>>>
>>>>
>>>> --- semantic/semantic-idle.el 2011-08-10 20:20:04 +0000
>>>> +++ semantic/semantic-idle.el 2011-11-29 11:18:01 +0000
>>>> @@ -149,11 +149,15 @@
>>>> "Return non-nil if idle-scheduler is enabled for this buffer.
>>>> idle-scheduler is disabled when debugging or if the buffer size
>>>> exceeds the `semantic-idle-scheduler-max-buffer-size' threshold."
>>>> - (and semantic-idle-scheduler-mode
>>>> - (not semantic-debug-enabled)
>>>> - (not semantic-lex-debug)
>>>> - (or (<= semantic-idle-scheduler-max-buffer-size 0)
>>>> - (< (buffer-size) semantic-idle-scheduler-max-buffer-size))))
>>>> + (let* ((fname (buffer-file-name))
>>>> + (remote-file? (when (stringp fname) (file-remote-p fname))))
>>>> + (and semantic-idle-scheduler-mode
>>>> + (not semantic-debug-enabled)
>>>> + (not semantic-lex-debug)
>>>> + (or (null remote-file?)
>>>> + (and remote-file? (file-remote-p fname nil t)))
>>>> + (or (<= semantic-idle-scheduler-max-buffer-size 0)
>>>> + (< (buffer-size) semantic-idle-scheduler-max-buffer-size)))))
>>>>
>>>> (defun semantic-idle-scheduler-mode-setup ()
>>>> "Setup option `semantic-idle-scheduler-mode'.
>>>>
>>>>
>>>>
>>>> --
>>>> With best wishes, Alex Ott
>>>> http://alexott.net/
>>>> Tiwtter: alexott_en (English), alexott (Russian)
>>>> Skype: alex.ott
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> All the data continuously generated in your IT infrastructure
>>>> contains a definitive record of customers, application performance,
>>>> security threats, fraudulent activity, and more. Splunk takes this
>>>> data and makes sense of it. IT sense. And common sense.
>>>> http://p.sf.net/sfu/splunk-novd2d
>>>> _______________________________________________
>>>> Cedet-devel mailing list
>>>> Cedet-devel@...
>>>> https://lists.sourceforge.net/lists/listinfo/cedet-devel
>>>
>>>
>>
>>
>>
>> --
>> With best wishes, Alex Ott
>> http://alexott.net/
>> Tiwtter: alexott_en (English), alexott (Russian)
>> Skype: alex.ott
>
>
>
> --
> With best wishes, Alex Ott
> http://alexott.net/
> Tiwtter: alexott_en (English), alexott (Russian)
> Skype: alex.ott
--
With best wishes, Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott
|