1. 15 Dec, 2012 3 commits
  2. 14 Dec, 2012 7 commits
    • Glenn Morris's avatar
      macroexp--warn-and-return message tweak (bug#13132) · a5f74442
      Glenn Morris authored
      * lisp/emacs-lisp/macroexp.el (macroexp--warn-and-return):
      Try to include filename in non-bytecomp warning.
    • Paul Eggert's avatar
      Fix permissions bugs with setgid directories etc. · 97976f9f
      Paul Eggert authored
      * configure.ac (BSD4_2): Remove; no longer needed.
      * admin/CPP-DEFINES (BSD4_2): Remove.
      * doc/lispintro/emacs-lisp-intro.texi (Files List):
      directory-files-and-attributes now outputs t for attribute that's
      now a placeholder.
      * doc/lispref/files.texi (Testing Accessibility): Document GROUP arg
      of file-ownership-preserved-p.
      (File Attributes): Document that 9th element is now
      just a placeholder.
      * doc/lispref/os.texi (User Identification): Document new functions group-gid,
      * etc/NEWS: Document changes to file-attributes,
      Mention new functions group-gid, group-real-gid.
      * lisp/files.el (backup-buffer): Don't rely on 9th output of
      file-attributes, as it's now a placeholder.  Instead, use the new
      optional arg of file-ownership-preserved-p.
      (file-ownership-preserved-p): New optional arg GROUP.
      Fix mishandling of setuid directories that would cause this
      function to return t when it should have returned nil.
      Document what happens if the file does not exist, and when
      it's not known whether the ownership will be preserved.
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-ownership-preserved-p):
      (tramp-get-local-gid): Use group-gid for integer, as that's
      faster and more reliable.
      * src/dired.c (Ffile_attributes): Return t as the 9th attribute,
      to mark it as a placeholder.  The old value was often wrong.
      The only user of this attribute has been changed to use
      file-ownership-preserved-p instead, with its new group arg.
      * src/editfns.c (Fgroup_gid, Fgroup_real_gid): New functions.
      Fixes: debbugs:13125
    • Julien Danjou's avatar
      * progmodes/sql.el (sql-mode-postgres-font-lock-keywords): Update · 016b2a42
      Julien Danjou authored
        keywords list, data type and PL/pgSQL.
    • Dave Abrahams's avatar
      * lisp/vc/ediff-util.el (ediff-buffer-type): New function. · 665e5e07
      Dave Abrahams authored
      (ediff-clone-buffer-for-current-diff-comparison): Compute the buf-type
      rather than taking it as as argument.
      (ediff-inferior-compare-regions): Adjust calls accordingly.
      Fixes: debbugs:11319
    • Ryan Crum's avatar
      * lisp/json.el: Add pretty-print option. · d72e9e92
      Ryan Crum authored
      (json-encoding-separator, json-encoding-default-indentation)
      (json--encoding-current-indentation, json-encoding-pretty-print)
      (json-encoding-lisp-style-closings): New vars.
      (json--with-indentation): New macro.
      (json-encode-hash-table, json-encode-alist, json-encode-plist)
      (json-encode-array): Use it to obey json-encoding-pretty-print.
      (json-pretty-print-buffer, json-pretty-print): New commands.
      Fixes: debbugs:12634
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): · bb808526
      Dmitry Gutov authored
      Extract `ruby-syntax-propertize-expansions'.
      (ruby-syntax-propertize-expansions): Only change syntax on
      certain string delimiters, to punctuation.  This way the common
      functions like forward-word and thing-at-point still work.
      (ruby-match-expression-expansion): Improve readability.
      (ruby-block-contains-point): New function.
      (ruby-add-log-current-method): Handle several edge cases.
      * test/automated/ruby-mode-tests.el
      Rename one interpolation test; add three more.
      (ruby-with-temp-buffer): New macro, use it where appropriate.
      (ruby-add-log-current-method-examples): Use "_" for target point.
      Add four tests for ruby-add-log-current-method.
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): · dbb530d9
      Dmitry Gutov authored
      Extract `ruby-syntax-propertize-expansions'.
      (ruby-syntax-propertize-expansions): Only change syntax on
      certain string delimiters, to punctuation.  This way the common
      functions like forward-word and thing-at-point still work.
      * test/automated/ruby-mode-tests.el
      Rename one interpolation test; add three more.
  3. 13 Dec, 2012 6 commits
  4. 12 Dec, 2012 4 commits
  5. 11 Dec, 2012 9 commits
  6. 10 Dec, 2012 5 commits
    • Stefan Monnier's avatar
      * lisp/hi-lock.el (hi-lock--regexps-at-point): Fix boundary case for · ed6f2cd4
      Stefan Monnier authored
      font-lock as well as when there's no text-property.
    • Jambunathan K's avatar
      * lisp/hi-lock.el: Refine the choice of default face. · c868b919
      Jambunathan K authored
      (hi-lock-keyword->face): New function.  Use it wherever we used
      cadadadr instead.
      (hi-lock--regexps-at-point): Ignore faces that can't come from hi-lock.
      (hi-lock--last-face): Remove var.
      (hi-lock--unused-faces): New var to replace it.
      (hi-lock-read-face-name): Use/maintain it.
      (hi-lock-unface-buffer): Maintain it.  Fix error for the C-u case.
      (hi-lock-set-pattern): Ignore new rule if it has the same regexp even
      if it has another face.
      Fixes: debbugs:11095
    • Eli Zaretskii's avatar
    • Rüdiger Sonderfeld's avatar
      Support filesystem notification through inotify on GNU/Linux. · 81606b10
      Rüdiger Sonderfeld authored
       configure.ac (inotify): New option.
       (HAVE_INOTIFY): Test for inotify.
       src/termhooks.h (enum event_kind) [HAVE_INOTIFY]: Add
       src/lisp.h (syms_of_inotify) [HAVE_INOTIFY]: Add prototype.
       src/keyboard.c (Qfile_inotify) [HAVE_INOTIFY]: New variable.
       (syms_of_keyboard): DEFSYM it.
       (kbd_buffer_get_event) [HAVE_INOTIFY]: Generate FILE_NOTIFY_EVENT.
       (make_lispy_event): Support FILE_NOTIFY_EVENT by generating
       Qfile_inotify events.
       (keys_of_keyboard) [HAVE_INOTIFY]: Bind file-inotify events in
       special-event-map to inotify-handle-event.
       src/emacs.c (main) [HAVE_INOTIFY]: Call syms_of_inotify.
       src/Makefile.in (base_obj): Add inotify.o.
       src/inotify.c: New file.
       lisp/subr.el (inotify-event-p, inotify-handle-event): New functions.
       test/automated/inotify-test.el: New test.
    • Stefan Monnier's avatar
  7. 09 Dec, 2012 4 commits
  8. 08 Dec, 2012 2 commits