Lars Ingebrigtsen [Sun, 23 Dec 2012 14:46:44 +0000 (15:46 +0100)]
Don't explicitly bind mouse-1.
As Michael Heerdegen <michael_heerdegen@web.de> says:
However, also binding mouse-1 is not necessary. Depending on the
setting of `mouse-1-click-follows-link', which is non-nil by default,
mouse-1 already follows links - see its doc. We should leave it up to
the user if he wants to use mouse-1 for following or not.
Stefan Monnier [Thu, 29 Nov 2012 15:58:17 +0000 (10:58 -0500)]
Try to preserve timestamps. Fix ChangeLog generation.
* admin/update-archive.sh: Don't change timestamp on packages that have the
same md5.
* admin/archive-contents.el (batch-prepare-packages): New function.
(archive--simple-package-p): Ignore ChangeLog as well. Signal errors if the
file does not have the expected structure.
(archive--process-simple-package): Add the ChangeLog's content.
(archive--make-changelog): Only modify the file if the content changes.
(archive--process-multi-file-package): Don't make the ChangeLog here, since we
may not even have the Bzr metadata at hand any more.
* Makefile (archive-tmp): Preserve symlinks.
(process-archive): Call new batch-prepare-packages.
* .bzrignore: Add Changelog and .changelog-witness.
Stefan Monnier [Wed, 24 Oct 2012 19:29:40 +0000 (15:29 -0400)]
* nlinum.el: Speed up by caching last line-number.
(nlinum--line-number-cache): New var.
(nlinum--after-change, nlinum--line-number-at-pos): New functions.
(nlinum-mode, nlinum--region): Use them.
Stefan Monnier [Mon, 22 Oct 2012 18:16:47 +0000 (14:16 -0400)]
First cut at cleaning up notes-mode.
- Followed the usual header/footer conventions in Elisp.
- Updated copyright.
- Remove configury scripts.
- Bind $NOTES_BIN_DIR in notes-first while running notesinit.
- Use $NOTES_BIN_DIR rather than /home/johnh in scripts.
- Add `dir' file.
- Remove non-"notes-"-prefixed functions from notes-aux.el.
- Remove notes-bootstrap.
- Remove notes-platform-font-lock (was broken on XEmacs anyway).
- Use define-derived-mode for notes-index-mode.
- Setup notes-mode-map once at top-level.
- Prefer expand-file-name to `concat'.
- Put the Info file in the `Emacs' category.
- Use \` and \' regexp at a few places.
- Use load-file-name to initialize notes-utility-dir.
- Avoid find-file-noselect when loading the cache to avoid autoinsert prompting
the user.
- Use (featurep 'xemacs)
- Remove autoloads from notes-variables.
- Don't mess with the user's .emacs in notesinit.
- Bump release number to 1.30.
- Remove strftime.c.
Stefan Monnier [Fri, 19 Oct 2012 16:16:07 +0000 (12:16 -0400)]
* sml-mode.el (sml-electric-pipe-mode): New var.
(sml-pipeheads): Add (, {, and [ to more reliably detect cases where
the pipe is not part of a case/fun/...
(sml-tyvarseq-re): Use shy groups.
(sml-font-lock-keywords): Adjust accordingly.
(sml-compile): Avoid the 3rd part of dolist's spec.
(sml-post-self-insert-pipe): New fun, extracted from sml-electric-pipe.
(sml-mode): Use it to obey sml-electric-pipe-mode.
(sml-electric-pipe): Use sml-post-self-insert-pipe.
* makefile.pkg (ELFILES): Remove sml-proc.el.
* prog-proc.el: Rename from sml-prog-proc.el.
Michael Albinus [Thu, 18 Oct 2012 13:27:09 +0000 (15:27 +0200)]
* debbugs.el (debbugs-get-usertag): Change parameters to a KEY-VALUE sequence.
* debbugs-gnu.el (debbugs-gnu): Rename USERTAGS to TAGS.
(debbugs-gnu-get-bugs): Adapt to new interface of `debbugs-get-usertag'.
(debbugs-gnu-display-status): Use `special-mode'.
(debbugs-gnu-send-control-message): Implement "usertag" message.
Michael Albinus [Wed, 17 Oct 2012 12:32:38 +0000 (14:32 +0200)]
* Debbugs.wsdl: Add get_usertag specification.
* debbugs.el (debbugs-get-usertag): New defun.
* debbugs-gnu.el (debbugs-gnu-all-severities)
(debbugs-gnu-all-packages): New defconst.
(debbugs-gnu-search, debbugs-gnu): Use them.
(debbugs-gnu, debbugs-gnu-get-bugs): Handle user tags.
(debbugs-gnu-show-reports): Kill buffer initially, in order to
get rid of old local variables.
(debbugs-gnu-current-query): New defun.
(debbugs-gnu-display-status): Display also the query. Use `special-mode'.
Stefan Monnier [Wed, 10 Oct 2012 17:01:57 +0000 (13:01 -0400)]
* csv-mode.el: Use lexical-binding. Remove redundant :group args.
(csv-separators): Add TAB to the default.
(csv-invisibility-default): Change default to t.
(csv-separator-face): Inherit from escape-glyph. Remove variable.
(csv-mode-line-format): Remove trailing "--". Move next to line-number.
(csv-interactive-args): Use use-region-p.
(csv--column-widths): New function, extracted from csv-align-fields.
(csv-align-fields): Use it. Use whole buffer by default.
Use :align-to and text-properties when possible.
(csv-unalign-fields): Also remove properties.
(csv-mode): Truncate lines.
Michal Nazarewicz [Mon, 8 Oct 2012 12:41:46 +0000 (14:41 +0200)]
num3-mode: use “num3--” as prefix for private symbols
Previous version of num3-mode used “-num3” as a prefix for private
symbols which goes against the style used in the rest of Emacs.
This commit changes the prefix to “num3--”.
Christopher Schmidt [Fri, 3 Aug 2012 13:36:07 +0000 (15:36 +0200)]
* ampc.el: Keep tag and song buffers dirty while querying MPD's song db.
(ampc-fill-skeleton): Ignore buffers that should be kept dirty.
(ampc-set-dirty, ampc-fill-tag-song): Handle keep-dirty.
(ampc-update): Make song and tag buffers dirty before sending listallinfo.
Christopher Schmidt [Fri, 3 Aug 2012 07:35:45 +0000 (09:35 +0200)]
* ampc.el (ampc-send-command): Allow all other keys in PROPS. Store PROPS in
ampc-outstanding-commands.
(ampc-handle-command): Handle shuffle-listplaylistinfo.
(ampc-shuffle-playlist): New function.
(ampc-shuffle): Query playlist data before shuffle.
Christopher Schmidt [Fri, 3 Aug 2012 07:35:44 +0000 (09:35 +0200)]
* ampc.el (ampc-send-command-impl): Only send commands if the connection live.
(ampc-send-next-command, ampc-quit): Only wait for process output if the
connection is live.
Christopher Schmidt [Fri, 3 Aug 2012 07:35:43 +0000 (09:35 +0200)]
* ampc.el: Refine options for sending commands.
(ampc-send-command): Substitute optional argument unique with key argument list
props.
All callers changed to take advantage of the new options.
(ampc-send-next-command): Handle new command options.
(ampc-skip): Don't skip beyond playlist.
(ampc-fill-status-var): New function.
(ampc-handle-status): Store playlist length. Use ampc-fill-status-var.
(ampc-handle-current-song): Use ampc-fill-status-var.
(ampc-delete): Move point to first deletion. Remove marks.
(ampc-quit): Explicitly delete process.
Christopher Schmidt [Fri, 3 Aug 2012 07:35:43 +0000 (09:35 +0200)]
* ampc.el: Optimise parsing of MPD's output.
(ampc-iterate-source): Cache delimiter if it should be bound. Compute delimiter
regexp at compile time.
(ampc-iterate-source-output): Cache tags and tag regexps.
(ampc-extract-regexp): New macro.
(ampc-extract): Inline function. Pass regexp rather than tag. Refactor tag
cleaning to ampc-clean-tag.
All callers changed.
(ampc-clean-tag): New function.
(ampc-narrow-entry): Inline function. Do not modify point. Return start of
delimiter match.
Christopher Schmidt [Fri, 3 Aug 2012 07:35:42 +0000 (09:35 +0200)]
* Add tagger. ampc-tagger.cpp: New file.
.gitignore: Add ampc_tagger.
ampc.el (ampc-tagger-music-directories, ampc-tagger-executable)
(ampc-tagger-backup-directory, ampc-tagger-grab-hook, ampc-tagger-grabbed-hook)
(ampc-tagger-store-hook, ampc-tagger-stored-hook)
(ampc-tagger-previous-configuration, ampc-tagger-version-verified)
(ampc-tagger-genres, ampc-files-list-mode-map, ampc-tagger-mode-map)
(ampc-tagger-dired-mode-map, ampc-tagger-completion-at-point): New variables.
(ampc-tagger-tag-face, ampc-tagger-keyword-face): New faces.
(ampc-views): Add tagger view.
(ampc-tagger-version, ampc-tagger-tags): New constants.
(ampc-mode-map): Bind ampc-tagger.
(ampc-tagger-log): New macro.
(ampc-files-list-mode, ampc-tagger-mode, ampc-tagger-log-mode): New major modes.
(ampc-tagger-dired-mode): New minor mode.
(ampc-tagger-report, ampc-tagger-call, ampc-tagger-tags-modified)
(ampc-tagger-make-backup, ampc-tagger-get-values, ampc-tagger-update)
(ampc-tag-files, ampc-tagger-complete-tag, ampc-tagger-complete-value)
(ampc-tagger-rename-artist-title): New functions.
(ampc-post-mark-change-update): Handle files list buffers.
(ampc-tagger-reset, ampc-tagger-save, ampc-tagger-quit, ampc-tagger)
(ampc-tagger-dired, ampc-tagger-completion-all-files): New commands.
(ampc-in-ampc-p): Add optional argument or-in-tagger.
All callers changed to make use of the new argument if applicable.
(ampc): Use the second view specified in ampc-views at startup.
Christopher Schmidt [Fri, 3 Aug 2012 07:35:41 +0000 (09:35 +0200)]
* ampc.el: Show the current playlist within the playlist view.
(ampc-views): Add current playlist to playlist view.
(ampc-up, ampc-down): Use the new interface of ampc-move.
(ampc-rename-playlist, ampc-load): Message rather than error if there is no
playlist.
(ampc-delete, ampc-shuffle, ampc-clear): Use current playlist if point is in it.
(ampc-store): Append to selected playlist if NAME-OR-APPEND is numeric.