1. 25 Jun, 2014 1 commit
    • Stephen Berman's avatar
      * calendar/todo-mode.el: Fix two bugs. · a5128e3d
      Stephen Berman authored
      (todo-insert-item--basic): If user cancels item insertion to
      another category before setting priority, show original category
      whether it is in the same or a different file.
      (todo-set-item-priority): After selecting category, instead of
      moving point to top, which extends an active region, restore it.
      a5128e3d
  2. 23 May, 2014 2 commits
    • Stephen Berman's avatar
      todo-mode.el: Remove dependence on auto-mode-alist. · 903204bb
      Stephen Berman authored
      * calendar/todo-mode.el: Remove dependence on auto-mode-alist,
      to avoid errors when trying to create or visit a file foo.todo
      located outside to todo-directory, and to allow having such files
      without them being tied to Todo mode.
      (todo-show, todo-move-category, todo-merge-category, todo-find-archive)
      (todo-archive-done-item, todo-find-filtered-items-file)
      (todo-filter-items, todo-find-item, todo-diary-goto-entry)
      (todo-category-completions, todo-read-category): When visiting a
      Todo file, make sure we're in the right mode and the buffer local
      variables are set.
      (todo-make-categories-list, todo-reset-nondiary-marker)
      (todo-reset-done-string, todo-reset-comment-string): After
      processing all Todo files, kill the buffers of those files that
      weren't being visited before the processing.
      (todo-display-as-todo-file, todo-add-to-buffer-list)
      (todo-visit-files-commands): Comment out.
      (todo-modes-set-3, todo-mode): Comment out additions to find-file-hook.
      (auto-mode-alist): Remove add-to-list calls making Todo file
      extensions unrestrictedly tied to Todo modes.
      
      * doc/misc/todo-mode.texi: Update in light of changes due to bug#17482.
      Replace numerous mistaken uses of literal quotes with proper
      Texinfo markup.
      (Todo Mode Entry Points): Comment out reference to using find-file
      or Dired to visit Todo files, since this has been disabled (bug#17482).
      903204bb
    • Stephen Berman's avatar
      * calendar/todo-mode.el: Miscellaneous bug fixes. · 982ccf03
      Stephen Berman authored
      (todo-delete-file): When deleting an archive but not its todo
      file, make sure to update the todo file's category sexp.
      (todo-move-category): Keep the moved category's name unless the
      file moved to already has a category with that name.  If the
      numerically last category of the source file was moved, make the
      first category current to avoid selecting a nonexisting category.
      (todo-merge-category): Fix implementation to make merging to a
      category in another file work as documented.  Eliminate now
      insufficient and unnecessary renaming of archive category, correct
      document string accordingly, and clarify it.  If the numerically
      last category of the source file was merged, make the first
      category current to avoid selecting a nonexisting category.
      (todo-archive-done-item): When there are marked items and point
      happens to be on an unmarked item, ignore the latter.  Don't leave
      point below last item after archiving marked items.
      (todo-unarchive-items): Fix logic to ensure unarchiving an item
      from an archive with only one category deletes the archive only
      when the category is empty after unarchiving.  Make sure the todo
      file's category sexp is updated.
      (todo-read-file-name): Allow an existing file name even when it is
      not required (todo-move-category needs this to work as documented).
      (todo-add-file): Call todo-validate-name to reject the name of an
      existing todo file (needed due to fix in todo-read-file-name).
      (todo-reset-nondiary-marker): Also reset in filtered items files.
      (todo-reset-done-string, todo-reset-comment-string): Also reset in
      regexp filtered items files.
      (todo-reset-highlight-item): Also reset in filtered items files.
      Fix incorrect variable reference in document string.
      982ccf03
  3. 09 May, 2014 1 commit
  4. 07 May, 2014 1 commit
  5. 02 May, 2014 2 commits
    • Stephen Berman's avatar
      Add a warning and a menu. · 7bd9ce64
      Stephen Berman authored
      * calendar/todo-mode.el (todo-edit-file): Use display-warning.
      (todo-menu): Uncomment and update.
      7bd9ce64
    • Stephen Berman's avatar
      Extend todo item insertion UI to item editing. · aed4b12d
      Stephen Berman authored
      * calendar/todo-mode.el: Reimplement item editing to have the same
      basic user interface as item insertion, and make small UI and
      larger internal improvements to the latter.
      (todo-insert-item): Add reference to the Todo mode user manual to
      the documentation string.
      (todo-insert-item--basic): Rename from todo-basic-insert-item and
      adjust all callers.  Change signature to combine diary and
      nonmarking arguments.  Incorporate functionality of deleted item
      copying command and add error checking.  Remove detailed
      descriptions of the arguments from the documentation string, since
      this is treated in the Todo mode user manual.
      (todo-copy-item, todo-edit-multiline-item)
      (todo-edit-done-item-comment, todo-edit-item-header)
      (todo-edit-item-time, todo-edit-item-date-from-calendar)
      (todo-edit-item-date-to-today, todo-edit-item-date-day-name)
      (todo-edit-item-date-year, todo-edit-item-date-month)
      (todo-edit-item-date-day, todo-edit-item-diary-nonmarking):
      Remove.
      (todo-edit-item): Reimplement as wrapper command for
      todo-edit-item--next-key and make it distinguish done and not done
      todo items.
      (todo-edit-item--text): New function, replacing old command
      todo-edit-item and incorporating deleted commands
      todo-edit-multiline-item and todo-edit-done-item-comment.
      (todo-edit-item--header): Rename from todo-basic-edit-item-header.
      Use only numeric value of prefix argument.  Remove detailed
      descriptions of the arguments from the documentation string, since
      this is treated in the Todo mode user manual.
      (todo-edit-item--diary-inclusion): New function, replacing old
      command todo-edit-item-diary-inclusion and incorporating and fixing
      functionality of deleted command todo-edit-item-diary-nonmarking,
      making sure to remove todo-nondiary-marker when adding
      diary-nonmarking-symbol.
      (todo-edit-category-diary-inclusion): Make sure to delete
      diary-nonmarking-symbol when adding todo-nondiary-marker.
      (todo-edit-category-diary-nonmarking): Fix indentation.
      (todo-insert-item--parameters): Group diary and nonmarking
      parameters together.
      (todo-insert-item--apply-args): Adjust to signature of
      todo-insert-item--basic and incorporate copy parameter.
      Make small code improvements.
      (todo-insert-item--next-param): Improve prompt and adjust it to
      new parameter grouping.  Remove obsolete code.
      (todo-edit-item--param-key-alist)
      (todo-edit-item--date-param-key-alist)
      (todo-edit-done-item--param-key-alist): New defconsts.
      (todo-edit-item--prompt): New variable.
      (todo-edit-item--next-key): New function.
      (todo-key-bindings-t): Bind "e" to todo-edit-item.  Remove
      bindings of deleted commands.
      aed4b12d
  6. 13 Jan, 2014 1 commit
  7. 01 Jan, 2014 1 commit
  8. 23 Dec, 2013 1 commit
    • Chong Yidong's avatar
      Rename set-temporary-overlay-map -> set-transient-map · 8cd22a08
      Chong Yidong authored
      * lisp/subr.el (set-transient-map): Rename from
      set-temporary-overlay-map.  Doc fix.
      
      * lisp/face-remap.el (text-scale-adjust):
      * lisp/indent.el (indent-rigidly):
      * lisp/kmacro.el (kmacro-call-macro):
      * lisp/minibuffer.el (minibuffer-force-complete):
      * lisp/repeat.el (repeat):
      * lisp/simple.el (universal-argument--mode):
      * lisp/calendar/todo-mode.el (todo-insert-item--next-param):
      * lisp/progmodes/f90.el (f90-abbrev-start): Callers changed.
      
      * lisp/org/org.el (orgstruct-make-binding): Call set-transient-map
      instead of old name set-temporary-overlay-map.
      
      * doc/lispref/keymaps.texi (Controlling Active Maps): Renamed
      set-temporary-overlay-map to set-transient map.  Doc fixes.
      (Searching Keymaps): The transient keymap takes precedence.
      8cd22a08
  9. 20 Dec, 2013 2 commits
    • Stephen Berman's avatar
      New implementation of Todo item insertion commands and key bindings. · f3a66082
      Stephen Berman authored
      * calendar/todo-mode.el: New implementation of item insertion
      commands and key bindings.
      (todo-key-prompt): New face.
      (todo-insert-item): New command.
      (todo-insert-item--parameters): New defconst, replacing defvar
      todo-insertion-commands-args-genlist.
      (todo-insert-item--param-key-alist): New defconst, replacing
      defvar todo-insertion-commands-arg-key-list.
      (todo-insert-item--keyof, todo-insert-item--this-key): New defsubsts.
      (todo-insert-item--argsleft, todo-insert-item--apply-args)
      (todo-insert-item--next-param): New functions.
      (todo-insert-item--args, todo-insert-item--argleft)
      (todo-insert-item--argsleft, todo-insert-item--newargsleft):
      New variables.
      (todo-key-bindings-t): Change binding of "i" from
      todo-insertion-map to todo-insert-item.
      (todo-powerset, todo-gen-arglists, todo-insertion-commands-args)
      (todo-insertion-command-name, todo-insertion-commands-names)
      (todo-define-insertion-command, todo-insertion-commands)
      (todo-insertion-key-bindings, todo-insertion-map): Remove.
      f3a66082
    • Stephen Berman's avatar
      Todo mode bug fixes and new features. · 2f99433b
      Stephen Berman authored
      * calendar/todo-mode.el: Bug fixes and new features.
      (todo-toggle-item-highlighting): Use eval-and-compile instead of
      eval-when-compile.
      (todo-move-category): Allow choosing a non-existing todo file to
      move the category to, and create that file.
      (todo-default-priority): New user option.
      (todo-set-item-priority): Use it.
      (todo-desktop-save-buffer, todo-restore-desktop-buffer): New functions.
      (desktop-restore-file-buffer): Declare.
      (desktop-buffer-mode-handlers): Add todo-restore-desktop-buffer.
      (todo-modes-set-2): Locally set desktop-save-buffer to
      todo-desktop-save-buffer.
      (todo-mode, todo-archive-mode, todo-filtered-items-mode)
      (auto-mode-alist): Add autoload cookie.
      
      Fixes: debbugs:15225
      2f99433b
  10. 28 Jul, 2013 1 commit
  11. 27 Jul, 2013 1 commit
  12. 05 Jul, 2013 1 commit
    • Stephen Berman's avatar
      * calendar/todo-mode.el: Add handling of file deletion, both by · d610f6dd
      Stephen Berman authored
      mode command and externally.  Fix various related bugs.  Clarify
      Commentary and improve some documentation strings and code.
      (todo-delete-file): New command.
      (todo-check-file): New function.
      (todo-show): Handle external deletion of the file we're trying to
      show.  Replace called-interactively-p by an optional
      prefix argument to avoid problematic interaction with catch form
      when byte compiled (bug#14702).
      (todo-quit): Handle external deletion of the archive's todo file.
      Make sure the buffer that was visiting the archive file is still
      live before trying to bury it.
      (todo-category-completions): Handle external deletion of any
      category completion files.
      (todo-jump-to-category, todo-basic-insert-item): Recalculate list
      of todo files, in case of external deletion.
      (todo-add-file): Replace unnecessary setq by let-binding.
      (todo-find-archive): Check whether there are any archives.
      Replace unnecessary setq by let-binding.
      (todo-archive-done-item): Use find-file-noselect to get the
      archive buffer whether or not the archive already exists.  Remove
      superfluous code.  Use file size instead of buffer-file-name to
      check if the archive is new; if it is, update list of archives.
      (todo-default-todo-file): Allow nil to be a valid value for when
      there are no todo files.
      (todo-reevaluate-default-file-defcustom): Use corrected definition
      of todo-default-todo-file.
      (todo-key-bindings-t+a+f): Add key binding for todo-delete-file.
      (todo-delete-category, todo-show-categories-table)
      (todo-category-number): Clarify comment.
      (todo-filter-items): Clarify documentation string.
      (todo-show-current-file, todo-display-as-todo-file)
      (todo-reset-and-enable-done-separator): Tweak documentation string.
      (todo-done-separator): Make separator length window-width, since
      bug#2749 is now fixed.
      
      Fixes: debbugs:14688
      d610f6dd
  13. 30 Jun, 2013 1 commit
  14. 21 Jun, 2013 3 commits
  15. 19 Jun, 2013 3 commits
  16. 18 Jun, 2013 2 commits
  17. 09 Jun, 2013 2 commits
  18. 08 Jun, 2013 1 commit
  19. 07 Jun, 2013 1 commit
  20. 05 Jun, 2013 2 commits
    • Stephen Berman's avatar
      * todos.el: Fix byte-compiler warnings. · 1d59b723
      Stephen Berman authored
      (todos-merge-category): Relocate let-bound variable.
      (todos-toggle-item-highlighting): Restrict to todos-mode,
      todos-archive-mode and todos-filtered-items-mode.
      (todos-toggle-item-header, todos-diary-goto-entry)
      (todos-insert-sort-button): Let-bind variables that were
      mistakenly free.
      (todos-convert-legacy-files): Just require todo-mode instead of
      conditionalizing it.
      (todos-modes-set-2): Check whether hl-line-range-function is void.
      1d59b723
    • Stephen Berman's avatar
      * todos.el: Further code cleanup. Changes to commentary. Remove · db5ea477
      Stephen Berman authored
      autoload cookies.  Handle todo items in Fancy Diary display.
      (todos-done-separator): Reinstate length one less than
      window-width until bug#2749 is fixed.
      (todos-diary-goto-entry): New function, extracted from adapted
      definition of diary-goto-entry, which is removed to be added to
      diary-lib.el.
      (todos-powerset): Rename from todos-powerset-iterative and remove
      defalias by this name.  Add doc string and comments.
      (todos-modes-set-1, todos-modes-set-2, todos-modes-set-3)
      (todos-mode-external-set): Add doc string.
      db5ea477
  21. 04 Jun, 2013 3 commits
  22. 03 Jun, 2013 2 commits
    • Stephen Berman's avatar
      * todos.el: More code cleanup. Update file copyright and author · e99a2125
      Stephen Berman authored
      lines, add commentary.  Reformat so most lines do not exceed 80
      columns.  Fix doc strings problems found by checkdoc.
      (todos-edit-file): Delete unused argument.
      (todos-delete-item): Delete superfluous concat.
      (todos-next-button, todos-previous-button): Delete optional
      arguments, adjusting interactive spec accordingly, and add them as
      non-nil arguments to the invocations of forward-button and
      backward-button.
      e99a2125
    • Stephen Berman's avatar
      * todos.el (todos-y-with-space): New defcustom. · cc416fd3
      Stephen Berman authored
      (todos-y-or-n-p): New function.
      (todos-delete-category, todos-move-category, todos-delete-item)
      (todos-done-item-add-edit-or-delete-comment, todos-item-undone)
      (todos-find-archive, todos-archive-done-item, todos-search)
      (todos-read-category): Use it instead of y-or-n-p.
      cc416fd3
  23. 02 Jun, 2013 1 commit
    • Stephen Berman's avatar
      * todos.el (todos-show-categories-table): Correct doc string. · 9e6b072c
      Stephen Berman authored
      (todos-sort-categories-alphabetically-or-numerically): Rename from
      todos-sort-categories-alphabetically-or-by-priority and adjust uses.
      (todos-set-category-number): Rename from
      todos-set-category-priority and adjust uses.
      (todos-raise-category): Rename from todos-raise-category-priority
      and adjust uses.
      (todos-lower-category): Rename from todos-lower-category-priority
      and adjust uses.
      9e6b072c
  24. 01 Jun, 2013 2 commits
    • Stephen Berman's avatar
      * todos.el: Some custom cleanup. · 53e63b4c
      Stephen Berman authored
      (todos-edit): Rename from todos-item-insertion and adjust doc string.
      (todos-display): Rename from todos-mode-display.
      (todos-item-mark, todos-undo-item-omit-comment): Change :group to
      todos-edit.
      (todos-indent-to-here): Change :group to todos-display.
      (todos, todos-edit, todos-categories, todos-filtered)
      (todos-display, todos-faces): Change :version to "24.4".
      53e63b4c
    • Stephen Berman's avatar
      * todos.el (todos-filtered-items-mode-map): Fix omission in · 23cbdcbc
      Stephen Berman authored
      previous change.
      (todos-mode): Comment out invocation of easy-menu-add, since menu
      definition was commented out in last change.
      23cbdcbc
  25. 31 May, 2013 2 commits