unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11227: lock files not deleted
@ 2012-04-11 19:36 Kurt Harriger
  2012-04-11 22:37 ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Kurt Harriger @ 2012-04-11 19:36 UTC (permalink / raw)
  To: 11227, kurtharriger

[-- Attachment #1: Type: text/plain, Size: 8035 bytes --]


I frequently find that lock files such as .#core.clj are not deleted. 
For some reason files named .#name cause other commandline tools to fail
on OS X such as grep -R pattern . and build tools like leiningen.  

I have not experienced any emacs crashes reciently so I don't believe
these files were left behind by unclean termination, but have yet to
consistently reproduce the issue.  

I do not like to save files manually, so I have autosave configured to
automatically save dirty buffers every second, so these lock files 
should not need to exist for more than a second but for what ever reason
I keep finding them.

My autosave config (and full emacs config) is here:
https://bitbucket.org/kurtharriger/emacs.d/src/20de37046196/init.d/60-auto-save.el

Would it is possible to save lock files elsewhere? or change the
pattern filename.emacslock or something that would not result in other
commandline tools failing but I couldnt find any settings for this?

--


In GNU Emacs 24.0.95.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2012-04-02 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1138
Configured using:
 `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
 '--with-ns' 'build_alias=i686-apple-darwin'
 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: en_US.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Clojure

Minor modes in effect:
  recentf-mode: t
  midje-mode: t
  hi-lock-mode: t
  slime-mode: t
  paredit-mode: t
  hl-line-mode: t
  idle-highlight-mode: t
  tabbar-mwheel-mode: t
  tabbar-mode: t
  savehist-mode: t
  delete-selection-mode: t
  global-auto-revert-mode: t
  global-auto-complete-mode: t
  auto-complete-mode: t
  ido-ubiquitous-mode: t
  show-paren-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  hs-minor-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <down-mouse-1> <drag-mouse-1> <help-echo> 
<help-echo> <help-echo> <help-echo> <down-mouse-1> 
<mouse-movement> <mouse-movement> <help-echo> <drag-mouse-1> 
<help-echo> <help-echo> <help-echo> <down-mouse-1> 
<mouse-1> <up> <return> ( c o m m e n t SPC C-) <down> 
C-e <left> <return> <return> <up> <tab> ( g e t - h 
<backspace> e n h <tab> SPC <wheel-up> <double-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <wheel-up> <double-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <wheel-down> <double-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1> 
<mouse-1> <down-mouse-1> <mouse-1> <return> ( b i n 
d i n g SPC [ * h o s t * SPC <help-echo> <down-mouse-1> 
<mouse-1> C-c <C-up> C-c <C-up> C-c <C-up> C-c <C-up> 
C-c <C-up> <down> <down> <down> <down> <down> <wheel-up> 
<double-wheel-up> <triple-wheel-up> <wheel-up> <double-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<wheel-down> <double-wheel-down> <help-echo> <down-mouse-1> 
<mouse-movement> <mouse-movement> <drag-mouse-1> <right> 
C-a <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <down-mouse-1> <mouse-1> 
<double-down-mouse-1> <double-mouse-1> <down-mouse-1> 
<mouse-movement> <mouse-movement> <drag-mouse-1> s-c 
<down-mouse-1> <mouse-1> <left> <left> s-v <right> 
<return> <return> <down> C-a C-k <up> <up> s-v C-a 
<tab> C-e <left> t e e <backspace> s t 0 <tab> <backspace> 
- f i e <tab> s-s <down> <left> <backspace> <backspace> 
<backspace> <backspace> <backspace> <down> C-a C-d 
<up> <up> <up> <right> <right> <right> C-d C-d C-d 
l e t [ C-) C-) C-d <down> <up> C-e <left> C-) C-) 
<down> <down> <down> <down> C-d C-d C-d C-d C-d C-d 
C-d <up> <up> <right> <up> <up> <right> <right> <right> 
<down> C-k <up> <up> C-e <return> s-v <down> C-a <right> 
<right> C-k <up> <up> C-e <return> s-v <down> <up> 
<left> <C-S-right> <up> C-d C-d C-d C-d C-k C-k s-s 
C-e C-x C-e <down> <up> <up> <up> <up> <return> s-s 
C-c C-k <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> 
C-s M-s <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> 
M-x r e p o r t - b u <backspace> <backspace> <ret
urn>

Recent messages:
(No changes need to be saved) [2 times]
Saving file /Users/kurtharriger/code/fc/cherry-pitter/src/cherry_pitter/enrichment/core.clj...
Wrote /Users/kurtharriger/code/fc/cherry-pitter/src/cherry_pitter/enrichment/core.clj
Compiling /Users/kurtharriger/code/fc/cherry-pitter/src/cherry_pitter/enrichment/core.clj...
Compilation finished. (No warnings)  [0.04 secs]
Highlighting notes...
Compilation finished. (No warnings)  [0.04 secs]
Preparing compilation log...
Compilation finished. (No warnings)  [0.04 secs]
(No changes need to be saved)

Load-path shadows:
/Users/kurtharriger/.emacs.d/elpa/json-1.2/json hides /Applications/Emacs.app/Contents/Resources/lisp/json

Features:
(shadow sort flyspell ispell emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader debug arc-mode archive-mode cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
mule-util recentf tree-widget multi-isearch conf-mode dired mail-extr
midje-mode midje-mode-praise clojure-test-mode which-func imenu compile
newcomment hi-lock help-mode view ffap network-stream auth-source eieio
assoc gnus-util password-cache starttls tls slime-eldoc-d8b3cf74
slime-repl-79b38c83 slime-repl slime-frame-colors-a24dd450
slime-frame-colors byte-opt warnings slime-dbd975fa slime bytecomp
byte-compile cconv macroexp apropos hideshow pp vc-git clojure-mode
eldoc elisp-slime-nav etags paredit hl-line saveplace
idle-highlight-mode thingatpt color-theme wid-edit sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils reporter tabbar alpha
tempbuf moz-reload-mode moz derived comint regexp-opt ansi-color ring
server savehist delsel autorevert auto-complete easy-mmode popup
org-install alpha-autoloads auctex-autoloads tex-site info easymenu
clojure-test-mode-autoloads clojure-mode-autoloads
color-theme-ir-black-autoloads color-theme-autoloads js2-mode-autoloads
json-autoloads markdown-mode-autoloads marmalade-autoloads
furl-autoloads midje-mode-autoloads oddmuse-autoloads
rainbow-delimiters-autoloads scpaste-autoloads htmlize-autoloads
slime-autoloads starter-kit-bindings-autoloads windmove
starter-kit-eshell-autoloads starter-kit-lisp-autoloads
elisp-slime-nav-autoloads starter-kit-autoloads edmacro kmacro smex cl
starter-kit-misc ido-ubiquitous ido paren starter-kit-defuns uniquify
advice help-fns advice-preload magit-autoloads ido-ubiquitous-autoloads
smex-autoloads find-file-in-project-autoloads
idle-highlight-mode-autoloads paredit-autoloads tuareg-autoloads
caml-autoloads yaml-mode-autoloads package tabulated-list time-date
tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer loaddefs button faces cus-face files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process ns
multi-tty emacs)



[-- Attachment #2: Type: text/html, Size: 11475 bytes --]

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

* bug#11227: lock files not deleted
  2012-04-11 19:36 bug#11227: lock files not deleted Kurt Harriger
@ 2012-04-11 22:37 ` Glenn Morris
  2012-04-11 23:44   ` Kurt Harriger
  2012-04-15  0:42   ` Glenn Morris
  0 siblings, 2 replies; 8+ messages in thread
From: Glenn Morris @ 2012-04-11 22:37 UTC (permalink / raw)
  To: Kurt Harriger; +Cc: 11227, kurtharriger


Patch to disable lock files (nothing really came of it):

http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg01020.html





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

* bug#11227: lock files not deleted
  2012-04-11 22:37 ` Glenn Morris
@ 2012-04-11 23:44   ` Kurt Harriger
  2012-04-12 22:16     ` Glenn Morris
  2012-04-15  0:42   ` Glenn Morris
  1 sibling, 1 reply; 8+ messages in thread
From: Kurt Harriger @ 2012-04-11 23:44 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 11227, kurtharriger

[-- Attachment #1: Type: text/plain, Size: 639 bytes --]

I'll give it a try.   
I noticed that this patch is not in the master branch and I read through the associated thread and although there was discussion of alternate implementation no-one stepped up to implement the alternative implementation and there did not appear to be any objections to this patch as is? any chance this could be merged into master?

Thanks!


-- 
Kurt Harriger
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Wednesday, April 11, 2012 at 4:37 PM, Glenn Morris wrote:

> 
> Patch to disable lock files (nothing really came of it):
> 
> http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg01020.html 


[-- Attachment #2: Type: text/html, Size: 1422 bytes --]

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

* bug#11227: lock files not deleted
  2012-04-11 23:44   ` Kurt Harriger
@ 2012-04-12 22:16     ` Glenn Morris
  2012-04-13 13:37       ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2012-04-12 22:16 UTC (permalink / raw)
  To: Kurt Harriger; +Cc: 11227, kurtharriger

Kurt Harriger wrote:

> any chance this could be merged into master?

I'd be happy to add it at some point, if there no objections.





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

* bug#11227: lock files not deleted
  2012-04-12 22:16     ` Glenn Morris
@ 2012-04-13 13:37       ` Stefan Monnier
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2012-04-13 13:37 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 11227, kurtharriger, Kurt Harriger

>> any chance this could be merged into master?
> I'd be happy to add it at some point, if there no objections.

Fine by me,


        Stefan





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

* bug#11227: lock files not deleted
  2012-04-11 22:37 ` Glenn Morris
  2012-04-11 23:44   ` Kurt Harriger
@ 2012-04-15  0:42   ` Glenn Morris
  2012-04-15  2:14     ` Dave Abrahams
  1 sibling, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2012-04-15  0:42 UTC (permalink / raw)
  To: Dave Abrahams; +Cc: 11227, kurtharriger


Hi,

Re your patch from
http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg01020.html

to disable lock files.

I would like to apply this, but I noticed that you don't have a
copyright assignment for Emacs. I see you completed one for Gnus some
months ago. Would you mind doing another one for Emacs?
(It's a shame the first one was not for Emacs, since that would have
covered Gnus as well, but vice versa does not apply.)

(I know you said you would place it in the public domain, but we would
still need paperwork for that. An assignment is better, if you don't
mind.)





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

* bug#11227: lock files not deleted
  2012-04-15  0:42   ` Glenn Morris
@ 2012-04-15  2:14     ` Dave Abrahams
  2012-05-10  1:00       ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Dave Abrahams @ 2012-04-15  2:14 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 11227, kurtharriger


on Sat Apr 14 2012, Glenn Morris <rgm-AT-gnu.org> wrote:

> Hi,
>
> Re your patch from
> http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg01020.html
>
> to disable lock files.
>
> I would like to apply this, but I noticed that you don't have a
> copyright assignment for Emacs. I see you completed one for Gnus some
> months ago. Would you mind doing another one for Emacs?

Not at all.  Caveat: the last time it took the administrator months to
process it.

> (It's a shame the first one was not for Emacs, since that would have
> covered Gnus as well, but vice versa does not apply.)

I asked for a blanket agreement so I wouldn't have to do this over and
over again, but FSF said their lawyers had told them not to do that.

> (I know you said you would place it in the public domain, but we would
> still need paperwork for that. An assignment is better, if you don't
> mind.)

No problem.  Send the papers to

Dave Abrahams
45 Walnut St
Somerville, MA 02143

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com





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

* bug#11227: lock files not deleted
  2012-04-15  2:14     ` Dave Abrahams
@ 2012-05-10  1:00       ` Glenn Morris
  0 siblings, 0 replies; 8+ messages in thread
From: Glenn Morris @ 2012-05-10  1:00 UTC (permalink / raw)
  To: Dave Abrahams; +Cc: 11227, kurtharriger

close 11227 24.2
stop

In the current trunk, creation of lockfiles can now be prevented through
the `create-lockfiles' option.





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

end of thread, other threads:[~2012-05-10  1:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11 19:36 bug#11227: lock files not deleted Kurt Harriger
2012-04-11 22:37 ` Glenn Morris
2012-04-11 23:44   ` Kurt Harriger
2012-04-12 22:16     ` Glenn Morris
2012-04-13 13:37       ` Stefan Monnier
2012-04-15  0:42   ` Glenn Morris
2012-04-15  2:14     ` Dave Abrahams
2012-05-10  1:00       ` Glenn Morris

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