unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24308: 25.1.50; Fix back-white <-> black-white typo
@ 2016-08-25 15:07 Kaushal Modi
  2016-08-25 15:14 ` Kaushal Modi
  0 siblings, 1 reply; 5+ messages in thread
From: Kaushal Modi @ 2016-08-25 15:07 UTC (permalink / raw)
  To: 24308

[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]

This bug affects printing post-scripts in black and white.

From the documentation of ps-default-fs and ps-default-bg, we get:

> This variable is used only when `ps-print-color-p' (which see) is neither
nil
> nor black-white.

That does not match with the code .. these values affect the postscript
export even when ps-print-color-p is set to 'black-white.

On reviewing the code, the bug was that black-white was written as
back-white (note the typo).

I'll attach the patch in a followup email.

In GNU Emacs 25.1.50.36 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23)
 of 2016-08-24
Repository revision: 70cfe9df957bd2f0699f62fe5e69176313f7c8f0
Windowing system distributor 'The X.Org Foundation', version 11.0.60900000
System Description: Red Hat Enterprise Linux Workstation release 6.6
(Santiago)


Configured using:
 'configure --with-modules
 --prefix=/home/kmodi/usr_local/apps/6/emacs/master
 'CPPFLAGS=-fgnu89-inline -I/home/kmodi/usr_local/6/include
 -I/usr/include/freetype2 -I/usr/include' 'CFLAGS=-ggdb3 -O0'
 'CXXFLAGS=-ggdb3 -O0' 'LDFLAGS=-L/home/kmodi/usr_local/6/lib
 -L/home/kmodi/usr_local/6/lib64 -ggdb3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11 MODULES

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 2223 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#24308: 25.1.50; Fix back-white <-> black-white typo
  2016-08-25 15:07 bug#24308: 25.1.50; Fix back-white <-> black-white typo Kaushal Modi
@ 2016-08-25 15:14 ` Kaushal Modi
  2016-09-05 23:22   ` npostavs
  0 siblings, 1 reply; 5+ messages in thread
From: Kaushal Modi @ 2016-08-25 15:14 UTC (permalink / raw)
  To: 24308

[-- Attachment #1: Type: text/plain, Size: 1612 bytes --]

Patch to fix this bug:

Can you please commit this patch as I do not have commit rights. Thanks.

From f34a420b3b02eeaf816afb793875e2893fcf411c Mon Sep 17 00:00:00 2001
From: Kaushal Modi <kaushal.modi@gmail.com>
Date: Thu, 25 Aug 2016 11:06:45 -0400
Subject: [PATCH] Fix back-white <-> black-white typo

* lisp/ps-print.el (ps-begin-job): back-white -> black-white (Bug#24308)
---
 lisp/ps-print.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 2ea0919..54ffe28 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -5828,7 +5828,7 @@ ps-begin-job
  ps-default-background (ps-rgb-color
        (cond
  ((or (member ps-print-color-p
-     '(nil back-white))
+     '(nil black-white))
      (eq genfunc 'ps-generate-postscript))
  nil)
  ((eq ps-default-bg 'frame-parameter)
@@ -5842,7 +5842,7 @@ ps-begin-job
  ps-default-foreground (ps-rgb-color
        (cond
  ((or (member ps-print-color-p
-     '(nil back-white))
+     '(nil black-white))
      (eq genfunc 'ps-generate-postscript))
  nil)
  ((eq ps-default-fg 'frame-parameter)
@@ -5857,12 +5857,12 @@ ps-begin-job
        #'(lambda (arg)
    (ps-rgb-color arg "unspecified-fg" 0.0))
        (append (and (not (member ps-print-color-p
- '(nil back-white)))
+ '(nil black-white)))
     ps-fg-list)
        (list ps-default-foreground
      "black")))
  ps-default-color      (and (not (member ps-print-color-p
- '(nil back-white)))
+ '(nil black-white)))
    ps-default-foreground)
  ps-current-color      ps-default-color
  ;; Set up default functions.
-- 
2.9.2

-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 4402 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#24308: 25.1.50; Fix back-white <-> black-white typo
  2016-08-25 15:14 ` Kaushal Modi
@ 2016-09-05 23:22   ` npostavs
  2016-09-06 16:38     ` Kaushal Modi
  0 siblings, 1 reply; 5+ messages in thread
From: npostavs @ 2016-09-05 23:22 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: 24308

Kaushal Modi <kaushal.modi@gmail.com> writes:

> Patch to fix this bug:
>
> Can you please commit this patch as I do not have commit
> rights. Thanks.

The patch doesn't apply, it seems to be missing indentation, can you
resend (maybe as attachment to avoid mangling)?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#24308: 25.1.50; Fix back-white <-> black-white typo
  2016-09-05 23:22   ` npostavs
@ 2016-09-06 16:38     ` Kaushal Modi
  2016-09-07 23:27       ` npostavs
  0 siblings, 1 reply; 5+ messages in thread
From: Kaushal Modi @ 2016-09-06 16:38 UTC (permalink / raw)
  To: npostavs; +Cc: 24308


[-- Attachment #1.1.1: Type: text/plain, Size: 617 bytes --]

On Mon, Sep 5, 2016 at 7:22 PM <npostavs@users.sourceforge.net> wrote:

> Kaushal Modi <kaushal.modi@gmail.com> writes:
>
> The patch doesn't apply, it seems to be missing indentation, can you
> resend (maybe as attachment to avoid mangling)?
>

Thanks for the attempt to commit my patch. Can you please try the attached
version (It's the same as the one I had pasted inline earlier.).

I had ensured that I retained tabs and whitespaces as they were. That code
is a mess as it uses tabs on some lines and white spaces on some (the
yellows are the tabs in the below screenshot.. )

[image: pasted1]
-- 

Kaushal Modi

[-- Attachment #1.1.2: Type: text/html, Size: 1212 bytes --]

[-- Attachment #1.2: pasted1 --]
[-- Type: image/png, Size: 136292 bytes --]

[-- Attachment #2: 0001-Fix-back-white-black-white-typo.patch --]
[-- Type: application/octet-stream, Size: 1602 bytes --]

From f34a420b3b02eeaf816afb793875e2893fcf411c Mon Sep 17 00:00:00 2001
From: Kaushal Modi <kaushal.modi@gmail.com>
Date: Thu, 25 Aug 2016 11:06:45 -0400
Subject: [PATCH] Fix back-white <-> black-white typo

* lisp/ps-print.el (ps-begin-job): back-white -> black-white (Bug#24308)
---
 lisp/ps-print.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 2ea0919..54ffe28 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -5828,7 +5828,7 @@ ps-begin-job
 	ps-default-background (ps-rgb-color
 			       (cond
 				((or (member ps-print-color-p
-					     '(nil back-white))
+					     '(nil black-white))
 				     (eq genfunc 'ps-generate-postscript))
 				 nil)
 				((eq ps-default-bg 'frame-parameter)
@@ -5842,7 +5842,7 @@ ps-begin-job
 	ps-default-foreground (ps-rgb-color
 			       (cond
 				((or (member ps-print-color-p
-					     '(nil back-white))
+					     '(nil black-white))
 				     (eq genfunc 'ps-generate-postscript))
 				 nil)
 				((eq ps-default-fg 'frame-parameter)
@@ -5857,12 +5857,12 @@ ps-begin-job
 			       #'(lambda (arg)
 				   (ps-rgb-color arg "unspecified-fg" 0.0))
 			       (append (and (not (member ps-print-color-p
-							 '(nil back-white)))
+							 '(nil black-white)))
 					    ps-fg-list)
 				       (list ps-default-foreground
 					     "black")))
 	ps-default-color      (and (not (member ps-print-color-p
-						'(nil back-white)))
+						'(nil black-white)))
 				   ps-default-foreground)
 	ps-current-color      ps-default-color
 	;; Set up default functions.
-- 
2.9.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#24308: 25.1.50; Fix back-white <-> black-white typo
  2016-09-06 16:38     ` Kaushal Modi
@ 2016-09-07 23:27       ` npostavs
  0 siblings, 0 replies; 5+ messages in thread
From: npostavs @ 2016-09-07 23:27 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: 24308

tags 24308 fixed
close 24308 25.2
quit

Kaushal Modi <kaushal.modi@gmail.com> writes:

> On Mon, Sep 5, 2016 at 7:22 PM <npostavs@users.sourceforge.net> wrote:
>
> Thanks for the attempt to commit my patch. Can you please try the
> attached version (It's the same as the one I had pasted inline
> earlier.).

Thanks, push as 32078ec8





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-09-07 23:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-25 15:07 bug#24308: 25.1.50; Fix back-white <-> black-white typo Kaushal Modi
2016-08-25 15:14 ` Kaushal Modi
2016-09-05 23:22   ` npostavs
2016-09-06 16:38     ` Kaushal Modi
2016-09-07 23:27       ` npostavs

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).