From a952f81f3e0cf6bee51facf609ced49b54c6ad46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Mon, 23 May 2016 21:46:29 +0200 Subject: [PATCH] Remove special handling for Emacs in progress bar code * src/progress.c: Remove special 'emacs' code Fixes #47989 --- src/progress.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/progress.c b/src/progress.c index 481e21e4..c635d195 100644 --- a/src/progress.c +++ b/src/progress.c @@ -1198,8 +1198,6 @@ display_image (char *buf) static void bar_set_params (char *params) { - char *term = getenv ("TERM"); - if (params) { char *param = strtok (params, ":"); @@ -1219,12 +1217,6 @@ bar_set_params (char *params) dots. */ || !isatty (fileno (stderr)) #endif - /* Normally we don't depend on terminal type because the - progress bar only uses ^M to move the cursor to the - beginning of line, which works even on dumb terminals. But - Jamie Zawinski reports that ^M and ^H tricks don't work in - Emacs shell buffers, and only make a mess. */ - || (term && 0 == strcmp (term, "emacs")) ) && !current_impl_locked) {