1. 02 Sep, 2012 2 commits
    • Juri Linkov's avatar
      Toggle whitespace matching mode with M-s SPC. · 63dd1c6f
      Juri Linkov authored
      http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00008.html
      
      * lisp/isearch.el (search-whitespace-regexp): Doc fix.
      Remove cons cell customization.
      (isearch-mode-map): Bind "\M-s " to isearch-toggle-lax-whitespace.
      (isearch-lax-whitespace, isearch-regexp-lax-whitespace):
      New variables.
      (isearch-forward, isearch-forward-regexp): Doc fix.
      (isearch-toggle-lax-whitespace): New command.
      (search-forward-lax-whitespace, search-backward-lax-whitespace)
      (re-search-forward-lax-whitespace)
      (re-search-backward-lax-whitespace): New functions.
      (isearch-whitespace-regexp): Remove function.
      (isearch-query-replace): Let-bind replace-search-function and
      replace-re-search-function.
      (isearch-occur): Let-bind search-spaces-regexp according to the
      value of isearch-lax-whitespace and isearch-regexp-lax-whitespace.
      (isearch-quote-char): Check isearch-regexp-lax-whitespace in the
      condition for C-q SPC.
      (isearch-search-fun-default): Use new functions mentioned above.
      (isearch-search-forward, isearch-search-backward): Remove functions.
      (isearch-search): Don't let-bind search-spaces-regexp.
      (isearch-lazy-highlight-space-regexp): Remove variable.
      (isearch-lazy-highlight-lax-whitespace)
      (isearch-lazy-highlight-regexp-lax-whitespace): New variables.
      (isearch-lazy-highlight-new-loop): Use them.
      (isearch-lazy-highlight-search): Don't let-bind search-spaces-regexp.
      63dd1c6f
    • Chong Yidong's avatar
  2. 01 Sep, 2012 1 commit
    • Paul Eggert's avatar
      Better seed support for (random). · 0e23ef9d
      Paul Eggert authored
      * doc/lispref/numbers.texi (Random Numbers): Document new behavior of
      the calls (random) and (random STRING).
      * etc/NEWS: Document new behavior of (random), (random "string").
      * lisp/play/5x5.el, lisp/play/animate.el, lisp/play/cookie1.el:
      * lisp/play/dissociate.el, lisp/play/doctor.el, lisp/play/dunnet.el:
      * lisp/play/gomoku.el, lisp/play/landmark.el, lisp/play/mpuz.el:
      * lisp/play/tetris.el, lisp/play/zone.el:
      * lisp/calc/calc-comb.el (math-init-random-base):
      * lisp/play/blackbox.el (bb-init-board):
      * lisp/play/life.el (life):
      * lisp/server.el (server-use-tcp):
      * lisp/type-break.el (type-break):
      Remove unnecessary call to (random t).
      * lisp/net/sasl.el (sasl-unique-id-function):
      Change (random t) to (random), now that the latter is more random.
      * lisp/play/life.el (life-initialized): Remove no-longer-needed var.
      * lisp/gnus/gnus-sync.el (gnus-sync-lesync-setup):
      * lisp/gnus/message.el (message-canlock-generate, message-unique-id):
      Change (random t) to (random), now that the latter is more random.
      * lisp/org/org-id.el (org-id-uuid):
      Change (random t) to (random), now that the latter is more random.
      * src/emacs.c (main): Call init_random.
      * src/fns.c (Frandom): Set the seed from a string argument, if given.
      Remove long-obsolete Gentzel cruft.
      * src/lisp.h, src/sysdep.c (seed_random): Now takes address and size, not long.
      (init_random): New function.
      0e23ef9d
  3. 30 Aug, 2012 1 commit
  4. 29 Aug, 2012 2 commits
  5. 26 Aug, 2012 4 commits
    • Chong Yidong's avatar
      Make special-display-* and display-buffer-reuse-frames obsolete. · 77f1f99c
      Chong Yidong authored
      * lisp/window.el (special-display-regexps, special-display-frame-alist)
      (special-display-buffer-names, special-display-function)
      (display-buffer-reuse-frames): Mark as obsolete.
      
      * lisp/progmodes/compile.el: Don't use display-buffer-reuse-frames.
      
      * help.el (help-print-return-message): Don't treat
      display-buffer-reuse-frames specially.
      77f1f99c
    • Paul Eggert's avatar
      Spelling fixes. · 8b2e00a3
      Paul Eggert authored
      * Makefile.in (.PHONY): versioclean -> versionclean.
      8b2e00a3
    • Chong Yidong's avatar
      Clean up gdb-mi's usage of display-buffer. · d97af5a0
      Chong Yidong authored
      * progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): New
      variable, replacing gdb-frame-parameters.
      (gdb-frame-io-buffer, gdb-frame-breakpoints-buffer)
      (gdb-frame-threads-buffer, gdb-frame-memory-buffer)
      (gdb-frame-disassembly-buffer, gdb-frame-stack-buffer)
      (gdb-frame-locals-buffer, gdb-frame-registers-buffer): Use it.
      (def-gdb-frame-for-buffer): Macro deleted.  It is easier to define
      the functions directly with gdb-display-buffer-other-frame-action.
      (gdb-display-breakpoints-buffer, gdb-display-threads-buffer)
      (gdb-display-memory-buffer, gdb-display-disassembly-buffer)
      (gdb-display-stack-buffer, gdb-display-locals-buffer)
      (gdb-display-registers-buffer): Define directly.
      (def-gdb-display-buffer): Macro deleted.
      (gdb-display-buffer): Remove second and third args, callers don't
      use them.  Defer to the default display-buffer behavior, apart
      from making windows dedicated.
      (gdb-setup-windows): Don't call display-buffer unnecessarily.
      
      * window.el (display-buffer-pop-up-frame): Handle a
      pop-up-frame-parameters alist entry.
      (display-buffer): Document it.
      
      * progmodes/gud.el (gud-display-line): Just use display-buffer.
      d97af5a0
    • Chong Yidong's avatar
      Make ordinary isearch obey search-whitespace-regexp too. · dd7ffad6
      Chong Yidong authored
      * lisp/isearch.el (search-whitespace-regexp): Make string and nil
      values apply to both ordinary and regexp search.  Allow a cons
      cell value to distinguish between the two.
      (isearch-whitespace-regexp, isearch-search-forward)
      (isearch-search-backward): New functions.
      (isearch-occur, isearch-search-fun-default, isearch-search)
      (isearch-lazy-highlight-new-loop): Use them.
      (isearch-forward, isearch-forward-regexp): Doc fix.
      dd7ffad6
  6. 22 Aug, 2012 1 commit
  7. 18 Aug, 2012 1 commit
    • Chong Yidong's avatar
      Add yank-handled-properties; use it for `font-lock-face' and `category' · 2170b1bd
      Chong Yidong authored
      properties, instead of hard-coding these properties' special handling.
      
      * lisp/simple.el (yank-handled-properties): New defcustom.
      (yank-excluded-properties): Add font-lock-face and category.
      (yank): Doc fix.
      
      * lisp/subr.el (remove-yank-excluded-properties): Obey
      yank-handled-properties.  The special handling of font-lock-face
      and category is now done this way, instead of being hard-coded.
      (insert-for-yank-1): Remove font-lock-face handling.
      (yank-handle-font-lock-face-property)
      (yank-handle-category-property): New function.
      2170b1bd
  8. 15 Aug, 2012 4 commits
  9. 13 Aug, 2012 1 commit
  10. 10 Aug, 2012 2 commits
  11. 08 Aug, 2012 2 commits
  12. 06 Aug, 2012 2 commits
  13. 05 Aug, 2012 2 commits
  14. 03 Aug, 2012 2 commits
    • Eli Zaretskii's avatar
      Support symlinks on latest versions of MS-Windows. · 6dad7178
      Eli Zaretskii authored
       src/w32.c: Include winioctl.h and aclapi.h.
       (is_symlink, chase_symlinks, enable_privilege, restore_privilege)
       (revert_to_self): Forward declarations of static functions.
       <static BOOL g_b_init_get_security_info>:
       <g_b_init_create_symbolic_link>: New static flags.
       (globals_of_w32): Initialize them to zero.
       (GetSecurityInfo_Proc, CreateSymbolicLink_Proc): New typedefs.
       (map_w32_filename): Improve commentary.  Simplify switch.
       (SYMBOLIC_LINK_FLAG_DIRECTORY): Define if not defined in system
       headers (most versions of MinGW w32api don't).
       (get_security_info, create_symbolic_link)
       (get_file_security_desc_by_handle, is_symlink, chase_symlinks):
       New functions.
       (sys_access, sys_chmod): Call 'chase_symlinks' to resolve symlinks
       in the argument file name.
       (sys_access): Call unc_volume_file_attributes only if
       GetFileAttributes fails with network-related error codes.
       (sys_rename): Diagnose renaming of a symlink when the user doesn't
       have the required privileges.
       (get_file_security_desc_by_name): Renamed from
       get_file_security_desc.
       (stat_worker): New function, with most of the guts of 'stat', and
       with addition of handling of symlinks and support for 'lstat'.  If
       possible, get file's attributes and security information by
       handle, not by name.  Produce S_IFLNK bit for symlinks, when
       called from 'lstat'.
       (stat, lstat): New functions, call 'stat_worker'.
       (symlink, readlink, careadlinkat): Rewritten to create and resolve
       symlinks when the underlying filesystem supports them.
      
       lib/src/ntlib.c (lstat): New function, calls 'stat'.
      
       nt/inc/sys/stat.h (S_IFLNK): Define.
       (S_ISLNK): A non-trivial definition.
       (lstat): Prototype instead of a macro that redirects to 'stat'.
      
       lisp/files.el (file-truename): Don't skip symlink-chasing part on
       windows-nt.  Incorporate the resolution of 8+3 short aliases on
       Windows into the loop that recursively chases symlinks.  Compare
       directory and its parent case-insensitively on MS-Windows and
       MS-DOS.
      
       etc/NEWS: Announce the symlink support on MS-Windows.
      6dad7178
    • Chong Yidong's avatar
      Add NEWS entry for last change. · f85f636a
      Chong Yidong authored
      f85f636a
  15. 29 Jul, 2012 2 commits
    • Paul Eggert's avatar
      deactive->inactive, inactivate->deactivate spelling fixes (Bug#10150) · 72b255c7
      Paul Eggert authored
      * NEWS: Document these changes.
      * leim/quail/uni-input.el (ucs-input-deactivate):
      Rename from ucs-input-inactivate.
      * leim/quail/hangul.el (hangul-input-method-deactivate):
      Rename from hangul-input-method-inactivate.
      * emulation/viper-init.el (viper-deactivate-input-method-action):
      Rename from viper-inactivate-input-method-action.
      (viper-deactivate-input-method):
      Rename from viper-inactivate-input-method.
      * lisp/follow.el (follow-inactive-menu): Rename from follow-deactive-menu.
      * lisp/international/mule-cmds.el (deactivate-input-method):
      Rename from inactivate-input-method.
      Also run input-method-deactivate-hook.
      (deactivate-current-input-method-function):
      Rename from inactivate-current-input-method-function.
      (input-method-deactivate-hook): New hook.
      (input-method-inactivate-hook): Mark obsolete.
      * lisp/international/quail.el (quail-activate):
      Also run quail-deactivate-hook.
      (quail-deactivate): Rename from quail-inactivate.
      * lisp/international/robin.el (robin-activate):
      Also run robin-deactivate-hook.
      (robin-deactivate): Rename from robin-inactivate.
      72b255c7
    • Juri Linkov's avatar
      * lisp/simple.el (async-shell-command-buffer): New defcustom. · 17711ed9
      Juri Linkov authored
      (shell-command): Use it.
      
      Fixes: debbugs:4719
      17711ed9
  16. 28 Jul, 2012 2 commits
  17. 26 Jul, 2012 1 commit
    • Stefan Monnier's avatar
      Autoload more carefully from Lisp. Follow aliases for function properties. · 7abaf5cc
      Stefan Monnier authored
      * lisp/subr.el (autoloadp): New function.
      (symbol-file): Use it.
      (function-get): New function.
      * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Use function-get and
      autoload-do-load.
      * lisp/emacs-lisp/lisp-mode.el (lisp-font-lock-syntactic-face-function)
      (lisp-indent-function):
      * lisp/emacs-lisp/gv.el (gv-get):
      * lisp/emacs-lisp/edebug.el (get-edebug-spec, edebug-basic-spec):
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-form):
      * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn):
      * lisp/emacs-lisp/autoload.el (make-autoload, autoload-print-form):
      Use function-get.
      * lisp/emacs-lisp/cl.el: Don't propagate function properties any more.
      
      * src/eval.c (Fautoload_do_load): Rename from do_autoload, export to Lisp,
      add argument, tune behavior, and adjust all callers.
      
      * lisp/speedbar.el (speedbar-add-localized-speedbar-support):
      * lisp/emacs-lisp/disass.el (disassemble-internal):
      * lisp/desktop.el (desktop-load-file):
      * lisp/help-fns.el (help-function-arglist, find-lisp-object-file-name)
      (describe-function-1):
      * lisp/emacs-lisp/find-func.el (find-function-noselect):
      * lisp/emacs-lisp/elp.el (elp-instrument-function):
      * lisp/emacs-lisp/advice.el (ad-has-proper-definition):
      * lisp/apropos.el (apropos-safe-documentation, apropos-macrop):
      * lisp/emacs-lisp/debug.el (debug-on-entry):
      * lisp/emacs-lisp/cl-macs.el (cl-compiler-macroexpand):
      * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand):
      * lisp/calc/calc.el (name): Use autoloadp & autoload-do-load.
      7abaf5cc
  18. 22 Jul, 2012 1 commit
  19. 18 Jul, 2012 2 commits
  20. 17 Jul, 2012 3 commits
    • Juri Linkov's avatar
      * lisp/dired-aux.el (dired-do-async-shell-command): Doc fix. · 6dafa0d5
      Juri Linkov authored
      (dired-do-async-shell-command): Don't add `*' at the end of the
      command (Bug#11815).
      (dired-do-shell-command): Doc fix.
      (dired-shell-stuff-it): Strip the trailing "&" and ";" if any.
      Join the individual commands using either "&" or ";" as the
      separator depending on the values of these trailing characters.
      At the end re-add the trailing "&".  (Bug#10598)
      
      * lisp/simple.el (async-shell-command): Sync the interactive spec with
      `shell-command'.  Doc fix.
      (shell-command): Doc fix.
      6dafa0d5
    • Chong Yidong's avatar
      Document insert-char changes. · 9ea10cc3
      Chong Yidong authored
      * doc/emacs/basic.texi (Inserting Text): Replace ucs-insert with
      insert-char.  Provide more details of input.
      
      * doc/lispref/mule.texi (International Chars, Input Methods): Likewise.
      
      * doc/lispref/text.texi (Insertion): Document insert-char changes.
      
      * src/editfns.c (Finsert_char): Doc fix.
      9ea10cc3
    • René Kyllingstad's avatar
      Make insert-char interactive, and ucs-insert an obsolete alias for it. · ddfc8813
      René Kyllingstad authored
      * lisp/international/mule-cmds.el (ucs-insert): Make it an obsolete
      alias for insert-char.
      
      * editfns.c (Finsert_char): Make it interactive, and make the second
      arg optional.  Copy interactive spec and docstring from ucs-insert.
      ddfc8813
  21. 15 Jul, 2012 1 commit
  22. 14 Jul, 2012 1 commit