1. 12 Sep, 2013 9 commits
    • Glenn Morris's avatar
      Update some function declarations · 16d9f896
      Glenn Morris authored
      * calc/calc-help.el (Info-goto-node):
      * progmodes/cperl-mode.el (Info-find-node):
      * vc/ediff.el (Info-goto-node): Update declarations.
    • Glenn Morris's avatar
      Silence some vc- compilation warnings · 96b3f75a
      Glenn Morris authored
      * vc/vc-bzr.el (vc-exec-after): Remove unused declaration.
      (vc-compilation-mode): Declare.
      (vc-bzr-pull): Require vc-dispatcher.
      * vc/vc-git.el (vc-compilation-mode): Declare.
      (vc-git-pull): Require vc-dispatcher.
    • Glenn Morris's avatar
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Fix some minor shell.el oddness related to usage of error and message · 8c05cb10
      Glenn Morris authored
      * lisp/shell.el (shell-directory-tracker): Output error as a message
      rather than just returning it as a string.
      (shell-process-pushd): Remove useless use of message.
    • Glenn Morris's avatar
      Use with-demoted-errors now that it can format any error messages · 30213927
      Glenn Morris authored
      * dframe.el (dframe-timer-fn):
      * files.el (dir-locals-read-from-file):
      * mpc.el (mpc--status-timer-run, mpc--status-idle-timer-run, mpc-format):
      * reveal.el (reveal-post-command):
      * saveplace.el (load-save-place-alist-from-file):
      * shell.el (shell-resync-dirs):
      * w32-common-fns.el (x-get-selection-value):
      * emacs-lisp/copyright.el (copyright-find-copyright):
      * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info):
      * emulation/tpu-edt.el (tpu-copy-keyfile):
      * play/bubbles.el (bubbles--mark-neighbourhood):
      * progmodes/executable.el (executable-make-buffer-file-executable-if-script-p):
      * term/pc-win.el (x-get-selection-value): Use with-demoted-errors.
    • Stefan Monnier's avatar
      Cleanup Eshell to rely less on dynamic scoping. · 170266d0
      Stefan Monnier authored
      * lisp/eshell/esh-opt.el (eshell-eval-using-options): Don't bind usage-msg,
      last-value, and ext-command here.  Bind `args' closer to `body'.
      (temp-args, last-value, usage-msg, ext-command, args): Don't defvar.
      (eshell--args): Declare new dynamic var.
      (eshell-do-opt): Add argument `args'.  Bind our own usage-msg,
      last-value, and ext-command.  Pass `args' to `body'.
      (eshell-process-args): Bind eshell--args.
      (eshell-set-option): Use eshell--args.
      * lisp/eshell/eshell.el (eshell): Use derived-mode-p.
      * lisp/eshell/esh-var.el (eshell-parse-variable): Use backquote.
      (eshell-parse-variable-ref): Remove unused vars `end' and `err'.
      (eshell-glob-function): Declare.
      * lisp/eshell/esh-util.el: Require cl-lib.
      (eshell-read-hosts-file): Avoid add-to-list.
      * lisp/eshell/esh-cmd.el (eshell-parse-lisp-argument): Remove unused var
      * lisp/eshell/em-unix.el (compilation-scroll-output, locate-history-list):
      (eshell/diff): Remove unused var `err'.
      * lisp/eshell/em-rebind.el (eshell-delete-backward-char): Remove unused arg
      * lisp/eshell/em-pred.el (eshell-parse-modifiers): Remove unused var `err'.
      * lisp/eshell/em-ls.el (eshell-ls-highlight-alist): Move defvars before
      first use.
      * lisp/eshell/em-glob.el (eshell-glob-matches, message-shown):
      Move declaration before first use.
      * lisp/eshell/em-alias.el (eshell-maybe-replace-by-alias): Use backquotes.
      * autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since we
      rely on cl-return.
    • Stefan Monnier's avatar
    • Glenn Morris's avatar
      * lisp/term/ns-win.el (global-map): Remove binding for ispell-next, · 56834f3b
      Glenn Morris authored
      deleted 1999-05-29.
      Fixes: debbugs:15357
  2. 11 Sep, 2013 27 commits
    • Xue Fuqiao's avatar
      Character properties fix in lispref. · 44ee2147
      Xue Fuqiao authored
      * doc/lispref/nonascii.texi (Character Properties): Character properties fix
      for decimal-digit-value and digit-value.
    • Glenn Morris's avatar
      Comment · aab6e902
      Glenn Morris authored
    • Glenn Morris's avatar
    • Glenn Morris's avatar
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      * lisp/vc/vc-cvs.el (cvs-append-to-ignore): Fix arg spec. · d3506ca5
      Glenn Morris authored
      Check cvs-sort-ignore-file is bound.
    • Glenn Morris's avatar
      * src/emacs.c (usage_message): Possessive apostrophe tweak. · 5ec0337a
      Glenn Morris authored
      Likewise in some comments.
    • Glenn Morris's avatar
    • Dmitry Antipov's avatar
      * nsterm.m (syms_of_nsterm): Use Qns. · 8d2db8be
      Dmitry Antipov authored
      * w32fns.c (Fx_open_connection): Remove old '#if 0' code.
      * w32term.c (w32_create_terminal, syms_of_w32term): Use Qw32.
      * xfns.c (x_display_info_for_name, Fx_open_connection):
      Remove old '#if 0' code.
      (syms_of_xfns): Use Qx.
    • Stefan Monnier's avatar
      * lisp/eshell/esh-mode.el (eshell-mode-syntax-table): Fix up initialization. · 656bd483
      Stefan Monnier authored
      (eshell-self-insert-command, eshell-send-invisible): Remove
      unused argument.
      (eshell-handle-control-codes): Remove unused var `orig'.
      Avoid delete-backward-char.
      Fixes: debbugs:15338
    • Xue Fuqiao's avatar
      Minor fixes for ido.texi. · 412a0972
      Xue Fuqiao authored
      * doc/misc/ido.texi (Interactive Substring Matching): Use @key{RET}
      instead of @kbd{RET}.
      (Prefix Matching): Add an index.
    • Dmitry Antipov's avatar
      * termhooks.h (fullscreen_hook): Remove the leftover. · fb55b9d1
      Dmitry Antipov authored
      (struct terminal): Fix typo in comment.
    • Dmitry Antipov's avatar
      Cleaning up a few X scroll bar bits. · 927eec55
      Dmitry Antipov authored
      * termhooks.h (enum scroll_bar_part): Add scroll_bar_nowhere member.
      * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS && USE_LUCID]:
      New member last_seen_part, going to replace...
      * xterm.c [USE_TOOLKIT_SCROLL_BARS]: ...global last_scroll_bar_part.
      (xt_action_hook) [USE_LUCID]: Adjust user.
      (xm_scroll_callback, xg_scroll_callback): Do not bloat with
      Lucid-specific scroll bar support.
      (xaw_jump_callback, xaw_scroll_callback): Prefer enum scroll_par_part
      to int and adjust to use last_seen_part member.
      (x_set_toolkit_scroll_bar_thumb) [USE_LUCID]: Adjust user.
      (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS && USE_LUCID]:
      Initialize last_seen_part.
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      * src/insdel.c (insert_from_buffer_1): Don't mark buffer as modified when · 71b28baa
      Stefan Monnier authored
      insert-buffer-substring an empty string.
    • Paul Eggert's avatar
      * xdisp.c (Ftool_bar_lines_needed): Declare as 'const' if ifdeffed out, · f5dacaae
      Paul Eggert authored
      avoiding a GCC warning.
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · 16471df3
      Glenn Morris authored
    • Dmitry Antipov's avatar
      Ifdef away frame tool bar code when it is not really used. · 742516e0
      Dmitry Antipov authored
      * frame.h (struct frame) [HAVE_WINDOW_SYSTEM && !USE_GTK && !HAVE_NS]:
      Move tool_bar_window, desired_tool_bar_string, current_tool_bar_string
      and minimize_tool_bar_window_p under the above.
      (fset_current_tool_bar_string, fset_desired_tool_bar_string)
      (fset_tool_bar_window): Likewise.
      * dispnew.c (clear_current_matrices, clear_desired_matrices)
      (adjust_frame_glyphs_for_window_redisplay, free_glyphs, update_frame)
      * window.c (window_from_coordinates, Frecenter): Adjust users.
      * window.h (WINDOW_TOOL_BAR_P): Define to zero when frame tool bar
      code is not really used.
      * xdisp.c (build_desired_tool_bar_string, display_tool_bar_line)
      (tool_bar_lines_needed, MAX_FRAME_TOOL_BAR_HEIGHT, tool_bar_item_info)
      (get_tool_bar_item, handle_tool_bar_click, note_tool_bar_highlight)
      [!USE_GTK && !HAVE_NS]: Define as such.
      (Ftool_bar_lines_needed, redisplay_tool_bar, show_mouse_face)
      (note_mouse_highlight, expose_frame):
      * xfns.c (x_set_tool_bar_lines):
      * xterm.c (handle_one_xevent): Adjust users.
    • Paul Eggert's avatar
      Fix corruption with multiple emacsclient -t instances. · 73f82c7e
      Paul Eggert authored
      This bug was introduced by my 2013-08-26 patch, which incorrectly
      assumed that the terminfo implementation doesn't use termcap buffers.
      * term.c (init_tty) [TERMINFO]: Remove optimization, as
      these buffers apparently are used after all.
      * termchar.h (TERMCAP_BUFFER_SIZE) [TERMINFO]: Define here too.
      (struct tty_display_info): Define members termcap_term_buffer and
      termcap_strings_buffer even if TERMINFO.
      Fixes: debbugs:15222
    • Dmitry Antipov's avatar
      Fix last change. · 53482f41
      Dmitry Antipov authored
      * data.c (Feqlsign, Flss, Fgtr, Fleq, Fgeq): Add convenient
      'usage' docstring entry to pacify make-docfile.
    • Glenn Morris's avatar
      Improve previous interpreter-mode-alist change · 2a08047a
      Glenn Morris authored
      * lisp/files.el (interpreter-mode-alist): Remove \\` \\' parts.
      (set-auto-mode): Don't regexp-quote elements.
      * lisp/progmodes/python.el (interpreter-mode-alist): Remove \\` \\'.
      * lisp/progmodes/cc-mode.el (interpreter-mode-alist):
      * lisp/progmodes/ruby-mode.el (interpreter-mode-alist):
      Revert previous change.
      * etc/NEWS: Update.
    • Glenn Morris's avatar
      Comment formatting · cb559258
      Glenn Morris authored
    • Barry O'Reilly's avatar
      Change comparison functions =, <, >, <=, >= to take many arguments. · ebb99847
      Barry O'Reilly authored
      * src/data.c: Change comparison functions' interface and
      * src/lisp.h: Make arithcompare available for efficient two arg
      * src/bytecode.c: Use arithcompare
      * src/fileio.c: Use new interface
      * test/automated/data-tests.el: New tests for comparison functions
      * etc/NEWS
    • Stefan Monnier's avatar
      Use define-derived-mode (and derived-mode-p). · 1b3b87df
      Stefan Monnier authored
      * lisp/play/snake.el (snake-mode):
      * lisp/play/mpuz.el (mpuz-mode):
      * lisp/play/landmark.el (lm-mode):
      * lisp/play/blackbox.el (blackbox-mode):
      * lisp/play/5x5.el (5x5-mode):
      * lisp/obsolete/options.el (Edit-options-mode):
      * lisp/net/quickurl.el (quickurl-list-mode):
      * lisp/net/newst-treeview.el (newsticker-treeview-mode):
      * lisp/mail/rmailsum.el (rmail-summary-mode):
      * lisp/mail/mspools.el (mspools-mode):
      * lisp/locate.el (locate-mode):
      * lisp/ibuffer.el (ibuffer-mode):
      * lisp/emulation/ws-mode.el (wordstar-mode):
      * lisp/emacs-lisp/debug.el (debugger-mode):
      * lisp/array.el (array-mode):
      * lisp/net/eudc.el (eudc-mode): Use define-derived-mode.
      * lisp/net/mairix.el (mairix-searches-mode-font-lock-keywords):
      Move initialization into declaration.
      (mairix-searches-mode): Use define-derived-mode.
      * lisp/net/eudc-hotlist.el (eudc-hotlist-mode): Use define-derived-mode.
      (eudc-edit-hotlist): Use dolist.
      * lisp/man.el (Man-mode-syntax-table): Rename from man-mode-syntax-table.
      (Man-mode): Use define-derived-mode.
      * lisp/info.el (Info-edit-mode-map): Rename from Info-edit-map.
      (Info-edit-mode): Use define-derived-mode.
      (Info-cease-edit): Use Info-mode.
      * lisp/eshell/esh-mode.el (eshell-mode-syntax-table): Move initialization
      into declaration.
      (eshell-mode): Use define-derived-mode.
      * lisp/chistory.el (command-history-mode-map): Rename from
      (command-history-mode): Use define-derived-mode.
      * lisp/calc/calc.el (calc-trail-mode-map): New var.
      (calc-trail-mode): Use define-derived-mode.
      (calc-trail-buffer): Set calc-main-buffer manually.
      * lisp/bookmark.el (bookmark-insert-annotation): New function.
      (bookmark-edit-annotation): Use it.
      (bookmark-edit-annotation-mode): Make it a proper major mode.
      (bookmark-send-edited-annotation): Use derived-mode-p.
      * lisp/arc-mode.el (archive-mode): Move kill-all-local-variables a tiny bit
      closer to its ideal place.  Use \' to match EOS.
      * lisp/cedet/semantic/grammar.el (semantic-grammar-mode): Use define-derived-mode.
      (semantic-grammar-mode-syntax-table): Rename from
      (semantic-grammar-mode-map): Rename from semantic-grammar-map.
      * lisp/cedet/data-debug.el (data-debug-mode-map): Rename from data-debug-map.
      (data-debug-mode): Use define-derived-mode.
      * lisp/gnus/score-mode.el (gnus-score-mode-map): Move initialization
      into declaration.
      (gnus-score-mode): Use define-derived-mode.
      * lisp/gnus/gnus-srvr.el (gnus-browse-mode): Use define-derived-mode.
      * lisp/gnus/gnus-kill.el (gnus-kill-file-mode-map): Move initialization
      into declaration.
      (gnus-kill-file-mode): Use define-derived-mode.
      (gnus-kill-file-edit-file, gnus-kill-file-enter-kill, gnus-kill):
      Use derived-mode-p.
      * lisp/gnus/gnus-group.el (gnus-group-mode): Use define-derived-mode.
      (gnus-group-setup-buffer, gnus-group-name-at-point)
      (gnus-group-make-web-group, gnus-group-enter-directory)
      (gnus-group-suspend): Use derived-mode-p.
      * lisp/gnus/gnus-cus.el (gnus-custom-mode): Use define-derived-mode.
      * lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode): Use define-derived-mode.
      * lisp/gnus/gnus-art.el (gnus-article-mode): Use define-derived-mode.
      (gnus-article-setup-buffer, gnus-article-prepare)
      (gnus-article-prepare-display, gnus-sticky-article)
      (gnus-kill-sticky-article-buffer, gnus-kill-sticky-article-buffers)
      (gnus-bind-safe-url-regexp, gnus-article-check-buffer)
      (gnus-article-read-summary-keys): Use derived-mode-p.
    • Stefan Monnier's avatar
      * keyboard.c (read_char): Fix last change. · 765da53c
      Stefan Monnier authored
      Fixes: debbugs:15332
    • Stefan Monnier's avatar
      * src/keyboard.c (read_char): Don't break immediate_echo. · 533f258f
      Stefan Monnier authored
      Fixes: debbugs:15332
    • Stefan Monnier's avatar
  3. 10 Sep, 2013 4 commits