* epg.el (epg--make-temp-file): Avoid permission race conditions
[bpt/emacs.git] / lisp / ChangeLog
index 3153308..ba05002 100644 (file)
@@ -1,3 +1,234 @@
+2011-12-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * epg.el (epg--make-temp-file): Avoid permission race conditions
+       when creating temporary directories and files on older Emacs.
+
+       * files.el (move-file-to-trash): Preserve default file modes on error.
+       (Bug#10401)
+
+2011-12-29  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-find-shell): Set "remote-shell" property
+       also for alternative shells.
+       (tramp-open-connection-setup-interactive-shell): Check, whether
+       the shell is a busybox.
+       (tramp-send-command): Don't suppress multiple prompts for
+       busyboxes, it hurts.
+
+2011-12-28  Chong Yidong  <cyd@gnu.org>
+
+       * progmodes/gdb-mi.el (gdb-get-source-file-list)
+       (gdb-get-source-file): Move mode line update to
+       gdb-get-source-file (Bug#10087).
+
+2011-12-25  Chong Yidong  <cyd@gnu.org>
+
+       * progmodes/gud.el (gud-gdb-fetch-lines-filter): Just use
+       gud-gdb-marker-filter without taking it as an argument.
+       (gud-gdb-run-command-fetch-lines): Caller changed.
+       (gud-gdb-completion-function): New variable.
+       (gud-gdb-completion-at-point): Use it.
+       (gud-gdb-completions-1): Split from gud-gdb-completions.
+
+       * progmodes/gdb-mi.el (gdb-input): Accept command and handler
+       function as separate arguments.
+       (gdb-init-1, gdb-non-stop-handler, gdb-check-target-async)
+       (gdb-tooltip-print-1, gud-watch, gdb-speedbar-update)
+       (gdb-var-list-children, gdb-var-set-format, gdb-var-delete-1)
+       (gdb-var-delete-children, gdb-edit-value, gdb-var-update)
+       (gdb-stopped, def-gdb-auto-update-trigger)
+       (gdb-place-breakpoints, gdb-select-thread, gdb-select-frame)
+       (gdb-get-changed-registers, gdb-get-main-selected-frame): Callers
+       changed.
+       (gud-gdbmi-completions): New function.
+       (gdb): Use it for generating the completion table.
+
+2011-12-24  Alan Mackenzie  <acm@muc.de>
+
+       Introduce a mechanism to widen the region used in context font
+       locking.  Use this to protect declarations from losing their
+       contexts.
+
+       * progmodes/cc-langs.el (c-before-font-lock-functions): replace
+       c-set-fl-decl-start with c-change-set-fl-decl-start (Renaming).
+       (c-before-context-fontification-functions): new defvar, a list of
+       functions to be run just before context (etc.) font locking.
+
+       * progmodes/cc-mode.el (c-extend-font-lock-region-for-macros):
+       new, functionality extracted from
+       c-neutralize-syntax-in-and-mark-CPP.
+       (c-in-after-change-fontification): new variable.
+       (c-after-change): Set c-in-after-change-fontification.
+       (c-set-fl-decl-start): Rejig its interface, so it can be called
+       from both after-change and context fontifying.
+       (c-change-set-fl-decl-start, c-context-set-fl-decl-start): new
+       functions.
+       (c-standard-font-lock-fontify-region-function): new variable.
+       (c-font-lock-fontify-region): new function.
+
+2011-12-24  Juri Linkov  <juri@jurta.org>
+
+       * window.el (window--state-get-1): Set `FORCE' arg of `mark' to t.
+       (Bug#10348)
+
+2011-12-23  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/ange-ftp.el (ange-ftp-copy-file-internal): Check for
+       existence of source file.  (Bug#10325)
+
+2011-12-23  Alan Mackenzie  <acm@muc.de>
+
+       Fix unstable fontification inside templates.
+
+       * progmodes/cc-langs.el (c-before-font-lock-functions): newly
+       created from the singular version.  The (c c++ objc) entry now
+       additionally has c-set-fl-decl-start.  The other languages (apart
+       from AWK) have that as a single entry.
+
+       * progmodes/cc-fonts.el (c-font-lock-enclosing-decls): The
+       functionality for "local" declarations has been extracted to
+       c-set-fl-decl-start.
+
+       * progmodes/cc-mode.el: (c-common-init, c-after-change): Changes
+       due to pluralisation of c-before-font-lock-functions.
+       (c-set-fl-decl-start): New function, extracted from
+       c-font-lock-enclosing-decls and enhanced.
+
+2011-12-23  Juanma Barranquero  <lekktu@gmail.com>
+
+       * desktop.el (desktop-internal-v2s): Fix typos in docstring (bug#10353).
+
+2011-12-22  Juri Linkov  <juri@jurta.org>
+
+       * progmodes/grep.el (rgrep): Fix docstring.  (Bug#10185)
+
+2011-12-22  Chong Yidong  <cyd@gnu.org>
+
+       * vc/vc-hooks.el (vc-keep-workfiles): Doc fix.
+
+2011-12-21  Drew Adams  <drew.adams@oracle.com>
+
+       * files.el (file-remote-p): Fix docstring.  (Bug#10319)
+
+2011-12-21  Jérémy Compostella  <jeremy.compostella@gmail.com>
+
+       * battery.el (battery-linux-sysfs): Add missing parameters from acpi.
+
+2011-12-21  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * progmodes/cfengine.el: Add Version.  Improve CFEngine 3.x syntax
+       highlighting and support.  Fix up comments for capitalization.
+       (cfengine-mode-debug): New var.
+       (cfengine3-mode): Change the modeline indicator to "CFE3".
+       (cfengine3-font-lock-keywords): Improve defun highlighting.
+       (cfengine2-actions): Rename from `cfengine-actions'.
+       (cfengine2-font-lock-keywords): Rename from
+       `cfengine-font-lock-keywords'.
+       (cfengine2-imenu-expression): Rename from
+       `cfengine-imenu-expression'.
+       (cfengine2-outline-level): Rename from `cfengine-outline-level'.
+       (cfengine2-beginning-of-defun): Rename from
+       `cfengine-beginning-of-defun'.
+       (cfengine2-end-of-defun): Rename from `cfengine-end-of-defun'.
+       (cfengine2-indent-line): Rename from `cfengine-indent-line'.
+       (cfengine2-mode): Rename from `cfengine-mode'.  Change the
+       modeline indicator to "CFE2".
+       (cfengine-mode): Defalias to `cfengine-auto-mode'.
+       (cfengine-mode-abbrevs): Mark obsolete.
+
+2011-12-21  Chong Yidong  <cyd@gnu.org>
+
+       * vc/vc-bzr.el (vc-bzr-rename-file): Don't pass ~ to Bzr in
+       filename argument.
+
+2011-12-20  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (window-normalize-buffer-to-display): Remove.
+       (display-buffer): Handle buffer-or-name argument as in Emacs 23.
+
+2011-12-19  Chong Yidong  <cyd@gnu.org>
+
+       * vc/vc-dir.el (vc-dir-parent-marked-p, vc-dir-children-marked-p):
+       Don't signal an error in a predicate function; return non-nil.
+       (vc-dir-mark-file): Move the error here.
+       (vc-dir-mark-unmark): If acting on the region, keep going if one
+       of the entries cannot be marked/unmarked.
+       (vc-dir-mark-all-files): If current entry is a directory, mark
+       only child files, as documented.
+
+2011-12-19  Vincent Belaïche  <vincentb1@users.sourceforge.net>
+
+       * ses.el: Ooops... undo changes of 2011-12-11T14:49:48Z!vincentb1@users.sourceforge.net, as trunk
+       branch is feature frozen, and 2011-12-11T14:49:48Z!vincentb1@users.sourceforge.net was a feature
+       addition.
+
+2011-12-18  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * term/ns-win.el (ns-get-selection-internal)
+       (ns-store-selection-internal): Declare.
+       (ns-store-cut-buffer-internal, ns-get-cut-buffer-internal):
+       Declare as obsolete.
+       (ns-get-pasteboard, ns-paste-secondary):
+       Use ns-get-selection-internal.
+       (ns-set-pasteboard,  ns-copy-including-secondary):
+       Use ns-store-selection-internal.
+
+2011-12-17  Chong Yidong  <cyd@gnu.org>
+
+       * vc/vc.el (vc-next-action): Doc fix; remove CVS-isms.
+       (vc-deduce-fileset): Doc fix.
+
+2011-12-16  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * calc/calc-misc.el (calc-help): Avoid wrapping help message.
+
+2011-12-13  Sam Steingold  <sds@gnu.org>
+
+       * man.el (Man-getpage-in-background): When running under a
+       window-system, ignore $MANWIDTH and $COLUMNS.
+
+2011-12-15  Kenichi Handa  <handa@m17n.org>
+
+       * language/ethio-util.el: Change coding tag to utf-8-emacs.
+       (setup-ethiopic-environment-internal): Comment out key-binding for
+       ethio-toggle-punctuation.
+
+2011-12-13  Alan Mackenzie  <acm@muc.de>
+
+       Add the switch statement to AWK Mode.
+
+       * progmodes/cc-awk (awk-font-lock-keywords): Add "switch", "case",
+       "default" to the keywords regexp.
+
+       * progmodes/cc-langs (c-label-kwds): Let AWK take the same
+       expression as the rest.
+       (c-nonlabel-token-key): Allow string literals for AWK.  Refactor
+       for the other modes.
+
+       Large brace-block initialisation makes CC Mode slow: Fix.
+       Tidy up and accelerate c-in-literal, etc. by using the
+       c-parse-state
+       routines.  Limit backward searching in c-font-lock-enclosing.decl.
+
+       * progmodes/cc-engine.el (c-state-pp-to-literal): Return the
+       pp-state and literal type in addition to the limits.
+       (c-state-safe-place): New defun, extracted from
+       c-state-literal-at.
+       (c-state-literal-at): Use the above new defun.
+       (c-slow-in-literal, c-fast-in-literal): Removed.
+       (c-in-literal, c-literal-limits): Amended to use
+       c-state-pp-to-literal.
+
+       * progmodes/cc-fonts.el (c-font-lock-enclosing-decls): Check for
+       being in a literal.  Add a limit for backward searching.
+
+       * progmodes/cc-mode.el (awk-mode): Don't alias c-in-literal to
+       c-slow-in-literal.
+
+2011-12-13  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/pascal.el: Declare `ind' as dyn-bound (bug#10264).
+
 2011-12-13  Martin Rudalics  <rudalics@gmx.at>
 
        * window.el (delete-other-windows): Use correct frame in call to
 
 2011-11-21  Juri Linkov  <juri@jurta.org>
 
-       * calc/calc.el (calc-read-key-sequence): Let-bind `input-method-function'
-       to nil.  (Bug#10018)
+       * calc/calc.el (calc-read-key-sequence):
+       Let-bind `input-method-function' to nil.  (Bug#10018)
 
 2011-11-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
 2011-09-24  Ulf Jasper  <ulf.jasper@web.de>
 
        * net/newst-reader.el (newsticker-html-renderer)
-       (newsticker-show-news): Automatically
-       load html rendering package if newsticker-html-renderer is set.
-       Fixes "Warning: defvar ignored because w3m-fill-column is
-       let-bound" and the error "Symbol's value as variable is void:
-       w3m-fill-column".
+       (newsticker-show-news): Automatically load html rendering package
+       if newsticker-html-renderer is set.  Fixes "Warning: defvar ignored
+       because w3m-fill-column is let-bound" and the error "Symbol's value
+       as variable is void: w3m-fill-column".
 
 2011-09-24  Michael Albinus  <michael.albinus@gmx.de>
 
 2011-09-21  Martin Rudalics  <rudalics@gmx.at>
 
        * window.el (set-window-buffer-start-and-point):
-       Call set-window-start with NOFORCE argument t.  Suggested by Thierry
-       Volpiatto <thierry.volpiatto@gmail.com>.
+       Call set-window-start with NOFORCE argument t.
+       Suggested by Thierry Volpiatto <thierry.volpiatto@gmail.com>.
        (quit-window): Reword doc-string.  Handle new format of
        quit-restore parameter.  Don't delete window if it has a
        previous buffer we can show instead of the present one.
 2011-09-18  Juri Linkov  <juri@jurta.org>
 
        * info.el (Info-mode-syntax-table): New variable.
-       (Info-mode): Set `:syntax-table' to `Info-mode-syntax-table'.  (Bug#3312)
+       (Info-mode): Set `:syntax-table' to `Info-mode-syntax-table' (bug#3312).
 
 2011-09-18  Juri Linkov  <juri@jurta.org>
 
-       * info.el (Info-file-supports-index-cookies): Increment
-       line-beginning-position's arg from 3 to 4 because makeinfo outputs
-       one more line for long file names (bug#4142).
+       * info.el (Info-file-supports-index-cookies):
+       Increment line-beginning-position's arg from 3 to 4 because makeinfo
+       outputs one more line for long file names (bug#4142).
 
 2011-09-18  Chong Yidong  <cyd@stupidchicken.com>
 
        pending encryption.
 
        (allout-inhibit-auto-save-info-for-decryption):
-       Adjust buffer-saved-size and some allout state to inhibit auto-saves if
-       there are plain-text topics pending encryption.
+       Adjust buffer-saved-size and some allout state to inhibit auto-saves
+       if there are plain-text topics pending encryption.
 
        (allout-maybe-resume-auto-save-info-after-encryption): Adjust
        buffer-saved-size and some allout state to not inhibit auto-saves
        (ses-calculate-cell, ses-update-cells): Use Dijkstra algorithm for
        cycle detection.
        (ses-self-reference-early-detection): New defcustom.
-       (ses-formula-references): Robustify against self-refering cells.
+       (ses-formula-references): Robustify against self-referring cells.
        (ses-mode): Use ses-set-localvars.
        (ses-command-hook): Add call to ses-initialize-Dijkstra-attempt
        before lauching the update processing.
        (split-window-keep-point): Mention split-window-above-each-other
        instead of split-window-vertically.
        (split-window-above-each-other, split-window-vertically):
-       Rename split-window-vertically to split-window-above-each-other and
-       provide defalias for old definition.
-       (split-window-side-by-side, split-window-horizontally): Rename
-       split-window-horizontally to split-window-side-by-side and provide
-       defalias for the old definition.
+       Rename split-window-vertically to split-window-above-each-other
+       and provide defalias for old definition.
+       (split-window-side-by-side, split-window-horizontally):
+       Rename split-window-horizontally to split-window-side-by-side
+       and provide defalias for the old definition.
        (ctl-x-map): Move bindings for delete-window,
        delete-other-windows and enlarge-window here from window.c.
        Replace bindings for split-window-vertically and
        preserves the existing header prefix, rebulleting it if necessary,
        rather than replacing it.  This is necessary for proper operation
        of cooperative addons like allout-widgets.
-       (allout-make-topic-prefix, allout-rebullet-heading): Change
-       SOLICIT arg to INSTEAD, and interpret additionally a string value
-       as alternate bullet to be used, instead of prompting the user for
-       a bullet character.
+       (allout-make-topic-prefix, allout-rebullet-heading):
+       Change SOLICIT arg to INSTEAD, and interpret additionally a string
+       value as alternate bullet to be used, instead of prompting the user
+       for a bullet character.
 
 2011-03-09  Michael Albinus  <michael.albinus@gmx.de>