1. 14 May, 2018 1 commit
    • Tino Calancha's avatar
      run-python: Make the buffer running python current · b015fb0c
      Tino Calancha authored
      * lisp/progmodes/python.el (run-python, python-shell-make-comint):
      Make the buffer running the inferior python process the current buffer
      (Bug#31398).
      * test/lisp/progmodes/python-tests.el (python-tests--bug31398):
      Add test.
      b015fb0c
  2. 11 May, 2018 1 commit
    • João Távora's avatar
      Fix filesystem littering by Flymake's legacy backend · 15fa8de1
      João Távora authored
      The Flymake legacy "proc" backend, which is active by default will try
      to syntax-check foo.c/foo.cpp and many other types of files, but on
      failing to find a suitable Makefile target, will fail.  There's
      nothing wrong with that except that it used to leave behind the
      foo_flymake.c and foo_flymake.cpp auxiliary files behind, littering
      the filesystem.
      
      * lisp/progmodes/flymake-proc.el (flymake-proc-legacy-flymake):
      Call init-function inside of the unwind-protect.
      15fa8de1
  3. 06 May, 2018 1 commit
  4. 25 Apr, 2018 1 commit
  5. 20 Apr, 2018 1 commit
    • Glenn Morris's avatar
      The tedious game of whack-a-mole with compiler warnings continues · 9c3eeba4
      Glenn Morris authored
      * lisp/abbrev.el (edit-abbrevs-map):
      * lisp/emacs-lock.el (emacs-lock-from-exiting):
      * lisp/htmlfontify.el (hfy-optimisations):
      * lisp/ielm.el (inferior-emacs-lisp-mode-hook)
      (inferior-emacs-lisp-mode-map):
      * lisp/isearch.el (isearch-lazy-highlight-word):
      * lisp/select.el (x-select-enable-clipboard, x-select-enable-primary):
      * lisp/shell.el (shell-dirtrack-mode):
      * lisp/skeleton.el (skeleton-transformation, skeleton-filter):
      * lisp/startup.el (inhibit-splash-screen, inhibit-startup-message):
      * lisp/window.el (even-window-heights):
      * lisp/calendar/timeclock.el (timeclock-modeline-display):
      * lisp/cedet/semantic/db-mode.el (semanticdb-mode-hook)
      (semanticdb-global-mode):
      * lisp/emacs-lisp/edebug.el (gud-inhibit-global-bindings):
      * lisp/emacs-lisp/warnings.el (display-warning-minimum-level)
      (log-warning-minimum-level):
      * lisp/erc/erc-dcc.el (erc-dcc-chat-filter-hook):
      * lisp/gnus/nnspool.el (news-path):
      * lisp/org/org-agenda.el (org-agenda-search-view-search-words-only)
      (org-agenda-remove-tags-when-in-prefix)
      (org-agenda-align-tags-to-column, org-agenda-keymap):
      * lisp/org/org.el (org-special-ctrl-a)
      (org-log-state-notes-into-drawer)
      (org-agenda-multi-occur-extra-files):
      * lisp/progmodes/flymake-proc.el (flymake-err-line-patterns)
      (flymake-check-file-limit):
      * lisp/progmodes/make-mode.el (makefile-query-one-target-method):
      * lisp/progmodes/octave.el (inferior-octave-startup-hook):
      * lisp/progmodes/python.el (python-buffer)
      (python-preoutput-result):
      * lisp/progmodes/sql.el (sql-dialect):
      * lisp/textmodes/artist.el (artist-text-renderer):
      * lisp/textmodes/bibtex.el (bibtex-autokey-name-case-convert)
      (bibtex-autokey-titleword-case-convert):
      * lisp/textmodes/flyspell.el (flyspell-generic-check-word-p):
      * lisp/textmodes/ispell.el (ispell-format-word):
      * lisp/textmodes/rst.el (rst-preferred-decorations):
      * lisp/textmodes/sgml-mode.el (sgml-transformation):
      Move aliases before targets, to silence new compiler warning.
      * lisp/term/ns-win.el (ns-option-modifier, ns-right-option-modifier):
      Silence warning.
      9c3eeba4
  6. 19 Apr, 2018 1 commit
  7. 17 Apr, 2018 4 commits
    • Lars Ingebrigtsen's avatar
      (sql-stop): Don't bug out if the SQL buffer is killed · 2457d10e
      Lars Ingebrigtsen authored
      * lisp/progmodes/sql.el (sql-stop): Don't bug out if the SQL
      buffer is killed (bug#30244).
      2457d10e
    • Lars Ingebrigtsen's avatar
      d2d1f395
    • Lars Ingebrigtsen's avatar
      Fix problem in `g' in Info with strings like "(foo)" · e3b0dd6b
      Lars Ingebrigtsen authored
      * lisp/info.el (Info-find-file): Add a new parameter to avoid
      jumping to the directory if the user looks for a filename on the
      form "(foo)" that doesn't exist.
      (Info-read-node-name-1): Use it to allow completing over strings
      like "(foo)" without losing focus (bug#30091).
      e3b0dd6b
    • Juri Linkov's avatar
      Use next-error-found to set next-error-last-buffer. · 0c9e3df3
      Juri Linkov authored
      https://lists.gnu.org/archive/html/emacs-devel/2018-04/msg00207.html
      
      * lisp/simple.el (next-error-buffer): New buffer-local variable
      instead of making buffer-local next-error-last-buffer.  (Bug#20489)
      (next-error-found-function): New defcustom.
      (next-error-buffer-on-selected-frame): Use t for avoid-current arg
      of next-error-buffer-p.
      (next-error-find-buffer): Add second rule for using the current
      next-error-buffer if it's not visited by other navigation.
      (next-error, next-error-internal): Call next-error-found.
      (next-error-found): New function with body extracted mostly from
      next-error.
      
      * lisp/vc/add-log.el (change-log-goto-source-internal): New function
      with body from change-log-goto-source.
      (change-log-goto-source): Call change-log-goto-source-internal and
      next-error-found.
      (change-log-next-error): Call change-log-goto-source-internal
      instead of change-log-goto-source.
      (change-log-mode): Don't set next-error-last-buffer.  (Bug#28864)
      
      * lisp/vc/diff-mode.el (diff-goto-source): Call next-error-found.
      
      * lisp/progmodes/xref.el (xref-goto-xref): Call next-error-found.
      
      * lisp/replace.el (occur-mode-goto-occurrence)
      (occur-mode-goto-occurrence-other-window)
      (occur-mode-display-occurrence): Call next-error-found.
      (occur-next-error): Remove unnecessary with-current-buffer.
      (Bug#27362, bug#30646)
      0c9e3df3
  8. 08 Apr, 2018 1 commit
  9. 02 Apr, 2018 2 commits
    • Alan Mackenzie's avatar
    • Alan Mackenzie's avatar
      Optimize c-syntactic-skip-backward, c-determine-limit for large comment blocks · b393ecf8
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-ssb-lit-begin): Remove.
      (c-syntactic-skip-backward): Remove the surrounding c-self-bind-state-cache.
      Use the standard function c-literal-start in place of the special purpose
      c-ssb-lit-begin.  With a suitable skip-chars argument (the usual case),
      optimize by invoking c-backward-syntactic-ws to move back over comment blocks.
      (c-determine-limit-get-base): Inovke an early c-backward-syntactic-ws.
      (c-determine-limit): Use c-forward-comment whilst moving forward.  Cope with
      an empty position stack whilst looking for non-literals (bug fix).  In the
      recursive call, double try-size to prevent Lisp stack overflow.
      b393ecf8
  10. 30 Mar, 2018 1 commit
  11. 28 Mar, 2018 2 commits
    • Alan Mackenzie's avatar
      Handle C++17's constexpr keyword in if statements · b61b3c80
      Alan Mackenzie authored
      * lisp/progmodes/cc-engine.el (c-after-conditional): Test for matches to
      c-block-stmt-hangon-key.
      
      * lisp/progmodes/cc-langs.el (c-block-stmt-hangon-kwds): New lang const.
      (c-block-stmt-hangon-key): New lang const/var matching any element of the
      above.
      b61b3c80
    • Alan Mackenzie's avatar
      Replace faulty non-matching regexp "\\<\\>" with "a\\`" · 3ccbe1f4
      Alan Mackenzie authored
      The regexp "\\<\\>", which is supposed never to match, actually matches, for
      instance, where a Chinese character is directly followed by an ASCII letter.
      So, replace it with "a\\`".
      
      * lisp/progmodes/cc-defs.el (cc-fix, c-make-keywords-re)
      * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1)
      (c-forward-<>-arglist-recur, c-forward-decl-or-cast-1)
      (c-looking-at-decl-block)
      * lisp/progmodes/cc-langs.el (c-assignment-op-regexp)
      (c-block-comment-ender-regexp, c-block-comment-start-regexp)
      (c-line-comment-start-regexp, c-doc-comment-start-regexp)
      (c-decl-start-colon-kwd-re, c-type-decl-prefix-key)
      (c-type-decl-operator-prefix-key, c-pre-id-bracelist-key)
      (c-enum-clause-introduction-re, c-nonlabel-token-2-key)
      * lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re)
      (c-make-noise-macro-regexps):
      Replace "\\<\\>" by "a\\`".
      3ccbe1f4
  12. 27 Mar, 2018 1 commit
  13. 23 Mar, 2018 4 commits
  14. 22 Mar, 2018 1 commit
    • Glenn Morris's avatar
      sql.el defcustom fixes · 7c993c34
      Glenn Morris authored
      * lisp/progmodes/sql.el (sql-login-params): Update.
      Avoids type mismatch with postgres and sqlite login params.
      (sql-postgres-login-params): Bump version.
      7c993c34
  15. 21 Mar, 2018 1 commit
    • Noam Postavsky's avatar
      Revert "Support all perl variable declarators and prefixes" · f8cad16b
      Noam Postavsky authored
      It highlights normal variable names in perl programs (Bug#30812).
      * lisp/progmodes/perl-mode.el (perl-imenu-generic-expression)
      (perl-font-lock-keywords-2): Restore values prior to Bug#27613 fix.
      
      Don't merge to master, we will fix Bug#27613 properly there (it's too
      close to release to do that on emacs-26).
      f8cad16b
  16. 20 Mar, 2018 1 commit
  17. 17 Mar, 2018 1 commit
    • Glenn Morris's avatar
      Explicitly require cl-lib where needed · 1c7db8aa
      Glenn Morris authored
      Rather than relying on the byte-compiler happening to use it.
      * lisp/completion.el, lisp/ffap.el, lisp/loadhist.el:
      * lisp/userlock.el, lisp/emacs-lisp/debug.el, lisp/emacs-lisp/rx.el:
      * lisp/emacs-lisp/testcover.el, lisp/mail/rfc2231.el:
      * lisp/net/newst-treeview.el, lisp/net/puny.el:
      * lisp/net/tramp-archive.el, lisp/net/tramp-gvfs.el:
      * lisp/net/tramp-sh.el, lisp/net/tramp-smb.el, lisp/org/org-ctags.el:
      * lisp/org/org-macs.el, lisp/progmodes/grep.el:
      * lisp/progmodes/perl-mode.el, lisp/progmodes/ruby-mode.el:
      * lisp/textmodes/dns-mode.el, lisp/textmodes/mhtml-mode.el:
      * lisp/vc/pcvs-parse.el: Explicitly require cl-lib as needed.
      1c7db8aa
  18. 15 Mar, 2018 2 commits
  19. 13 Mar, 2018 2 commits
  20. 11 Mar, 2018 2 commits
    • Charles A. Roelli's avatar
      Allow toggling Grep command abbreviation, and rename related symbols · 0965d94c
      Charles A. Roelli authored
      * lisp/progmodes/grep.el (grep-find-hide): Rename 'grep-find-hide'
      to 'grep-find-abbreviate'.
      (grep-find-hide-properties): Rename to
      'grep-find-abbreviate-properties'.
      (grep-mode-font-lock-keywords): Even when 'grep-find-abbreviate'
      is nil, fontify the verbose command options with property
      'abbreviated-command', so that the toggling command can later find
      these parts without refontifying.
      (grep-find-show): Rename to 'grep-find-toggle-abbreviation',
      simplify the code, and permit toggling the hidden command options.
      (grep-mode-map): Add a menu-bar item and new separator for
      'grep-find-toggle-abbreviation', and fix the incumbent separators
      in the "Grep" menu-bar, of which only one was showing before this
      commit, even though two were specified.
      * etc/NEWS (grep):
      * doc/emacs/building.texi (Grep Searching): Document these
      changes, and mention 'grep-find-toggle-abbreviation'.
      0965d94c
    • Glenn Morris's avatar
      Remove many items obsolete since Emacs 22.1 · f1c48b0e
      Glenn Morris authored
      Emacs 22.1 was five major releases and over decade ago.
      In bug reporting statistics, it's been absent for around 5 years.
      Ref: https://debbugs.gnu.org/stats/emacs.html
      This list can be reviewed before to the next release, but for
      now hopefully this motivates any needed external updates.
      * lisp/arc-mode.el (archive-mouse-extract):
      * lisp/bookmark.el (bookmark-exit-hooks):
      * lisp/comint.el (comint-use-prompt-regexp-instead-of-fields):
      * lisp/cus-edit.el (custom-face-save-command):
      * lisp/descr-text.el (describe-char-after):
      * lisp/desktop.el (desktop-enable, desktop-basefilename)
      (desktop-buffer-modes-to-save, desktop-buffer-misc-functions)
      (desktop-buffer-handlers, desktop-load-default):
      * lisp/dired-x.el (dired-omit-files-p):
      * lisp/frame.el (new-frame, set-default-font, delete-frame-hook)
      (blink-cursor):
      * lisp/generic-x.el (generic-define-mswindows-modes)
      (generic-define-unix-modes):
      * lisp/help.el (describe-project, view-todo):
      * lisp/hilit-chg.el (highlight-changes-colours):
      * lisp/ibuffer.el (ibuffer-elide-long-columns, ibuffer-hooks)
      (ibuffer-mode-hooks):
      * lisp/imenu.el (imenu-always-use-completion-buffer-p):
      * lisp/isearch.el (isearch-lazy-highlight-cleanup)
      (isearch-lazy-highlight-initial-delay)
      (isearch-lazy-highlight-interval)
      (isearch-lazy-highlight-max-at-a-time)
      (isearch-lazy-highlight-cleanup):
      * lisp/mwheel.el (mouse-wheel-down-button)
      (mouse-wheel-up-button, mouse-wheel-click-button):
      * lisp/novice.el (disabled-command-hook):
      * lisp/recentf.el (recentf-menu-append-commands-p):
      * lisp/savehist.el (savehist-load):
      * lisp/speedbar.el (speedbar-ignored-path-expressions)
      (speedbar-ignored-path-regexp, speedbar-add-ignored-path-regexp)
      (speedbar-line-path, speedbar-buffers-line-path, speedbar-path-line):
      * lisp/subr.el (assoc-ignore-case, assoc-ignore-representation)
      (x-lost-selection-hooks, x-sent-selection-hooks)
      (process-kill-without-query):
      * lisp/calendar/icalendar.el (icalendar-convert-diary-to-ical)
      (icalendar-extract-ical-from-buffer):
      * lisp/emacs-lisp/autoload.el (update-autoloads-from-directories):
      * lisp/emacs-lisp/derived.el (derived-mode-class):
      * lisp/emacs-lisp/generic.el (generic-font-lock-defaults):
      * lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
      * lisp/gnus/spam.el (spam-list-of-processors):
      * lisp/international/latin1-disp.el (latin1-char-displayable-p):
      * lisp/mail/rmail.el (rmail-pop-password, rmail-pop-password-required):
      * lisp/net/goto-addr.el (goto-address-at-mouse):
      * lisp/net/net-utils.el (ipconfig-program, ipconfig-program-options):
      * lisp/obsolete/iswitchb.el (iswitchb-use-fonts):
      * lisp/play/dunnet.el (dungeon-mode-map):
      * lisp/progmodes/compile.el (compilation-finish-function)
      * lisp/progmodes/cperl-mode.el (cperl-vc-header-alist)
      * lisp/progmodes/gud.el (tooltip-gud-modes, tooltip-gud-display)
      (tooltip-gud-toggle-dereference):
      * lisp/progmodes/pascal.el (pascal-outline):
      * lisp/progmodes/perl-mode.el (electric-perl-terminator):
      * lisp/textmodes/nroff-mode.el (count-text-lines)
      (forward-text-line, backward-text-line, electric-nroff-newline)
      (electric-nroff-mode):
      * lisp/vc/log-edit.el (vc-comment-ring, vc-comment-ring-index)
      (vc-previous-comment, vc-next-comment)
      (vc-comment-search-reverse, vc-comment-search-forward)
      (vc-comment-to-change-log):
      * lisp/vc/pcvs-info.el (cvs-display-full-path)
      (cvs-fileinfo->full-path):
      * lisp/vc/vc.el (vc-diff-switches-list):
      Remove items, obsolete since Emacs 22.1.
      * lisp/ibuffer.el (ibuffer-cached-elide-long-columns):
      Remove internal variable.
      (ibuffer-compile-make-eliding-form, ibuffer-check-formats):
      (ibuffer-mode): Remove support for ibuffer-elide-long-columns.
      * lisp/cedet/semantic/sb.el (semantic-sb-token-jump):
      Remove support for speedbar-line-path.
      * lisp/emacs-lisp/unsafep.el (assoc-ignore-case):
      Stop marking as side-effect-free.
      * lisp/gnus/spam.el (spam-group-processor-p):
      Remove support for spam-list-of-processors.
      * lisp/progmodes/compile.el (define-compilation-mode)
      (compilation-handle-exit):
      Remove support for compilation-finish-function.
      * lisp/progmodes/cperl-mode.el (cperl-mode):
      Remove support for cperl-vc-header-alist.
      ; * lisp/files.el: Comments.
      ; * etc/NEWS: List removed items.
      f1c48b0e
  21. 09 Mar, 2018 1 commit
    • Glenn Morris's avatar
      Replace uses of the obsolete local-write-file-hooks · cb0f6348
      Glenn Morris authored
      * lisp/net/quickurl.el (quickurl-reread-hook-postfix):
      * lisp/progmodes/ebrowse.el (ebrowse-tree-mode)
      (ebrowse-write-file-hook-fn):
      * lisp/progmodes/glasses.el (glasses-mode):
      * lisp/progmodes/vhdl-mode.el (vhdl-write-file-hooks-init):
      * lisp/vc/ediff-merg.el (ediff-set-merge-mode):
      * lisp/vc/ediff-util.el (ediff-setup):
      Replace local-write-file-hooks, obsolete since 22.1,
      with write-file-functions.
      cb0f6348
  22. 07 Mar, 2018 1 commit
    • Glenn Morris's avatar
      Replace some obsolete aliases in documentation · 19afff31
      Glenn Morris authored
      * doc/emacs/text.texi (Nroff Mode):
      * doc/misc/efaq.texi (How to add fonts):
      * lisp/gnus/nnheader.el (nnheader-insert-file-contents):
      * lisp/progmodes/pascal.el (pascal-outline-mode):
      Doc fixes re obsolete aliases.
      ; * src/frame.c (do_switch_frame): Comment.
      19afff31
  23. 05 Mar, 2018 1 commit
  24. 03 Mar, 2018 5 commits
  25. 02 Mar, 2018 1 commit
    • Noam Postavsky's avatar
      Fix issues turned up by previous python.el change · 4a093419
      Noam Postavsky authored
      See [1] for more discussion.
      * lisp/progmodes/python.el (python--prettify-symbols-alist): Define
      the obsolete alias before the variable proper, so that we correctly
      get the user's settings regardless of which name they set.
      (python-nav-end-of-statement): Add missing backslash.
      (python-shell-send-file): Call `expand-file-name' before
      `file-local-name', the expansion of "~" could be different on remote
      filenames.
      (python-mode): Declare prettify-symbols-alist instead of checking if
      it's bound.  Use the non-obsolete python-prettify-symbols-alist name,
      rather than checking if the obsolete name is bound (it always is too,
      but the Emacs 24 byte compiler doesn't recognize that
      define-obsolete-variable-alias defines a variable).
      
      [1]: https://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00826.html
      4a093419