1. 13 Apr, 2015 1 commit
  2. 01 Jan, 2015 2 commits
  3. 22 Dec, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/completion.el: Use post-self-insert-hook. · b366b3bb
      Stefan Monnier authored
      Fixes: debbugs:19400
      
      (completion-separator-self-insert-command)
      (completion-separator-self-insert-autofilling): Remove.
      (completion-separator-chars): New var.
      (completion-c-mode-hook, completion-setup-fortran-mode): Use it instead
      of changing the keymap.
      (completion--post-self-insert): New function.
      (dynamic-completion-mode): Use it instead of rebinding keys.
      (cmpl--completion-string): Rename from completion-string.
      (add-completion-to-head, delete-completion): Let-bind it explicitly.
      b366b3bb
  4. 29 Oct, 2014 1 commit
    • Paul Eggert's avatar
      Simplify use of current-time and friends. · 123ddec7
      Paul Eggert authored
      * doc/misc/org.texi (Dynamic blocks):
      * lisp/allout-widgets.el (allout-widgets-hook-error-handler):
      * lisp/calendar/appt.el (appt-display-message):
      * lisp/calendar/icalendar.el (icalendar--convert-float-to-ical):
      * lisp/calendar/timeclock.el (timeclock-in, timeclock-when-to-leave)
      (timeclock-last-period, timeclock-day-base):
      * lisp/eshell/em-ls.el (eshell-ls-file):
      * lisp/eshell/esh-util.el (eshell-parse-ange-ls):
      * lisp/generic-x.el (named-database-print-serial):
      * lisp/net/newst-backend.el (newsticker--get-news-by-url-callback)
      (newsticker-get-news, newsticker--sentinel-work)
      (newsticker--image-get, newsticker--image-sentinel):
      * lisp/net/tramp-sh.el (tramp-get-remote-touch):
      * lisp/progmodes/opascal.el (opascal-debug-log):
      * lisp/textmodes/remember.el (remember-mail-date)
      (remember-store-in-files):
      * lisp/vc/vc-annotate.el (vc-annotate-display-autoscale)
      (vc-default-annotate-current-time):
      * lisp/vc/vc-bzr.el (vc-bzr-shelve-snapshot):
      * lisp/vc/vc-cvs.el (vc-cvs-annotate-current-time):
      * lisp/vc/vc-rcs.el (vc-rcs-annotate-current-time):
      * lisp/url/url-util.el (url-get-normalized-date):
      * lisp/erc/erc-backend.el (TOPIC):
      * lisp/gnus/gnus-delay.el (gnus-delay-article):
      * lisp/gnus/gnus-sum.el (gnus-summary-read-document):
      * lisp/gnus/gnus-util.el (gnus-seconds-today, gnus-seconds-month):
      * lisp/gnus/message.el (message-make-expires-date):
      * lisp/org/org-archive.el (org-archive-subtree)
      (org-archive-to-archive-sibling):
      * lisp/org/org-clock.el (org-resolve-clocks, org-clock-get-sum-start)
      (org-clock-special-range):
      * lisp/org/org-timer.el (org-timer-seconds):
      * lisp/org/org.el (org-read-date-analyze, org-get-cursor-date):
      * lisp/org/ox-html.el (org-html-format-spec):
      * lisp/org/ox-icalendar.el (org-icalendar--vtodo):
      Omit unnecessary call to current-time.
      * lisp/calendar/time-date.el (time-to-seconds) [!float-time]:
      * lisp/calendar/timeclock.el (timeclock-time-to-date):
      * lisp/vc/vc-annotate.el (vc-annotate-convert-time):
      Use current time if arg is nil, to be compatible with float-time.
      (time-date--day-in-year): New function, with most of the guts of
      the old time-to-day-in-year.
      (time-to-day-in-year): Use it.
      (time-to-days): Use it, to avoid decoding the same time stamp twice.
      * lisp/calendar/timeclock.el (timeclock-update-mode-line):
      * lisp/cedet/srecode/args.el (srecode-semantic-handle-:time):
      * lisp/gnus/gnus-util.el (gnus-seconds-year):
      * lisp/org/org.el (org-get-cursor-date):
      Don't call current-time twice to get the current time stamp,
      as this can lead to inconsistent results.
      * lisp/completion.el (cmpl-hours-since-origin):
      * lisp/erc/erc.el (erc-emacs-time-to-erc-time):
      * lisp/ido.el (ido-time-stamp):
      * lisp/vc/vc-annotate.el (vc-annotate-convert-time):
      Simplify by using float-time.
      * lisp/completion.el (save-completions-to-file):
      * lisp/url/url-cache.el (url-cache-prune-cache):
      Rename local var to avoid confusion.
      * lisp/gnus/gnus-util.el (gnus-float-time):
      * lisp/net/rcirc.el (rcirc-float-time):
      * lisp/org/org-compat.el (org-float-time):
      Simplify to an alias because time-to-seconds now behaves like float-time
      with respect to nil arg.
      * lisp/subr.el (progress-reporter-do-update):
      Don't call float-time unless needed.
      * lisp/erc/erc.el (erc-current-time): Simplify by using erc-emacs-time-to-erc-time.
      * lisp/org/org-clock.el (org-clock-get-table-data): Omit unnecessary, lossy
      conversion from floating point to Emacs time and back.
      (org-resolve-clocks): Prefer two-argument floor.
      123ddec7
  5. 10 Feb, 2014 1 commit
  6. 01 Jan, 2014 1 commit
  7. 10 Aug, 2013 1 commit
  8. 05 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      Do not call to `selected-window' where it is assumed by default. · 290d5b58
      Dmitry Antipov authored
      Affected functions are `window-minibuffer-p', `window-dedicated-p',
      `window-hscroll', `window-width', `window-height', `window-buffer',
      `window-frame', `window-start', `window-point', `next-window'
      and `window-display-table'.
      * abbrev.el (abbrev--default-expand):
      * bs.el (bs--show-with-configuration):
      * buff-menu.el (Buffer-menu-mouse-select):
      * calc/calc.el (calc):
      * calendar/calendar.el (calendar-generate-window):
      * calendar/diary-lib.el (diary-simple-display, diary-show-all-entries)
      (diary-make-entry):
      * comint.el (send-invisible, comint-dynamic-complete-filename)
      (comint-dynamic-simple-complete, comint-dynamic-list-completions):
      * completion.el (complete):
      * dabbrev.el (dabbrev-expand, dabbrev--make-friend-buffer-list):
      * disp-table.el (describe-current-display-table):
      * doc-view.el (doc-view-insert-image):
      * ebuff-menu.el (Electric-buffer-menu-mouse-select):
      * ehelp.el (with-electric-help):
      * emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
      * emacs-lisp/edebug.el (edebug-two-window-p, edebug-pop-to-buffer):
      * emacs-lisp/helper.el (Helper-help-scroller):
      * emulation/cua-base.el (cua--post-command-handler-1):
      * eshell/esh-mode.el (eshell-output-filter):
      * ffap.el (ffap-gnus-wrapper):
      * help-macro.el (make-help-screen):
      * hilit-chg.el (highlight-compare-buffers):
      * hippie-exp.el (hippie-expand, try-expand-dabbrev-visible):
      * hl-line.el (global-hl-line-highlight):
      * icomplete.el (icomplete-simple-completing-p):
      * isearch.el (isearch-done):
      * jit-lock.el (jit-lock-stealth-fontify):
      * mail/rmailsum.el (rmail-summary-scroll-msg-up):
      * lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling):
      * mpc.el (mpc-tagbrowser, mpc):
      * net/rcirc.el (rcirc-any-buffer):
      * play/gomoku.el (gomoku-max-width, gomoku-max-height):
      * play/landmark.el (landmark-max-width, landmark-max-height):
      * play/zone.el (zone):
      * progmodes/compile.el (compilation-goto-locus):
      * progmodes/ebrowse.el (ebrowse-view/find-file-and-search-pattern):
      * progmodes/etags.el (find-tag-other-window):
      * progmodes/fortran.el (fortran-column-ruler):
      * progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe):
      * progmodes/verilog-mode.el (verilog-point-text):
      * reposition.el (reposition-window):
      * rot13.el (toggle-rot13-mode):
      * server.el (server-switch-buffer):
      * shell.el (shell-dynamic-complete-command)
      (shell-dynamic-complete-environment-variable):
      * simple.el (insert-buffer, set-selective-display)
      (delete-completion-window):
      * speedbar.el (speedbar-timer-fn, speedbar-center-buffer-smartly)
      (speedbar-recenter):
      * startup.el (fancy-splash-head):
      * textmodes/ispell.el (ispell-command-loop):
      * textmodes/makeinfo.el (makeinfo-compilation-sentinel-region):
      * tutorial.el (help-with-tutorial):
      * vc/add-log.el (add-change-log-entry):
      * vc/compare-w.el (compare-windows):
      * vc/ediff-help.el (ediff-indent-help-message):
      * vc/ediff-util.el (ediff-setup-control-buffer, ediff-position-region):
      * vc/ediff-wind.el (ediff-skip-unsuitable-frames)
      (ediff-setup-control-frame):
      * vc/emerge.el (emerge-position-region):
      * vc/pcvs-util.el (cvs-bury-buffer):
      * window.el (walk-windows, mouse-autoselect-window-select):
      * winner.el (winner-set-conf, winner-undo): Related users changed.
      290d5b58
  9. 15 May, 2013 1 commit
    • Glenn Morris's avatar
      Misc custom group fixes · ed8be7ff
      Glenn Morris authored
      * cus-start.el (show-trailing-whitespace): Move to editing basics.
      * faces.el (trailing-whitespace): Don't use whitespace-faces group.
      * obsolete/old-whitespace.el (whitespace-faces): Remove group.
      (whitespace-highlight): Move to whitespace group.
      
      * comint.el (comint-source):
      * pcmpl-linux.el (pcmpl-linux):
      * shell.el (shell-faces):
      * eshell/esh-opt.el (eshell-opt):
      * international/ccl.el (ccl): Remove empty custom groups.
      
      * completion.el (dynamic-completion-mode):
      * jit-lock.el (jit-lock-debug-mode):
      * minibuffer.el (completion-in-region-mode):
      * type-break.el (type-break-mode-line-message-mode)
      (type-break-query-mode):
      * emulation/tpu-edt.el (tpu-edt-mode):
      * progmodes/subword.el (global-subword-mode, global-superword-mode):
      * progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
      * term/vt100.el (vt100-wide-mode): Specify explicit :group.
      
      * term/xterm.el (xterm): Change parent group to terminals.
      
      * master.el (master): Remove empty custom group.
      (master-mode): Remove unused :group argument.
      * textmodes/refill.el (refill): Remove empty custom group.
      (refill-mode): Remove unused :group argument.
      
      * textmodes/rst.el (rst-compile-toolsets): Use rst-compile group.
      
      * cedet/semantic/symref/list.el (semantic-symref-auto-expand-results)
      (semantic-symref-results-mode-hook)
      (semantic-symref-results-summary-function): Fix :group.
      
      * erc/erc-list.el (erc-list):
      * erc/erc-menu.el (erc-menu):
      * erc/erc-ring.el (erc-ring): Define custom groups, for define-erc-module.
      
      * gnus/shr-color.el (shr-color-visible-luminance-min)
      (shr-color-visible-distance-min): Use shr-color group.
      
      * url/url-news.el (url-news): Remove empty custom group.
      ed8be7ff
  10. 01 Jan, 2013 1 commit
  11. 25 Jul, 2012 1 commit
  12. 04 May, 2012 1 commit
    • Stefan Monnier's avatar
      Add new error and function `user-error'. · 71873e2b
      Stefan Monnier authored
      * lisp/subr.el (user-error): New function.
      * lisp/window.el (switch-to-buffer):
      * lisp/vc/smerge-mode.el (smerge-resolve-function, smerge-resolve)
      (smerge-match-conflict):
      * lisp/simple.el (previous-matching-history-element)
      (next-matching-history-element, goto-history-element, undo-more)
      (undo-start):
      * lisp/progmodes/etags.el (visit-tags-table-buffer, find-tag-tag)
      (find-tag-noselect, find-tag-in-order, etags-goto-tag-location)
      (next-file, tags-loop-scan, list-tags, complete-tag):
      * lisp/progmodes/compile.el (compilation-loop):
      * lisp/mouse.el (mouse-minibuffer-check):
      * lisp/man.el (Man-bgproc-sentinel, Man-goto-page):
      * lisp/info.el (Info-find-node-2, Info-extract-pointer, Info-history-back)
      (Info-history-forward, Info-follow-reference, Info-menu)
      (Info-extract-menu-item, Info-extract-menu-counting)
      (Info-forward-node, Info-backward-node, Info-next-menu-item)
      (Info-last-menu-item, Info-next-preorder, Info-last-preorder)
      (Info-next-reference, Info-prev-reference, Info-index)
      (Info-index-next, Info-follow-nearest-node)
      (Info-copy-current-node-name):
      * lisp/imenu.el (imenu--make-index-alist)
      (imenu-default-create-index-function, imenu-add-to-menubar):
      * lisp/files.el (basic-save-buffer, recover-file):
      * lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-continue, checkdoc-comments)
      (checkdoc-message-text, checkdoc-defun):
      * lisp/dabbrev.el (dabbrev-completion, dabbrev--abbrev-at-point):
      * lisp/cus-edit.el (customize-changed-options, customize-rogue)
      (customize-saved, custom-variable-set, custom-variable-mark-to-save)
      (custom-variable-mark-to-reset-standard)
      (custom-variable-reset-backup, custom-face-mark-to-reset-standard)
      (custom-file):
      * lisp/completion.el (check-completion-length):
      * lisp/comint.el (comint-search-arg)
      (comint-previous-matching-input-string-position)
      (comint-previous-matching-input)
      (comint-replace-by-expanded-history-before-point, comint-send-input)
      (comint-copy-old-input, comint-backward-matching-input)
      (comint-goto-process-mark, comint-set-process-mark):
      * lisp/calendar/calendar.el (calendar-cursor-to-date): Use it.
      * lisp/bindings.el (debug-ignored-errors): Remove regexps, add `user-error'.
      * src/data.c (PUT_ERROR): New macro.
      (syms_of_data): Use it.  Add new error type `user-error'.
      * src/undo.c (user_error): New function.
      (Fprimitive_undo): Use it.
      * src/print.c (print_error_message): Adjust print style for `user-error'.
      * src/keyboard.c (user_error): New function.
      (Fexit_recursive_edit, Fabort_recursive_edit): Use it.
      71873e2b
  13. 09 Apr, 2012 1 commit
  14. 08 Feb, 2012 1 commit
    • Glenn Morris's avatar
      Minor-mode doc fixes for ARG behavior · e1ac4066
      Glenn Morris authored
      * lisp/completion.el (dynamic-completion-mode):
      * lisp/dirtrack.el (dirtrack-debug-mode):
      * lisp/electric.el (electric-layout-mode):
      * lisp/epa-mail.el (epa-mail-mode, epa-global-mail-mode):
      * lisp/face-remap.el (text-scale-mode, buffer-face-mode):
      * lisp/iimage.el (iimage-mode):
      * lisp/image-mode.el (image-transform-mode):
      * lisp/minibuffer.el (completion-in-region-mode):
      * lisp/scroll-lock.el (scroll-lock-mode):
      * lisp/simple.el (next-error-follow-minor-mode):
      * lisp/tar-mode.el (tar-subfile-mode):
      * lisp/tooltip.el (tooltip-mode):
      * lisp/vcursor.el (vcursor-use-vcursor-map):
      * lisp/wid-browse.el (widget-minor-mode):
      * lisp/emulation/tpu-edt.el (tpu-edt-mode):
      * lisp/emulation/tpu-extras.el (tpu-cursor-free-mode):
      * lisp/international/iso-ascii.el (iso-ascii-mode):
      * lisp/language/thai-util.el (thai-word-mode):
      * lisp/mail/supercite.el (sc-minor-mode):
      * lisp/net/goto-addr.el (goto-address-mode):
      * lisp/net/rcirc.el (rcirc-multiline-minor-mode, rcirc-track-minor-mode):
      * lisp/progmodes/cwarn.el (cwarn-mode):
      * lisp/progmodes/flymake.el (flymake-mode):
      * lisp/progmodes/glasses.el (glasses-mode):
      * lisp/progmodes/hideshow.el (hs-minor-mode):
      * lisp/progmodes/pascal.el (pascal-outline-mode):
      * lisp/textmodes/enriched.el (enriched-mode):
      * lisp/vc/smerge-mode.el (smerge-mode):
      Doc fixes (minor mode argument).
      
      * etc/NEWS: Related markup.
      e1ac4066
  15. 11 Jan, 2012 1 commit
  16. 05 Jan, 2012 1 commit
  17. 19 Apr, 2011 1 commit
  18. 26 Jan, 2011 1 commit
  19. 25 Jan, 2011 1 commit
  20. 15 Jan, 2011 1 commit
  21. 02 Jan, 2011 1 commit
  22. 13 Jan, 2010 1 commit
  23. 02 Oct, 2009 1 commit
  24. 05 Jan, 2009 1 commit
  25. 25 Oct, 2008 1 commit
    • Juanma Barranquero's avatar
      * completion.el (add-completion-to-head, add-completion): Doc fixes. · ea6c930a
      Juanma Barranquero authored
        (completion-search-next, add-completions-from-file):
        Fix typos in docstrings.
      
      * filesets.el (filesets-menu-ensure-use-cached)
        (filesets-ingroup-patterns, filesets-filetype-property):
      * tutorial.el (get-lang-string):
      * play/gamegrid.el (gamegrid-score-file-length, gamegrid-add-score):
        Fix typos in docstrings.
      
      * image-dired.el (image-dired-dired-after-readin-hook): Doc fix.
        (image-dired-line-up-method, image-dired-thumb-size)
        (image-dired-cmd-write-exif-data-options, image-dired-write-tags)
        (image-dired-track-original-file, image-dired-track-thumbnail)
        (image-dired-dired-next-line, image-dired-dired-previous-line)
        (image-dired-write-comments): Reflow docstrings.
        (image-dired-show-all-from-dir-max-files)
        (image-dired-format-properties-string, image-dired-create-thumbs)
        (image-dired-mark-tagged-files, image-dired-gallery-generate):
        Fix typos in docstrings.
      
      * savehist.el (savehist-save-minibuffer-history, savehist-file)
        (savehist-additional-variables, savehist-ignored-variables)
        (savehist-file-modes, savehist-autosave-interval):
      * startup.el (inhibit-startup-echo-area-message, inhibit-default-init)
        (inhibit-startup-buffer-menu, mail-host-address, user-mail-address)
        (fancy-splash-image):
      * thumbs.el (thumbs-thumbsdir, thumbs-geometry, thumbs-relief)
        (thumbs-conversion-program, thumbs-margin):
        Remove spurious * in docstrings.
      ea6c930a
  26. 24 Oct, 2008 1 commit
    • Juanma Barranquero's avatar
      New function `locate-user-emacs-file'. · d6c180c4
      Juanma Barranquero authored
      * subr.el (locate-user-emacs-file): New function.
        (user-emacs-directory): Mention it in docstring.
      
      * completion.el (save-completions-file-name):
      * filesets.el (filesets-menu-cache-file):
      * image-dired.el (image-dired-dir, image-dired-db-file)
        (image-dired-temp-image-file, image-dired-gallery-dir)
        (image-dired-temp-rotate-image-file):
      * savehist.el (savehist-file):
      * server.el (server-auth-dir):
      * startup.el (auto-save-list-file-prefix):
      * thumbs.el (thumbs-thumbsdir):
      * tutorial.el (tutorial--saved-dir):
      * play/gamegrid.el (gamegrid-user-score-file-directory): Use it.
      
      * url.el (url-configuration-directory): Use `locate-user-emacs-file'.
      
      * NEWS: New function `locate-user-emacs-file'.
      d6c180c4
  27. 06 May, 2008 1 commit
  28. 07 Jan, 2008 1 commit
  29. 23 Sep, 2007 1 commit
  30. 17 Aug, 2007 1 commit
  31. 25 Jul, 2007 1 commit
  32. 13 Jun, 2007 1 commit
  33. 21 Jan, 2007 1 commit
  34. 05 Dec, 2006 1 commit
  35. 07 Oct, 2006 1 commit
  36. 06 Feb, 2006 1 commit
  37. 25 Jan, 2006 1 commit
  38. 02 Dec, 2005 1 commit
  39. 28 Nov, 2005 1 commit
    • Stefan Monnier's avatar
      Remove useless leading * in defcustom docstrings. · 36cc948e
      Stefan Monnier authored
      (save-completions-file-name): Use ~/.emacs.d if available.
      (completion-standard-syntax-table): Rename from
      cmpl-standard-syntax-table and fold initialization into declaration,
      thus removing cmpl-make-standard-completion-syntax-table.
      (completion-lisp-syntax-table, completion-c-syntax-table)
      (completion-fortran-syntax-table, completion-c-def-syntax-table): Idem.
      (cmpl-saved-syntax, cmpl-saved-point): Remove.
      (symbol-under-point, symbol-before-point)
      (symbol-under-or-before-point, symbol-before-point-for-complete)
      (add-completions-from-c-buffer): Use with-syntax-table.
      (make-completion): Don't return a list of completion entries.
      Update callers.
      (cmpl-prefix-entry-head, cmpl-prefix-entry-tail): Use defalias.
      (completion-initialize): Rename from initialize-completions.
      (completion-find-file-hook): Rename from cmpl-find-file-hook.
      (kill-emacs-save-completions): Collect stats here.
      (save-completions-to-file, load-completions-from-file):
      Use with-current-buffer.
      (completion-def-wrapper): Rename from def-completion-wrapper.  Make it
      into a function.  Move all calls to toplevel.
      (completion-lisp-mode-hook): New fun.
      (completion-c-mode-hook, completion-setup-fortran-mode):
      Set the syntax-table here.  Use local-set-key.
      (completion-saved-bindings): New var.
      (dynamic-completion-mode): Make it into a proper minor mode.
      (load-completions-from-file): Remove unused var `num-uses'.
      36cc948e