1. 05 Oct, 2012 1 commit
  2. 25 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Use declare forms, where possible, to mark obsolete functions. · 59f7af81
      Chong Yidong authored
      * lisp/allout.el (allout-passphrase-hint-string): Likewise.
      (allout-init): Use a declare form to mark obsolete.
      
      * lisp/calendar/calendar.el (calendar-version):
      * lisp/calendar/icalendar.el (icalendar-extract-ical-from-buffer)
      (icalendar-convert-diary-to-ical):
      * lisp/cus-edit.el (custom-mode):
      * lisp/ansi-color.el (ansi-color-unfontify-region):
      * lisp/international/latin1-disp.el (latin1-char-displayable-p):
      * lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
      * lisp/progmodes/which-func.el (which-func-update-1): Use
      define-obsolete-function-alias.
      
      * lisp/bookmark.el (bookmark-jump-noselect): Use a declare form to mark
      this function obsolete.
      
      * lisp/calendar/cal-x.el (calendar-two-frame-setup)
      (calendar-only-one-frame-setup, calendar-one-frame-setup):
      * lisp/calendar/calendar.el (american-calendar, european-calendar)
      (calendar-for-loop):
      * lisp/comint.el (comint-dynamic-simple-complete)
      (comint-dynamic-complete-as-filename, comint-unquote-filename):
      * lisp/desktop.el (desktop-load-default):
      * lisp/dired-x.el (dired-omit-here-always)
      (dired-hack-local-variables, dired-default-directory):
      * lisp/emacs-lisp/derived.el (derived-mode-class):
      * lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
      * lisp/emacs-lock.el (toggle-emacs-lock):
      * lisp/epa.el (epa-display-verify-result):
      * lisp/epg.el (epg-sign-keys, epg-start-sign-keys)
      (epg-passphrase-callback-function):
      * lisp/eshell/esh-util.el (eshell-for):
      * lisp/eshell/eshell.el (eshell-remove-from-window-buffer-names)
      (eshell-add-to-window-buffer-names):
      * lisp/files.el (locate-file-completion):
      * lisp/imenu.el (imenu-example--create-c-index)
      (imenu-example--create-lisp-index)
      (imenu-example--lisp-extract-index-name)
      (imenu-example--name-and-position):
      * lisp/international/mule-cmds.el (princ-list):
      * lisp/international/mule-diag.el (decode-codepage-char):
      * lisp/international/mule-util.el (detect-coding-with-priority):
      * lisp/iswitchb.el (iswitchb-read-buffer):
      * lisp/mail/mailalias.el (mail-complete):
      * lisp/mail/sendmail.el (mail-sent-via):
      * lisp/mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar)
      (mouse-major-mode-menu):
      * lisp/password-cache.el (password-read-and-add):
      * lisp/pcomplete.el (pcomplete-parse-comint-arguments):
      * lisp/progmodes/sh-script.el (sh-maybe-here-document):
      * lisp/replace.el (query-replace-regexp-eval):
      * lisp/savehist.el (savehist-load):
      * lisp/simple.el (choose-completion-delete-max-match):
      * lisp/term.el (term-dynamic-simple-complete):
      * lisp/vc/ediff-init.el (ediff-check-version):
      * lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically):
      * lisp/vc/vc.el (vc-diff-switches-list):
      * lisp/view.el (view-return-to-alist-update): Likewise.
      
      * lisp/iswitchb.el (iswitchb-read-buffer): Move code of
      iswitchb-define-mode-map here, and delete that obsolete function.
      
      * lisp/subr.el (eval-next-after-load, makehash, insert-string)
      (assoc-ignore-representation, assoc-ignore-case): Use declare to
      mark obsolete.
      (mode-line-inverse-video): Variable deleted.
      
      * lisp/emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that
      this applies to functions.
      
      * lisp/erc/erc.el (erc-send-command): Use define-obsolete-function-alias.
      
      * lisp/international/mule-util.el (string-to-sequence): Remove.
      
      * lisp/net/newst-backend.el (newsticker-cache-filename):
      * lisp/net/newst-treeview.el (newsticker-groups-filename): Fix
      incorrect obsolescence declaration.
      
      * lisp/net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete
      font-lock-reference-face.
      
      * lisp/url/url-parse.el (url-recreate-url-attributes):
      * lisp/url/url-util.el (url-generate-unique-filename): Use declare to mark
      obsolete.
      
      * src/xdisp.c (mode_line_inverse_video): Delete obsolete variable.
      59f7af81
  3. 22 Sep, 2012 1 commit
    • Eli Zaretskii's avatar
      Fix bugs #12447 and #12326 with infloop causes by idle timers, update docs. · df9685f3
      Eli Zaretskii authored
       src/keyboard.c (timer_check_2): Move calculation of 'timers' and
       'idle_timers' from here ...
       (timer_check): ... to here.  Use Fcopy_sequence to copy the timer
       lists, to avoid infloops when the timer does something stupid,
       like reinvoke itself with the same or smaller time-out.
      
       lisp/emacs-lisp/timer.el (run-with-idle-timer)
       (timer-activate-when-idle): Warn against reinvoking an idle timer
       from within its own timer action.
      
       doc/lispref/os.texi (Idle Timers): Warn against reinvoking an idle timer
       from within its own timer action.
      df9685f3
  4. 13 Sep, 2012 1 commit
    • Paul Eggert's avatar
      Use a more backwards-compatible timer format. · c18e885b
      Paul Eggert authored
      * etc/NEWS: Document it.
      * lisp/emacs-lisp/timer.el (timer): PSECS is now at the end, rather than
      being right after USECS, as that better supports old code that
      inadvisedly looked directly at the timer vector.
      * src/keyboard.c (decode_timer): Get PSECS from the 8th (origin-0)
      vector element, not from the 4th, since PSECS is now at the end.
      (Fcurrent_idle_time): Doc fix.
      
      Fixes: debbugs:12430
      c18e885b
  5. 30 Jun, 2012 1 commit
    • Eli Zaretskii's avatar
      Adapt the MS-DOS build to the latest changes. · 0d23c240
      Eli Zaretskii authored
       msdos/mainmake.v2 (bootstrap-clean): Do a maintainer-clean in lib, not
       bootstrap-clean (which doesn't exist).
       msdos/inttypes.h (PRIuMAX) [__DJGPP__ < 2.04]: Define to "llu".
       msdos/sedleim.inp (MKDIR_P): Edit to DOS "md" command.
       msdos/sed1v2.inp: (LIB_CLOCK_GETTIME): Edit to empty.
       Remove lines that invoke PAXCTL.
       (clean): Fix recipe not to run Unixy shell commands.
       msdos/sed2v2.inp (GETTIMEOFDAY_TIMEZONE): Edit to 'struct timezone'.
       (HAVE_STRNCASECMP): Edit to 1.
       msdos/sed3v2.inp (LIB_CLOCK_GETTIME): Edit to empty.
       (C_SWITCH_SYSTEM): Add "-I../msdos".
       msdos/sedlibmk.inp (GNULIB_GETTIMEOFDAY, GNULIB_PSELECT)
       (GNULIB_SELECT, HAVE_STRUCT_TIMEVAL, HAVE_SYS_SELECT_H)
       (HAVE_SYS_TIME_H, NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H)
       (NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H, NEXT_SYS_SELECT_H)
       (NEXT_SYS_TIME_H, REPLACE_GETTIMEOFDAY, REPLACE_PSELECT)
       (REPLACE_STRUCT_TIMEVAL): Edit to appropriate values.
       (BUILT_SOURCES): Edit out sys/select.h and sys/time.h.
       (mostlyclean-local, distclean-generic): Fix recipe not to run
       Unixy shell commands.
      
       src/sysselect.h [DOS_NT]: Don't include sys/select.h.
       src/s/ms-w32.h (select, pselect): Don't define here, they are
       defined in sysselect.h
       src/sysselect.h (pselect) [!HAVE_PSELECT]: Redirect to sys_select.
       src/sysdep.c: Don't include dos.h and dosfns.h.
       src/process.c (sys_select):
       src/msdos.c (sys_select): Accept one more argument and ignore it.
       src/msdos.c (event_timestamp, sys_select): Use gnulib's gettime;
       adapt data types and code to that.
       src/dosfns.c:
       src/msdos.c (gettime, settime): Define away the prototypes in dos.h,
       which clashes with the gnulib function of the same name.
      
       lisp/emacs-lisp/timer.el (timer-until): Subtract results of
       float-time, instead of taking float-time of the result of
       time-subtract, since float-time signals an error for negative time
       arguments.
      0d23c240
  6. 22 Jun, 2012 2 commits
    • Paul Eggert's avatar
      Support higher-resolution time stamps. · d35af63c
      Paul Eggert authored
      Fixes: debbugs:9000
      d35af63c
    • Stefan Monnier's avatar
      Provide generalized variables in core Elisp. · 2ee3d7f0
      Stefan Monnier authored
      * lisp/emacs-lisp/gv.el: New file.
      * lisp/subr.el (push, pop): Extend to generalized variables.
      * lisp/loadup.el (macroexp): Unload if preloaded and uncompiled.
      * lisp/emacs-lisp/cl-lib.el (cl-pop, cl-push, cl--set-nthcdr): Remove.
      * lisp/emacs-lisp/cl-macs.el: Require gv.  Use gv-define-setter,
      gv-define-simple-setter, and gv-define-expander.
      Remove setf-methods defined in gv.  Rename cl-setf -> setf.
      (cl-setf, cl-do-pop, cl-get-setf-method): Remove.
      (cl-letf, cl-letf*, cl-define-modify-macro, cl-defsetf)
      (cl-define-setf-expander, cl-struct-setf-expander): Move to cl.el.
      (cl-remf, cl-shiftf, cl-rotatef, cl-callf, cl-callf2): Rewrite with
      gv-letplace.
      (cl-defstruct): Don't define setf-method any more.
      * lisp/emacs-lisp/cl.el (flet): Don't autoload.
      (cl--letf, letf, cl--letf*, letf*, cl--gv-adapt)
      (define-setf-expander, defsetf, define-modify-macro)
      (cl-struct-setf-expander): Move from cl-lib.el.
      * lisp/emacs-lisp/syntax.el:
      * lisp/emacs-lisp/ewoc.el:
      * lisp/emacs-lisp/smie.el:
      * lisp/emacs-lisp/cconv.el:
      * lisp/emacs-lisp/timer.el: Rename cl-setf -> setf, cl-push -> push.
      (timer--time): Use gv-define-simple-setter.
      * lisp/emacs-lisp/macroexp.el (macroexp-let2): Rename from macroexp-let²
      to avoid coding-system problems in subr.el.  Adjust all users.
      (macroexp--maxsize, macroexp-small-p): New functions.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Don't use cl-letf.
      * lisp/scroll-bar.el (scroll-bar-mode):
      * lisp/simple.el (auto-fill-mode, overwrite-mode, binary-overwrite-mode)
      (normal-erase-is-backspace-mode): Don't use the `eq' place.
      * lisp/winner.el (winner-configuration, winner-make-point-alist)
      (winner-set-conf, winner-get-point, winner-set): Don't abuse letf.
      * lisp/files.el (locate-file-completion-table): Avoid list*.
      
      Fixes: debbugs:11657
      2ee3d7f0
  7. 10 Jun, 2012 1 commit
    • Stefan Monnier's avatar
      Reduce use of cl in lisp/emacs-lisp/. · f80efb86
      Stefan Monnier authored
      * lisp/emacs-lisp/timer.el, lisp/emacs-lisp/syntax.el, lisp/emacs-lisp/smie.el:
      * lisp/emacs-lisp/ewoc.el, lisp/emacs-lisp/cconv.el,lisp/emacs-lisp/derived.el:
      * lisp/emacs-lisp/byte-opt.el, lisp/emacs-lisp/autoload.el: Convert to cl-lib.
      * lisp/emacs-lisp/easymenu.el, lisp/emacs-lisp/easy-mmode.el:
      * lisp/emacs-lisp/bytecomp.el: Use pcase instead of `cl'.
      * lisp/emacs-lisp/cl-lib.el: Get rid of special cl-macs auto load.
      f80efb86
  8. 04 May, 2012 1 commit
    • Chong Yidong's avatar
      Convert more defvars to defcustoms. · 78f3273a
      Chong Yidong authored
      * dos-w32.el (file-name-buffer-file-type-alist)
      (direct-print-region-use-command-dot-com):
      * ffap.el (ffap-menu-regexp):
      * follow.el (follow-debug):
      * forms.el (forms--debug):
      * iswitchb.el (iswitchb-all-frames):
      * ido.el (ido-all-frames):
      * mail/feedmail.el (feedmail-mail-send-hook)
      (feedmail-mail-send-hook-queued):
      * mail/footnote.el (footnote-signature-separator):
      * mail/mailabbrev.el (mail-alias-separator-string)
      (mail-abbrev-mode-regexp):
      * mail/rmail.el (rmail-speedbar-match-folder-regexp):
      * progmodes/idlwave.el (idlwave-libinfo-file)
      (idlwave-default-completion-case-is-down)
      (idlwave-library-routines): Convert defvars to defcustoms.
      
      * mail/rmail.el (rmail-decode-mime-charset):
      * progmodes/idlw-shell.el (idlwave-shell-print-expression-function)
      (idlwave-shell-fix-inserted-breaks)
      (idlwave-shell-activate-alt-keybindings)
      (idlwave-shell-use-breakpoint-glyph):
      * facemenu.el (facemenu-unlisted-faces): Delete obsolete vars.
      
      * doc/lispref/os.texi (Timers): Use defopt for timer-max-repeats.
      78f3273a
  9. 09 Apr, 2012 1 commit
  10. 11 Jan, 2012 1 commit
  11. 05 Jan, 2012 1 commit
  12. 13 Oct, 2011 1 commit
  13. 04 Jul, 2011 2 commits
  14. 01 Jul, 2011 1 commit
  15. 04 Jun, 2011 1 commit
  16. 25 Jan, 2011 1 commit
  17. 02 Jan, 2011 1 commit
  18. 22 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Support for systems without floats was removed a decade ago. · 9a0dd02d
      Glenn Morris authored
      * lisp/loadup.el: Unconditionally load float-sup.
      * lisp/paren.el (show-paren-delay):
      * lisp/emacs-lisp/float-sup.el:
      * lisp/emulation/cua-base.el (cua-prefix-override-inhibit-delay):
      * lisp/obsolete/lazy-lock.el (lazy-lock-defer-time, lazy-lock-stealth-nice)
      (lazy-lock-stealth-verbose): Assume float support.
      * lisp/ps-print.el: Assume float support on Emacs.
      * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
      Remove non-float branch.
      
      * lisp/obsolete/lazy-lock.el: Remove leading `*' from defcustom docs.
      9a0dd02d
  19. 30 Aug, 2010 1 commit
    • Stefan Monnier's avatar
      Use `declare' in defmacros. · f291fe60
      Stefan Monnier authored
      * lisp/window.el (save-selected-window):
      * lisp/subr.el (with-temp-file, with-temp-message, with-syntax-table):
      * lisp/progmodes/python.el (def-python-skeleton):
      * lisp/net/dbus.el (dbus-ignore-errors):
      * lisp/jka-cmpr-hook.el (with-auto-compression-mode):
      * lisp/international/mule.el (with-category-table):
      * lisp/emacs-lisp/timer.el (with-timeout):
      * lisp/emacs-lisp/lisp-mnt.el (lm-with-file):
      * lisp/emacs-lisp/eieio.el (with-slots):
      * lisp/emacs-lisp/easymenu.el (easy-menu-define):
      * lisp/emacs-lisp/debug.el (debugger-env-macro):
      * lisp/emacs-lisp/cl-compat.el (Multiple-value-bind, Multiple-value-setq)
      (Multiple-value-call, Multiple-value-prog1):
      * lisp/emacs-lisp/cl-seq.el (cl-parsing-keywords, cl-check-key)
      (cl-check-test-nokey, cl-check-test, cl-check-match): Move indent and
      edebug rule to definition.
      * lisp/emacs-lisp/lisp-mode.el (save-selected-window)
      (with-current-buffer, combine-after-change-calls)
      (with-output-to-string, with-temp-file, with-temp-buffer)
      (with-temp-message, with-syntax-table, read-if, eval-after-load)
      (dolist, dotimes, when, unless):
      * lisp/emacs-lisp/byte-run.el (inline): Remove indent rule, redundant.
      f291fe60
  20. 29 Aug, 2010 1 commit
  21. 02 Aug, 2010 1 commit
  22. 13 Jan, 2010 1 commit
  23. 11 Nov, 2009 1 commit
    • Dan Nicolaescu's avatar
      * progmodes/grep.el (grep-regexp-alist): · 2f7f4bee
      Dan Nicolaescu authored
      * international/mule-cmds.el (iso-2022-control-alist):
      * emacs-lisp/timer.el (timer-duration-words):
      * subr.el (version-separator, version-regexp-alist):
      * minibuffer.el (completion-styles-alist):
      * faces.el (face-attribute-name-alist, list-faces-sample-text):
      Change defvars to defconsts.
      2f7f4bee
  24. 02 Sep, 2009 1 commit
  25. 05 Jan, 2009 1 commit
  26. 30 Nov, 2008 1 commit
    • Juanma Barranquero's avatar
      * calendar/diary-lib.el (diary-cyclic): Doc fix. · 64ba814f
      Juanma Barranquero authored
        (diary-remind-message, diary-number-of-entries)
        (diary-include-other-diary-files, diary-mark-included-diary-files)
        (diary-view-entries, diary-date, diary-block, diary-insert-entry-1)
        (diary-font-lock-keywords-1): Reflow docstrings.
        (diary-add-to-list, calendar-mark-1, diary-entry-time, diary-make-date)
        (diary-anniversary, diary-date-display-form): Fix typos in docstrings.
      
      * emacs-lisp/timer.el (timer-duration-words): Fix typo in docstring.
        (timer-duration): Use `string-match-p'.
      64ba814f
  27. 06 May, 2008 1 commit
  28. 03 Apr, 2008 1 commit
    • Stefan Monnier's avatar
      (timer): Define as a defstruct, so we can name the fields, to make the · e0f0f3ef
      Stefan Monnier authored
      code clearer.  Rewrite all `aset' and `aref' using the defined accessors.
      (timer--time): New pseudo-field.
      (timer-set-time, timer-set-idle-time, timer-inc-time)
      (timer-set-time-with-usecs, with-timeout-suspend): Use it.
      (timer--time-less-p): New function.
      (timer--activate): New function, extracted from timer-activate.
      (timer-activate-when-idle, timer-activate): Use it.
      (cancel-function-timers): Use dolist.
      e0f0f3ef
  29. 14 Mar, 2008 1 commit
    • Dan Nicolaescu's avatar
      * faces.el (xw-defined-colors): · f31b1257
      Dan Nicolaescu authored
      * simple.el (widget-convert, shell-mode): Declare as functions
      instead of autoloading.
      
      * abbrev.el:
      * button.el:
      * cus-face.el:
      * ediff-hook.el:
      * emacs-lisp/backquote.el:
      * emacs-lisp/timer.el:
      * facemenu.el:
      * faces.el:
      * menu-bar.el:
      * simple.el:
      * subr.el:
      * textmodes/fill.el:
      * textmodes/paragraphs.el: Remove autoloads, redundant when the
      files are preloaded.
      f31b1257
  30. 07 Jan, 2008 1 commit
  31. 06 Dec, 2007 1 commit
  32. 20 Nov, 2007 1 commit
    • Dan Nicolaescu's avatar
      * progmodes/idlw-help.el: Require browse-url unconditionally, it · 153ef845
      Dan Nicolaescu authored
      is available by default.
      (idlwave-help-browse-url-available): Change default to t.
      
      * emulation/edt.el (defgroup, defcustom): Remove definition.
      (eval-when-compile): Remove.
      (c-mark-function):
      * textmodes/reftex-dcr.el (bibtex-beginning-of-entry):
      * textmodes/fill.el (comment-search-forward)
      (comment-string-strip):
      * progmodes/prolog.el (comint-mode, comint-send-string)
      (comint-send-region, comint-send-eof):
      * progmodes/dcl-mode.el (imenu-default-create-index-function):
      * emulation/viper-util.el (viper-forward-Word):
      * emulation/vi.el (c-mark-function):
      * emulation/edt-vt100.el (vt100-wide-mode):
      * emacs-lisp/timer.el (diary-entry-time): Declare as functions.
      
      * url-mailto.el (mail-send-and-exit):
      * url-http.el (url-dav-file-attributes):
      * url-file.el (ange-ftp-set-passwd, ange-ftp-copy-file-internal):
      Declare as functions.
      
      * url-privacy.el (url-device-type): Define unconditionally.
      153ef845
  33. 25 Jul, 2007 1 commit
  34. 31 Mar, 2007 1 commit
  35. 21 Jan, 2007 1 commit
  36. 07 Dec, 2006 1 commit
  37. 24 Sep, 2006 1 commit
  38. 08 Sep, 2006 1 commit