1. 15 Jun, 2015 1 commit
    • Stefan Monnier's avatar
      * lisp/info.el: Cleanup bytepos/charpos issues · b95f53f0
      Stefan Monnier authored
      * lisp/international/mule-util.el: Use lexical-binding.
      (filepos-to-bufferpos): New function.
      * lisp/info.el (Info-find-in-tag-table-1): Use 0-based file positions.
      (Info-find-node-2): Use filepos-to-bufferpos (bug#20704).
      (Info-read-subfile, Info-search): Use 0-based file positions.
      b95f53f0
  2. 08 Jun, 2015 2 commits
    • Oleh Krehel's avatar
      Add new command checkdoc-package-keywords · 20de61c8
      Oleh Krehel authored
      * lisp/emacs-lisp/checkdoc.el (checkdoc-package-keywords-flag): New
        defcustom.
      (checkdoc-list-of-strings-p): Add doc.
      (checkdoc-current-buffer): When `checkdoc-package-keywords-flag' is
      non-nil, call `checkdoc-package-keywords'.
      (checkdoc-get-keywords): New defun.
      (checkdoc-package-keywords): New command. Warns if the current file
      has package.el-style keywords that aren't in `finder-known-keywords'.
      
      * etc/NEWS: Add entry.
      20de61c8
    • Oleh Krehel's avatar
      checkdoc.el (checkdoc-file): New function · c941d479
      Oleh Krehel authored
      * lisp/emacs-lisp/checkdoc.el (checkdoc-error): When
        `checkdoc-diagnostic-buffer' is set to "*warn*", print the warning
        to the standard output.
      
      (bug#20754)
      c941d479
  3. 04 Jun, 2015 1 commit
  4. 03 Jun, 2015 2 commits
  5. 01 Jun, 2015 1 commit
    • Paul Eggert's avatar
      Treat batch stdout/stderr like standard display · 467af178
      Paul Eggert authored
      Calls like (print FOO) could generate improperly encoded or
      hard-to-read output if FOO contains characters outside the system
      locale.  Fix this by treating batch stdout and stderr like
      interactive standard display, when it comes to transliterating and
      encoding characters (Bug#20545).
      * doc/emacs/mule.texi (Communication Coding):
      * doc/lispref/display.texi (Active Display Table):
      * doc/lispref/nonascii.texi (Locales):
      * etc/NEWS:
      * src/coding.c (syms_of_coding):
      * src/dispnew.c (syms_of_display):
      Document this.
      * src/print.c: Include disptab.h.
      (printchar_to_stream): New function, with much of the guts of the
      old Fexternal_debugging_output, except this one also uses the
      standard display table.
      (printchar, strout, Fexternal_debugging_output): Use it.
      467af178
  6. 28 May, 2015 5 commits
    • Samer Masterson's avatar
      Show files when `initial-buffer-choice' is non-nil · d3605ed7
      Samer Masterson authored
      * startup.el (command-line-1): When Emacs is given a file as an
      argument and `initial-buffer-choice' is non-nil, display both the file
      and `initial-buffer-choice'.  For more than one file, show
      `initial-buffer-choice' and *Buffer List*.  Refactor display-changing
      commands out of the command line arg parser.
      (initial-buffer-choice): Clarify docstring.
      d3605ed7
    • Paul Eggert's avatar
      New minor mode Electric Quote · 73512b8c
      Paul Eggert authored
      This lets you easily insert quotes ‘like this’ by typing
      quotes `like this', and similarly you can easily insert
      quotes “like this” by typing quotes ``like this'' (Bug#20545).
      * doc/emacs/basic.texi (Inserting Text):
      * doc/emacs/modes.texi (Minor Modes):
      * etc/NEWS: Document it.
      * doc/emacs/text.texi (Quotation Marks): New section.
      * lisp/electric.el (electric-quote-comment)
      (electric-quote-string, electric-quote-paragraph):
      New custom vars.
      (electric--insertable-p)
      (electric-quote-post-self-insert-function): New functions.
      (electric-quote-mode, electric-quote-local-mode): New minor modes.
      * lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
      Add curved single quotes to electric-pair-text-pairs.
      Set electric-quote-string in this buffer.
      73512b8c
    • Paul Eggert's avatar
      Support curved quotes in doc strings · 0fd5e659
      Paul Eggert authored
      Emacs's traditional doc string style has been to quote symbols
      `like this'.  This worked well on now-obsolete terminals where
      ` and ' were symmetric quotes, but nowadays curved quotes
      ‘like this’ look better.  Support quoting the new way too.
      (Bug#20385)
      * doc/lispref/tips.texi (Documentation Tips): Symbols can be quoted
      ‘like-this’ as well as `like-this'.
      * etc/NEWS: Mention this.
      * lisp/cedet/mode-local.el (overload-docstring-extension)
      (mode-local-print-binding, mode-local-describe-bindings-2):
      * lisp/cus-theme.el (describe-theme-1):
      * lisp/descr-text.el (describe-text-properties-1, describe-char):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/cl-generic.el (cl--generic-describe):
      * lisp/emacs-lisp/eieio-opt.el (eieio-help-class)
      (eieio-help-constructor):
      * lisp/emacs-lisp/package.el (describe-package-1):
      * lisp/faces.el (describe-face):
      * lisp/help-fns.el (help-fns--key-bindings)
      (help-fns--compiler-macro, help-fns--parent-mode, help-fns--obsolete):
      (help-fns--interactive-only, describe-function-1):
      (describe-variable):
      * lisp/help.el (describe-mode):
      * lisp/international/mule-cmds.el (describe-input-method)
      (describe-language-environment):
      * lisp/international/mule-diag.el (describe-character-set)
      (print-coding-system-briefly, list-input-methods)
      (list-input-methods-1):
      Insert curved quotes rather than grave accent and apostrophe.
      * lisp/cedet/srecode/texi.el (srecode-texi-texify-docstring):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine)
      (checkdoc-proper-noun-region-engine):
      * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
      (lisp-cl-font-lock-keywords-2):
      * lisp/finder.el (finder-font-lock-keywords):
      * lisp/gnus/gnus-art.el (gnus-button-alist):
      * lisp/help-fns.el (help-do-arg-highlight)
      (describe-function-1, describe-variable):
      * lisp/help-mode.el (help-xref-symbol-regexp)
      (help-xref-info-regexp, help-xref-url-regexp):
      * lisp/help.el (describe-mode):
      * lisp/international/mule-cmds.el (help-xref-mule-regexp-template):
      * lisp/wid-edit.el (widget-documentation-link-regexp):
      Parse symbols quoted ‘like-this’ as well as `like-this'.
      * lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
      Add "‘" and "’" to electric-pair-text-pairs.
      (elisp--form-quoted-p): Also allow "‘" as a quoting char.
      (elisp-completion-at-point, elisp--preceding-sexp):
      Also treat "‘" and "’" as quoting chars.
      0fd5e659
    • Paul Eggert's avatar
      substitute-command-keys now curves quotes · 11b2744f
      Paul Eggert authored
      So, for example, it turns "`abc'" into "‘abc’" (Bug#20385).
      * doc/lispref/help.texi (Keys in Documentation):
      * etc/NEWS: Document this.
      * src/doc.c (Fsubstitute_command_keys): Implement it.
      11b2744f
    • Stefan Monnier's avatar
      f655987d
  7. 27 May, 2015 3 commits
  8. 25 May, 2015 2 commits
    • Philipp Stephani's avatar
      * lisp/term/xterm.el: Add gui-get-selection support via OSC-52 · 816a2b36
      Philipp Stephani authored
      (xterm--extra-capabilities-type): Add `getSelection'.
      (xterm--query): Add `no-async' argument.
      (xterm--init-activate-get-selection): New function.
      (terminal-init-xterm): Use it.
      (xterm--init-modify-other-keys): Rename from
      terminal-init-xterm-modify-other-keys.
      (xterm--init-bracketed-paste-mode): Rename from
      terminal-init-xterm-bracketed-paste-mode.
      (xterm--init-activate-set-selection): Rename from
      terminal-init-xterm-activate-set-selection.
      (xterm--selection-char): New function.
      (gui-backend-set-selection): Use it.  Use the &context to only apply
      this method in terminals where we enabled the feature.
      (gui-backend-get-selection): New method.
      816a2b36
    • Paul Eggert's avatar
      Make TAGS files more portable to MS-Windows · 1efdf7fe
      Paul Eggert authored
      * etc/NEWS: Document this.
      * lib-src/etags.c (readline_internal) [DOS_NT]:
      Don't treat CRs differently from GNUish hosts.
      * lisp/progmodes/etags.el (etags-goto-tag-location):
      Adjust STARTPOS to account for the skipped CRs in dos-style files.
      1efdf7fe
  9. 24 May, 2015 1 commit
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/tabulated-list.el: New optional print method · c205098b
      Artur Malabarba authored
      (tabulated-list-print): New optional argument, UPDATE.  If
      non-nil, the list is printed by only adding and deleting the
      changed entries, instead of erasing the whole buffer.  This method
      is much faster when few or no entries have changed.
      
      * doc/lispref/modes.texi (Tabulated List Mode): Document it.
      
      * etc/NEWS: Document it.
      c205098b
  10. 21 May, 2015 1 commit
    • kwhite's avatar
      * lisp/erc/erc.el: Hide network/channel messages · fdad3350
      kwhite authored
      (erc-network-hide-list, etc-channel-hide-list): New lists to define
      message types per network/channel.
      (erc-add-targets): New function to parse list of targets
      (erc-hide-current-message-p): Modified to check for new targets
      fdad3350
  11. 20 May, 2015 1 commit
    • Martin Rudalics's avatar
      Improve `switch-to-buffer' in strongly dedicated windows (Bug#20472) · 31d58d45
      Martin Rudalics authored
      * lisp/window.el (switch-to-buffer-in-dedicated-window): New option.
      (switch-to-buffer): If the selected window is strongly dedicated
      to its buffer, signal error before prompting for buffer name.  Handle
      `switch-to-buffer-in-dedicated-window'.  (Bug#20472)
      * doc/lispref/windows.texi (Switching Buffers): Document
      `switch-to-buffer-in-dedicated-window'.
      31d58d45
  12. 19 May, 2015 1 commit
  13. 17 May, 2015 2 commits
    • Samer Masterson's avatar
      * lisp/eshell/em-term.el (eshell-term-sentinel): · 76f2d19e
      Samer Masterson authored
      No-op by default, only kills term buffer if
      `eshell-destroy-buffer-when-process-dies' is non-nil.  (Bug#18108)
      (eshell-destroy-buffer-when-process-dies): New custom to preserve
      previous behavior.
      76f2d19e
    • Samer Masterson's avatar
      eshell: Introduce new buffer syntax · e37da5a4
      Samer Masterson authored
      The new buffer syntax '#<buffer-name>' is equivalent to '#<buffer
      buffer-name>'.  Remove `eshell-buffer-shorthand', as it is no longer
      needed (Bug#19319).
      
      * lisp/eshell/esh-io.el (eshell-buffer-shorthand): Remove.
      (eshell-get-target): Remove shorthand-specific code.
      * lisp/eshell/esh-arg.el (eshell-parse-special-reference): Parse
      '#<buffer-name>'.
      e37da5a4
  14. 16 May, 2015 2 commits
  15. 13 May, 2015 2 commits
    • Glenn Morris's avatar
      ; * etc/NEWS: Small edit. · a8a0be4f
      Glenn Morris authored
      a8a0be4f
    • Glenn Morris's avatar
      Add basic VC push support. · 660c30cc
      Glenn Morris authored
      * lisp/vc/vc.el (vc-push): New autoloaded command.
      * lisp/vc/vc-hooks.el (vc-prefix-map, vc-menu-map): Add vc-push.
      * lisp/vc/vc-bzr.el (vc-bzr--pushpull): New, factored from vc-bzr-pull.
      (vc-bzr-pull): Reimplement using vc-bzr--pushpull.
      (vc-bzr-push): New.
      * lisp/vc/vc-git.el (vc-git--pushpull): New, factored from vc-git-pull.
      (vc-git-pull): Reimplement using vc-git--pushpull.
      (vc-git-push): New.
      * lisp/vc/vc-hg.el (vc-hg--pushpull): New, factored from vc-hg-pull.
      (vc-hg-pull, vc-hg-push): Reimplement using vc-hg--pushpull.
      * doc/emacs/maintaining.texi (Pulling / Pushing):
      Rename from "VC Pull".  Mention pushing.
      (VC With A Merging VCS, VC Change Log): Update xrefs.
      (Branches): Update menu.
      * doc/emacs/emacs.texi: Update menu.
      * etc/NEWS: Mention this.
      660c30cc
  16. 11 May, 2015 1 commit
    • Paul Eggert's avatar
      C-x 8 shorthands for curved quotes, Euro, etc. · 4b41540b
      Paul Eggert authored
      Although C-x 8 lets you insert arbitrary Unicode characters,
      it's awkward to use this to insert commonly used symbols such as curved
      quotes, the Euro symbol, etc.  This patch adds simpler sequences for
      characters commonly found in English text and in basic math.
      For example, assuming the Alt key works on your keyboard and iso-transl
      is loaded, one can now type "A-[" instead of "A-RET LEFT SIN TAB RET"
      to get the character "‘" (U+2018 LEFT SINGLE QUOTATION MARK).
      (Bug#20499)
      * doc/emacs/mule.texi (Unibyte Mode):
      A few other printing characters now work too.
      * etc/NEWS: Document this.
      * lisp/international/iso-transl.el (iso-transl-char-map):
      Also support the following characters:
      ‐ ‑ ‒ – — ― ‘ ’ “ ” † ‡ • ′ ″ € № ← →  − ≈ ≠ ≤ ≥
      4b41540b
  17. 08 May, 2015 1 commit
  18. 07 May, 2015 2 commits
    • Artur Malabarba's avatar
      * etc/NEWS: Fix typo in commit 14bb519f · ead05a1c
      Artur Malabarba authored
      ead05a1c
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/package.el: New "external" package status · 14bb519f
      Artur Malabarba authored
      An external package is any installed package that's not built-in
      and not from `package-user-dir', which usually means it's from an
      entry in `package-directory-list'.  They are treated much like
      built-in packages, in that they cannot be through the Package Menu
      deleted and are not considered for upgrades.
      
      (package-desc-status): Identify if a package is installed outside
      `package-user-dir'.
      (package-menu--print-info-simple)
      (package-menu--status-predicate): Add support for it.
      
      * etc/NEWS: Document it.
      14bb519f
  19. 06 May, 2015 1 commit
  20. 04 May, 2015 1 commit
  21. 01 May, 2015 1 commit
  22. 28 Apr, 2015 1 commit
  23. 27 Apr, 2015 2 commits
    • Stefan Monnier's avatar
      * lisp/saveplace.el (save-place-mode): New minor mode. · 9c3e1e4e
      Stefan Monnier authored
      (save-place): Redefine as an obsolete alias.
      9c3e1e4e
    • Stefan Monnier's avatar
      * lisp/midnight.el: Make it a minor mode. Allow predicates. · c603274f
      Stefan Monnier authored
      * lisp/midnight.el: Use lexical-binding.
      (midnight-mode): Make it a proper minor mode.
      (midnight-buffer-display-time): Make arg non-optional.
      (midnight-find): Remove.
      (clean-buffer-list-kill-never-regexps)
      (clean-buffer-list-kill-regexps): Tweak type for new function choice.
      (clean-buffer-list-delay): Allow clean-buffer-list-kill-regexps to
      contain functions.
      (clean-buffer-list): Use cl-find.
      Allow clean-buffer-list-kill-never-regexps to contain functions.
      c603274f
  24. 25 Apr, 2015 1 commit
  25. 22 Apr, 2015 1 commit
    • Oleh Krehel's avatar
      Add a new `inhibit-message' variable · df61b078
      Oleh Krehel authored
      * src/xdisp.c (syms_of_xdisp): Define a boolean `inhibit_message'.
      (message3): Don't call `message3_nolog' (i.e. use the Echo Area) when
      `inhibit_message' is non-zero.
      
      * etc/NEWS: Add an entry.
      
      * doc/lispref/display.texi: Add an entry for `inhibit-message',
        mention it in `message'.
      df61b078
  26. 21 Apr, 2015 1 commit
    • Stefan Monnier's avatar
      Fix byte-compiler warnings about looking-back. · c9a75a40
      Stefan Monnier authored
      * lisp/vc/log-view.el (log-view-end-of-defun-1):
      * lisp/textmodes/tex-mode.el (latex-forward-sexp-1):
      * lisp/textmodes/reftex-ref.el (reftex-goto-label):
      * lisp/textmodes/bibtex.el (bibtex-insert-kill):
      * lisp/progmodes/sh-script.el (sh--maybe-here-document):
      * lisp/progmodes/ruby-mode.el (ruby-end-of-defun):
      * lisp/progmodes/ada-mode.el (ada-in-numeric-literal-p):
      * lisp/org/org.el (org-insert-heading, org-sort-entries):
      * lisp/org/org-mouse.el (org-mouse-end-headline)
      (org-mouse-context-menu):
      * lisp/org/org-clock.el (org-clock-cancel):
      * lisp/man.el (Man-default-man-entry):
      * lisp/mail/rmail.el (rmail-get-new-mail, rmail-insert-inbox-text)
      (rmail-ensure-blank-line):
      * lisp/mail/footnote.el (Footnote-delete-footnote):
      * lisp/mail/emacsbug.el (report-emacs-bug):
      * lisp/info.el (Info-follow-reference, Info-fontify-node):
      * lisp/info-look.el (info-lookup-guess-custom-symbol):
      * lisp/help-fns.el (help-fns--key-bindings):
      * lisp/files.el (hack-local-variables):
      * lisp/emulation/viper-ex.el (viper-get-ex-token, ex-cmd-complete)
      (viper-get-ex-pat, ex-expand-filsyms, viper-get-ex-file)
      (viper-complete-filename-or-exit):
      * lisp/emulation/viper-cmd.el (viper-backward-indent):
      * lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/cus-edit.el (custom-face-edit-value-create):
      * lisp/calendar/todo-mode.el (todo-set-item-priority)
      (todo-filter-items-1, todo-convert-legacy-files)
      (todo-prefix-overlays): Add explicit second arg to looking-back.
      c9a75a40